summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2019-02-06 06:17:17 -0500
committerJohannes Berg <johannes.berg@intel.com>2019-02-22 07:46:25 -0500
commit7976b1e9e3bfdd7ed1cfb21afc4a195655017f13 (patch)
treee3ff73e7533b63c831b978799a78d8cb6798dd0e /net/mac80211/mlme.c
parent9792875ccd4788b3e0939cb3a74e24c0b349f591 (diff)
mac80211: ignore quiet mode in probe
Some buggy APs keep the CSA IE in probes after the channel switch was completed and can silence us for no good reason. Apply quiet mode only from beacons. If there is real channel switch going on, we will see the beacon anyway. 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index e20456c2d6fb..2dbcf5d5512e 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1316,7 +1316,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
1316 if (!res) { 1316 if (!res) {
1317 ch_switch.timestamp = timestamp; 1317 ch_switch.timestamp = timestamp;
1318 ch_switch.device_timestamp = device_timestamp; 1318 ch_switch.device_timestamp = device_timestamp;
1319 ch_switch.block_tx = csa_ie.mode; 1319 ch_switch.block_tx = beacon ? csa_ie.mode : 0;
1320 ch_switch.chandef = csa_ie.chandef; 1320 ch_switch.chandef = csa_ie.chandef;
1321 ch_switch.count = csa_ie.count; 1321 ch_switch.count = csa_ie.count;
1322 ch_switch.delay = csa_ie.max_switch_time; 1322 ch_switch.delay = csa_ie.max_switch_time;
@@ -1409,7 +1409,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
1409 1409
1410 sdata->vif.csa_active = true; 1410 sdata->vif.csa_active = true;
1411 sdata->csa_chandef = csa_ie.chandef; 1411 sdata->csa_chandef = csa_ie.chandef;
1412 sdata->csa_block_tx = csa_ie.mode; 1412 sdata->csa_block_tx = ch_switch.block_tx;
1413 ifmgd->csa_ignored_same_chan = false; 1413 ifmgd->csa_ignored_same_chan = false;
1414 1414
1415 if (sdata->csa_block_tx) 1415 if (sdata->csa_block_tx)
@@ -1443,7 +1443,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
1443 * reset when the disconnection worker runs. 1443 * reset when the disconnection worker runs.
1444 */ 1444 */
1445 sdata->vif.csa_active = true; 1445 sdata->vif.csa_active = true;
1446 sdata->csa_block_tx = csa_ie.mode; 1446 sdata->csa_block_tx = ch_switch.block_tx;
1447 1447
1448 ieee80211_queue_work(&local->hw, &ifmgd->csa_connection_drop_work); 1448 ieee80211_queue_work(&local->hw, &ifmgd->csa_connection_drop_work);
1449 mutex_unlock(&local->chanctx_mtx); 1449 mutex_unlock(&local->chanctx_mtx);