Commit 68f7030f authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarFelix Fietkau <nbd@nbd.name>
parent f832898d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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],