Skip to content

Commit 2bf973f

Browse files
sara-sjmberg-intel
authored andcommitted
mac80211: fix quiet mode activation in action frames
Previously I intended to ignore quiet mode in probe response, however I ended up ignoring it instead for action frames. As a matter of fact, this path isn't invoked for probe responses to start with. Just revert this patch. Signed-off-by: Sara Sharon <[email protected]> Fixes: 7976b1e ("mac80211: ignore quiet mode in probe") Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent f2b18ba commit 2bf973f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/mac80211/mlme.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Copyright 2007, Michael Wu <[email protected]>
99
* Copyright 2013-2014 Intel Mobile Communications GmbH
1010
* Copyright (C) 2015 - 2017 Intel Deutschland GmbH
11-
* Copyright (C) 2018 - 2019 Intel Corporation
11+
* Copyright (C) 2018 - 2020 Intel Corporation
1212
*/
1313

1414
#include <linux/delay.h>
@@ -1311,7 +1311,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
13111311
if (!res) {
13121312
ch_switch.timestamp = timestamp;
13131313
ch_switch.device_timestamp = device_timestamp;
1314-
ch_switch.block_tx = beacon ? csa_ie.mode : 0;
1314+
ch_switch.block_tx = csa_ie.mode;
13151315
ch_switch.chandef = csa_ie.chandef;
13161316
ch_switch.count = csa_ie.count;
13171317
ch_switch.delay = csa_ie.max_switch_time;
@@ -1404,7 +1404,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
14041404

14051405
sdata->vif.csa_active = true;
14061406
sdata->csa_chandef = csa_ie.chandef;
1407-
sdata->csa_block_tx = ch_switch.block_tx;
1407+
sdata->csa_block_tx = csa_ie.mode;
14081408
ifmgd->csa_ignored_same_chan = false;
14091409

14101410
if (sdata->csa_block_tx)
@@ -1438,7 +1438,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
14381438
* reset when the disconnection worker runs.
14391439
*/
14401440
sdata->vif.csa_active = true;
1441-
sdata->csa_block_tx = ch_switch.block_tx;
1441+
sdata->csa_block_tx = csa_ie.mode;
14421442

14431443
ieee80211_queue_work(&local->hw, &ifmgd->csa_connection_drop_work);
14441444
mutex_unlock(&local->chanctx_mtx);

0 commit comments

Comments
 (0)