diff --git a/mt76x02.h b/mt76x02.h index a8c5fdd9..e016add7 100644 --- a/mt76x02.h +++ b/mt76x02.h @@ -69,7 +69,6 @@ struct mt76x02_dev { struct mac_address macaddr_list[8]; struct mutex phy_mutex; - struct mutex mutex; u8 txdone_seq; DECLARE_KFIFO_PTR(txstatus_fifo, struct mt76x02_tx_status); diff --git a/mt76x02_util.c b/mt76x02_util.c index 9336c0c3..9107f2ca 100644 --- a/mt76x02_util.c +++ b/mt76x02_util.c @@ -474,9 +474,9 @@ int mt76x02_set_rts_threshold(struct ieee80211_hw *hw, u32 val) if (val != ~0 && val > 0xffff) return -EINVAL; - mutex_lock(&dev->mutex); + mutex_lock(&dev->mt76.mutex); mt76x02_mac_set_tx_protection(dev, val); - mutex_unlock(&dev->mutex); + mutex_unlock(&dev->mt76.mutex); return 0; }