mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt76x0: fix locking regression
mt76_update_channel already takes dev->mt76.mutex Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-2
@@ -61,11 +61,11 @@ int mt76x0_config(struct ieee80211_hw *hw, u32 changed)
|
||||
{
|
||||
struct mt76x02_dev *dev = hw->priv;
|
||||
|
||||
mutex_lock(&dev->mt76.mutex);
|
||||
|
||||
if (changed & IEEE80211_CONF_CHANGE_CHANNEL)
|
||||
mt76_update_channel(&dev->mphy);
|
||||
|
||||
mutex_lock(&dev->mt76.mutex);
|
||||
|
||||
if (changed & IEEE80211_CONF_CHANGE_POWER) {
|
||||
struct mt76_phy *mphy = &dev->mphy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user