diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2025-08-12 03:53:29 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2025-08-12 03:53:29 +0000 |
| commit | edcaf9a46fb0beed65e157dc601508a7ef8091b7 (patch) | |
| tree | 45694a823e2515f22813f311710ee59730795f55 /mt7925/mac.c | |
| parent | fbdea4ebdf0f084ae3cc90e2e2650c4ead99e033 (diff) | |
mt76: update Mediatek's mt76 drivervendor/Linux/mt76/torvalds-v6.16
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
038d61fd642278bab63ee8ef722c50d10ab01e8f ( tag: v6.16 ).
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'mt7925/mac.c')
| -rw-r--r-- | mt7925/mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mt7925/mac.c b/mt7925/mac.c index c871d2f9688b..75823c9fd3a1 100644 --- a/mt7925/mac.c +++ b/mt7925/mac.c @@ -1040,7 +1040,7 @@ void mt7925_mac_add_txs(struct mt792x_dev *dev, void *data) rcu_read_lock(); - wcid = rcu_dereference(dev->mt76.wcid[wcidx]); + wcid = mt76_wcid_ptr(dev, wcidx); if (!wcid) goto out; @@ -1122,7 +1122,7 @@ mt7925_mac_tx_free(struct mt792x_dev *dev, void *data, int len) u16 idx; idx = FIELD_GET(MT_TXFREE_INFO_WLAN_ID, info); - wcid = rcu_dereference(dev->mt76.wcid[idx]); + wcid = mt76_wcid_ptr(dev, idx); sta = wcid_to_sta(wcid); if (!sta) continue; @@ -1445,7 +1445,7 @@ void mt7925_usb_sdio_tx_complete_skb(struct mt76_dev *mdev, u16 idx; idx = le32_get_bits(txwi[1], MT_TXD1_WLAN_IDX); - wcid = rcu_dereference(mdev->wcid[idx]); + wcid = __mt76_wcid_ptr(mdev, idx); sta = wcid_to_sta(wcid); if (sta && likely(e->skb->protocol != cpu_to_be16(ETH_P_PAE))) |
