cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces
authorSriram R <srirrama@codeaurora.org>
Fri, 19 Oct 2018 09:12:59 +0000 (14:42 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 08:11:47 +0000 (09:11 +0100)
commit113f3aaa81bd56aba02659786ed65cbd9cb9a6fc
treecb5fb12f7c7ed39e555aefca145c24668538bf17
parent03b738625b1e58f4ae2bddf04706ab85c677af2d
cfg80211: Prevent regulatory restore during STA disconnect in concurrent interfaces

Currently when an AP and STA interfaces are active in the same or different
radios, regulatory settings are restored whenever the STA disconnects. This
restores all channel information including dfs states in all radios.
For example, if an AP interface is active in one radio and STA in another,
when radar is detected on the AP interface, the dfs state of the channel
will be changed to UNAVAILABLE. But when the STA interface disconnects,
this issues a regulatory disconnect hint which restores all regulatory
settings in all the radios attached and thereby losing the stored dfs
state on the other radio where the channel was marked as unavailable
earlier. Hence prevent such regulatory restore whenever another active
beaconing interface is present in the same or other radios.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/sme.c