Skip to content

Commit 1d38c16

Browse files
Rajkumar Manoharanlinvjw
authored andcommitted
mac80211: stop queues before rate control updation
Stop tx queues before updating rate control to ensure proper rate selection. Otherwise packets can be transmitted in 40 Mhz whereas hw is configured in HT20. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 41e2b05 commit 1d38c16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

net/mac80211/mlme.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ static u32 ieee80211_enable_ht(struct ieee80211_sub_if_data *sdata,
232232
WARN_ON(!ieee80211_set_channel_type(local, sdata, channel_type));
233233
}
234234

235+
ieee80211_stop_queues_by_reason(&sdata->local->hw,
236+
IEEE80211_QUEUE_STOP_REASON_CSA);
237+
235238
/* channel_type change automatically detected */
236239
ieee80211_hw_config(local, 0);
237240

@@ -245,6 +248,9 @@ static u32 ieee80211_enable_ht(struct ieee80211_sub_if_data *sdata,
245248
rcu_read_unlock();
246249
}
247250

251+
ieee80211_wake_queues_by_reason(&sdata->local->hw,
252+
IEEE80211_QUEUE_STOP_REASON_CSA);
253+
248254
ht_opmode = le16_to_cpu(hti->operation_mode);
249255

250256
/* if bss configuration changed store the new one */

0 commit comments

Comments
 (0)