mt76x2: mac: consider multicast/broadcast frames in ewma rssi estimation

Take into account rx multicast and broadcast frames from connected AP in
ewma rssi estimation

Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-06-18 12:09:16 +02:00
committed by Felix Fietkau
parent 65e161bec8
commit 072fdac8d6
+1 -1
View File
@@ -374,7 +374,7 @@ int mt76x2_mac_process_rx(struct mt76x2_dev *dev, struct sk_buff *skb,
status->tid = FIELD_GET(MT_RXWI_TID, tid_sn);
status->seqno = FIELD_GET(MT_RXWI_SN, tid_sn);
if (unicast) {
if (status->wcid) {
ewma_signal_add(&dev->cal.rssi, status->signal);
dev->cal.rssi_count++;
}