UPSTREAM: wifi: cfg80211: remove chandef check in cfg80211_cac_event()
The current check only worked for AP mode, but we can do
radar detection in mesh as well (for example). We could
try to check this using wdev_chandef(), but we also don't
really care since the chandef is passed in and we have no
need to use it anymore (since we added the argument in
commit d2859df5e7
("cfg80211/mac80211: DFS setup chandef
for cac event")).
Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 238103864
Change-Id: I856e4344d5e64ff4d2eead0b4c53b11f264be9b8
(cherry picked from commit d6f671c8a339d5b655acfacb8be6918c744fbabf)
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
parent
932fdaab49
commit
a52f88e542
|
@ -949,9 +949,6 @@ void cfg80211_cac_event(struct net_device *netdev,
|
|||
if (WARN_ON(!wdev->cac_started && event != NL80211_RADAR_CAC_STARTED))
|
||||
return;
|
||||
|
||||
if (WARN_ON(!wdev->links[0].ap.chandef.chan))
|
||||
return;
|
||||
|
||||
switch (event) {
|
||||
case NL80211_RADAR_CAC_FINISHED:
|
||||
timeout = wdev->cac_start_time +
|
||||
|
|
Loading…
Reference in New Issue