mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: always wake the device in mt7615_remove_interface
Similar to mt7921 driver, make sure the mcu is not in sleep mode before sending mcu messages in mt7615_remove_interface routine. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
4e22f0dc93
commit
e66a0b9b8d
+2
-2
@@ -253,11 +253,11 @@ static void mt7615_remove_interface(struct ieee80211_hw *hw,
|
||||
struct mt7615_phy *phy = mt7615_hw_phy(hw);
|
||||
int idx = msta->wcid.idx;
|
||||
|
||||
mt7615_mutex_acquire(dev);
|
||||
|
||||
mt7615_mcu_add_bss_info(phy, vif, NULL, false);
|
||||
mt7615_mcu_sta_add(phy, vif, NULL, false);
|
||||
|
||||
mt7615_mutex_acquire(dev);
|
||||
|
||||
mt76_testmode_reset(phy->mt76, true);
|
||||
if (vif == phy->monitor_vif)
|
||||
phy->monitor_vif = NULL;
|
||||
|
||||
Reference in New Issue
Block a user