Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e32b1ed authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Update beacon RSSI



ANI uses the beacon RSSI for its operation.
Update this properly.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 180d674b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -252,6 +252,10 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds,
	else if (ds->ds_rxstat.rs_rssi > 127)
		ds->ds_rxstat.rs_rssi = 127;

	/* Update Beacon RSSI, this is used by ANI. */
	if (ieee80211_is_beacon(fc))
		sc->nodestats.ns_avgbrssi = ds->ds_rxstat.rs_rssi;

	rx_status->mactime = ath_extend_tsf(sc, ds->ds_rxstat.rs_tstamp);
	rx_status->band = hw->conf.channel->band;
	rx_status->freq = hw->conf.channel->center_freq;