mt7603: fix 40 mhz channel bandwidth reporting

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2018-01-30 10:35:36 +01:00
parent 69c07bce67
commit 2e7332f4b0
+3
View File
@@ -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;