|
8 | 8 | * Copyright 2007, Michael Wu <[email protected]>
|
9 | 9 | * Copyright 2013-2014 Intel Mobile Communications GmbH
|
10 | 10 | * Copyright (C) 2015 - 2017 Intel Deutschland GmbH
|
11 |
| - * Copyright (C) 2018 - 2019 Intel Corporation |
| 11 | + * Copyright (C) 2018 - 2020 Intel Corporation |
12 | 12 | */
|
13 | 13 |
|
14 | 14 | #include <linux/delay.h>
|
@@ -1311,7 +1311,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
|
1311 | 1311 | if (!res) {
|
1312 | 1312 | ch_switch.timestamp = timestamp;
|
1313 | 1313 | ch_switch.device_timestamp = device_timestamp;
|
1314 |
| - ch_switch.block_tx = beacon ? csa_ie.mode : 0; |
| 1314 | + ch_switch.block_tx = csa_ie.mode; |
1315 | 1315 | ch_switch.chandef = csa_ie.chandef;
|
1316 | 1316 | ch_switch.count = csa_ie.count;
|
1317 | 1317 | ch_switch.delay = csa_ie.max_switch_time;
|
@@ -1404,7 +1404,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
|
1404 | 1404 |
|
1405 | 1405 | sdata->vif.csa_active = true;
|
1406 | 1406 | sdata->csa_chandef = csa_ie.chandef;
|
1407 |
| - sdata->csa_block_tx = ch_switch.block_tx; |
| 1407 | + sdata->csa_block_tx = csa_ie.mode; |
1408 | 1408 | ifmgd->csa_ignored_same_chan = false;
|
1409 | 1409 |
|
1410 | 1410 | if (sdata->csa_block_tx)
|
@@ -1438,7 +1438,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
|
1438 | 1438 | * reset when the disconnection worker runs.
|
1439 | 1439 | */
|
1440 | 1440 | sdata->vif.csa_active = true;
|
1441 |
| - sdata->csa_block_tx = ch_switch.block_tx; |
| 1441 | + sdata->csa_block_tx = csa_ie.mode; |
1442 | 1442 |
|
1443 | 1443 | ieee80211_queue_work(&local->hw, &ifmgd->csa_connection_drop_work);
|
1444 | 1444 | mutex_unlock(&local->chanctx_mtx);
|
|
0 commit comments