diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-11-06 20:04:56 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-02-14 10:03:10 +0100 |
commit | 30684481e6cae7df4267a5925ce816bf877fc7cf (patch) | |
tree | e1f6bd8aaed572aa3cc056e96e294479bee6b6c8 /drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | |
parent | c7d2d6310969a6cfd1395d610275e391634e8bb0 (diff) | |
download | linux-stable-30684481e6cae7df4267a5925ce816bf877fc7cf.tar.gz linux-stable-30684481e6cae7df4267a5925ce816bf877fc7cf.tar.bz2 linux-stable-30684481e6cae7df4267a5925ce816bf877fc7cf.zip |
mt76: move ampdu_ref from mt76_dev to driver struct
It is only used by the driver
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_mac.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index 098792b86b73..5b512e4ce6b8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -824,7 +824,7 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb, if (rxinfo & MT_RXINFO_AMPDU) { status->flag |= RX_FLAG_AMPDU_DETAILS; - status->ampdu_ref = dev->mt76.ampdu_ref; + status->ampdu_ref = dev->ampdu_ref; /* * When receiving an A-MPDU subframe and RSSI info is not valid, @@ -832,8 +832,8 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb, * are coming. The last one will have valid RSSI info */ if (rxinfo & MT_RXINFO_RSSI) { - if (!++dev->mt76.ampdu_ref) - dev->mt76.ampdu_ref++; + if (!++dev->ampdu_ref) + dev->ampdu_ref++; } } |