mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix rx band reporting
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -201,6 +201,8 @@ mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb)
|
||||
i = MT76_GET(MT_RXD1_NORMAL_CH_FREQ, rxd[1]);
|
||||
sband = (i & 1) ? &dev->mt76.sband_5g : &dev->mt76.sband_2g;
|
||||
i >>= 1;
|
||||
|
||||
status->band = sband->band;
|
||||
if (i < sband->n_channels)
|
||||
status->freq = sband->channels[i].center_freq;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user