mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
cfg80211: fix dfs channels remain DFS_AVAILABLE after ch_switch
Depending on the regulatory domain, leaving a DFS channel requires a new CAC to be performed when returning back to that channel. If needed, update dfs states after a driver channel switch. Signed-off-by: Michael Vassernis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
0afd425b1b
commit
d34990bbc2
1 changed files with 2 additions and 0 deletions
|
|
@ -16118,6 +16118,8 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
|
|||
!WARN_ON(!wdev->current_bss))
|
||||
cfg80211_update_assoc_bss_entry(wdev, chandef->chan);
|
||||
|
||||
cfg80211_sched_dfs_chan_update(rdev);
|
||||
|
||||
nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL,
|
||||
NL80211_CMD_CH_SWITCH_NOTIFY, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue