summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2019-02-06 06:17:16 -0500
committerJohannes Berg <johannes.berg@intel.com>2019-02-22 07:46:04 -0500
commit9792875ccd4788b3e0939cb3a74e24c0b349f591 (patch)
tree9f0689ca9b4bcb4ce639d8508c2c7d411f3b33c0 /net/mac80211/mlme.c
parentfafd2bce5a5821b8902b11ab24dffa47dfdbd2d0 (diff)
mac80211: allow CSA to self with immediate quiet
Currently, due to some buggy APs that continue to include CSA IEs after the switch, we ignore CSA to same channel. However, some other APs may do CSA to self in order to have immediate quiet. Allow it. Do it only for beacons. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 411656614e9a..e20456c2d6fb 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1353,7 +1353,8 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
1353 } 1353 }
1354 1354
1355 if (cfg80211_chandef_identical(&csa_ie.chandef, 1355 if (cfg80211_chandef_identical(&csa_ie.chandef,
1356 &sdata->vif.bss_conf.chandef)) { 1356 &sdata->vif.bss_conf.chandef) &&
1357 (!csa_ie.mode || !beacon)) {
1357 if (ifmgd->csa_ignored_same_chan) 1358 if (ifmgd->csa_ignored_same_chan)
1358 return; 1359 return;
1359 sdata_info(sdata, 1360 sdata_info(sdata,