Skip to content

Commit

Permalink
mt76x2: mac: consider multicast/broadcast frames in ewma rssi estimation
Browse files Browse the repository at this point in the history
Take into account rx multicast and broadcast frames from connected AP in
ewma rssi estimation

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Jun 18, 2018
1 parent 65e161b commit 072fdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt76x2_mac.c
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 072fdac

Please sign in to comment.