diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 6b74489fb9c6..a444d03f6774 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -446,7 +446,8 @@ void ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata, | |||
446 | if (sw_elem->count <= 1) { | 446 | if (sw_elem->count <= 1) { |
447 | ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work); | 447 | ieee80211_queue_work(&sdata->local->hw, &ifmgd->chswitch_work); |
448 | } else { | 448 | } else { |
449 | ieee80211_stop_queues_by_reason(&sdata->local->hw, | 449 | if (sw_elem->mode) |
450 | ieee80211_stop_queues_by_reason(&sdata->local->hw, | ||
450 | IEEE80211_QUEUE_STOP_REASON_CSA); | 451 | IEEE80211_QUEUE_STOP_REASON_CSA); |
451 | ifmgd->flags |= IEEE80211_STA_CSA_RECEIVED; | 452 | ifmgd->flags |= IEEE80211_STA_CSA_RECEIVED; |
452 | mod_timer(&ifmgd->chswitch_timer, | 453 | mod_timer(&ifmgd->chswitch_timer, |