]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
cfg80211: fix dfs channels remain DFS_AVAILABLE after ch_switch
authorMichael Vassernis <michael.vassernis@tandemg.com>
Mon, 29 Jul 2019 06:01:16 +0000 (06:01 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jul 2019 14:34:41 +0000 (16:34 +0200)
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 <michael.vassernis@tandemg.com>
Link: https://lore.kernel.org/r/20190729060024.5660-1-michael.vassernis@tandemg.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index a8d4b2b6b3ec337fad81f6923e096bceea108659..08a66c1bcb838c442e82ba2db0caeddddd73eb97 100644 (file)
@@ -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);
 }