mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7603: stop mac80211 queues before setting the channel
Suspend data transmission during channel switch Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2f8df1762c
commit
11ed3fadc7
+4
-1
@@ -201,8 +201,11 @@ mt7603_config(struct ieee80211_hw *hw, u32 changed)
|
||||
int ret = 0;
|
||||
|
||||
if (changed & (IEEE80211_CONF_CHANGE_CHANNEL |
|
||||
IEEE80211_CONF_CHANGE_POWER))
|
||||
IEEE80211_CONF_CHANGE_POWER)) {
|
||||
ieee80211_stop_queues(hw);
|
||||
ret = mt7603_set_channel(dev, &hw->conf.chandef);
|
||||
ieee80211_wake_queues(hw);
|
||||
}
|
||||
|
||||
if (changed & IEEE80211_CONF_CHANGE_MONITOR) {
|
||||
mutex_lock(&dev->mt76.mutex);
|
||||
|
||||
Reference in New Issue
Block a user