mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: fix 40 mhz channel bandwidth reporting
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -509,6 +509,9 @@ mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb)
|
||||
dev->rssi_offset[1];
|
||||
status->signal = max(status->chain_signal[0], status->chain_signal[1]);
|
||||
|
||||
if (FIELD_GET(MT_RXV1_FRAME_MODE, rxdg0) == 1)
|
||||
status->flag |= RX_FLAG_40MHZ;
|
||||
|
||||
rxd += 6;
|
||||
if ((u8 *) rxd - skb->data >= skb->len)
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user