diff options
author | Felix Fietkau <nbd@nbd.name> | 2019-01-22 16:33:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-01-22 16:37:28 +0100 |
commit | 68f7030f2d5f9592fcae405296376073eff69cbd (patch) | |
tree | f5a3c7e1209f4e8eeaa214e647039a0f54d3e240 | |
parent | f832898dff55f243081697b6e5773f7318c8a344 (diff) | |
download | linux-68f7030f2d5f9592fcae405296376073eff69cbd.tar.bz2 |
mt76: fix per-chain signal strength reporting
Fix an off-by-one error that resulted in not reporting the signal strength
for the first chain
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c index ce9bb702045f..63fa27d2c404 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.c @@ -648,7 +648,7 @@ int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb, status->chains = BIT(0); signal = mt76x02_mac_get_rssi(dev, rxwi->rssi[0], 0); - for (i = 1; i < nstreams; i++) { + for (i = 0; i < nstreams; i++) { status->chains |= BIT(i); status->chain_signal[i] = mt76x02_mac_get_rssi(dev, rxwi->rssi[i], |