mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 09:56:25 -04:00
mt76: mt7615: do not adjust MAC timings if the device is not running
Avoids register writes and MAC start/stop when the hardware isn't ready for it Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user