]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: connac: do not schedule mac_work if the device is not running
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 23 Apr 2021 14:27:11 +0000 (16:27 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 15 May 2021 11:41:04 +0000 (14:41 +0300)
commit96670f65a3e7618434ba577ab2de0dfc70e27149
tree0fc54f5a6474c12edb539075c71ca4da4a4ce81c
parent6d7cd9b3a40645f49c1cf007b193840c8f546993
mt76: connac: do not schedule mac_work if the device is not running

Do not run ieee80211_queue_delayed_work for mac work if the worqueue is
not initialized yet

Fixes: 69f44f59ec44 ("mt76: connac: unschedule mac_work before going to sleep")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/5bfd36a75799c37b12fcb54d17e77fbc2c7a0558.1619187875.git.lorenzo@kernel.org
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7921/mac.c