mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: run mt7615_mcu_set_wmm holding mt76 mutex
Make sure to run mt7615_mcu_set_wmm() holding mt76 mutex in order to wake the device from low power state and avoid races Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
2c188db1f7
commit
6fdb20a025
+7
-1
@@ -433,11 +433,17 @@ mt7615_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue,
|
||||
{
|
||||
struct mt7615_vif *mvif = (struct mt7615_vif *)vif->drv_priv;
|
||||
struct mt7615_dev *dev = mt7615_hw_dev(hw);
|
||||
int err;
|
||||
|
||||
mt7615_mutex_acquire(dev);
|
||||
|
||||
queue = mt7615_lmac_mapping(dev, queue);
|
||||
queue += mvif->wmm_idx * MT7615_MAX_WMM_SETS;
|
||||
err = mt7615_mcu_set_wmm(dev, queue, params);
|
||||
|
||||
return mt7615_mcu_set_wmm(dev, queue, params);
|
||||
mt7615_mutex_release(dev);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static void mt7615_configure_filter(struct ieee80211_hw *hw,
|
||||
|
||||
Reference in New Issue
Block a user