Commit 6450b133 authored by Deren Wu's avatar Deren Wu Committed by Felix Fietkau

mt76: fix invalid rssi report

Drop invalid rssi value to calculate a reasonable report

Fixes: 4550fb9e ("mt76: improve signal strength reporting")
Signed-off-by: default avatarDeren Wu <deren.wu@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent f1fe8eef
......@@ -942,10 +942,11 @@ mt76_rx_signal(struct mt76_rx_status *status)
for (chains = status->chains; chains; chains >>= 1, chain_signal++) {
int cur, diff;
if (!(chains & BIT(0)))
cur = *chain_signal;
if (!(chains & BIT(0)) ||
cur > 0)
continue;
cur = *chain_signal;
if (cur > signal)
swap(cur, signal);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment