projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed2bde5
)
mt76: mt7615: do not adjust MAC timings if the device is not running
author
Felix Fietkau
<nbd@nbd.name>
Wed, 22 Apr 2020 10:32:10 +0000
(12:32 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 12 May 2020 17:52:32 +0000
(19:52 +0200)
Avoids register writes and MAC start/stop when the hardware isn't ready for it
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c
b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c
index 88cbf5ffa290220b4462040795ae3355fd21c956..89aed6d67de02fc4a10398ccc2e830b78e6a7f57 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
@@
-119,6
+119,9
@@
void mt7615_mac_set_timing(struct mt7615_phy *phy)
int sifs, offset;
bool is_5ghz = phy->mt76->chandef.chan->band == NL80211_BAND_5GHZ;
+ if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state))
+ return;
+
if (is_5ghz)
sifs = 16;
else