Skip to content

Commit

Permalink
mt7603: fix 40 mhz channel bandwidth reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jan 25, 2018
1 parent c6f8cac commit 3968dae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mt7603_mac.c
Expand Up @@ -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->bw = RATE_INFO_BW_40;

rxd += 6;
if ((u8 *) rxd - skb->data >= skb->len)
return -EINVAL;
Expand Down

0 comments on commit 3968dae

Please sign in to comment.