projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b28248e
)
mt76: mt7603: stop mac80211 queues before setting the channel
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Sun, 5 May 2019 00:53:32 +0000
(
02:53
+0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 25 Jun 2019 10:55:27 +0000
(12:55 +0200)
Suspend data transmission during channel switch
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7603/main.c
b/drivers/net/wireless/mediatek/mt76/mt7603/main.c
index
0a0334d
..
172687a
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7603/main.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7603/main.c
@@
-207,8
+207,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);