aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/recv.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-08-07 00:15:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:35 -0400
commit5e32b1ed7e81558b09bf0a6bf9e73c34db3c337c (patch)
treeb8d21a97439fb8116c294d7307481a6756e577f2 /drivers/net/wireless/ath/ath9k/recv.c
parent180d674bab10ce10747f7bc7214462da185431bd (diff)
ath9k: Update beacon RSSI
ANI uses the beacon RSSI for its operation. Update this properly. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index f6a8b1c384ec..1a08c694fe5d 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -252,6 +252,10 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds,
252 else if (ds->ds_rxstat.rs_rssi > 127) 252 else if (ds->ds_rxstat.rs_rssi > 127)
253 ds->ds_rxstat.rs_rssi = 127; 253 ds->ds_rxstat.rs_rssi = 127;
254 254
255 /* Update Beacon RSSI, this is used by ANI. */
256 if (ieee80211_is_beacon(fc))
257 sc->nodestats.ns_avgbrssi = ds->ds_rxstat.rs_rssi;
258
255 rx_status->mactime = ath_extend_tsf(sc, ds->ds_rxstat.rs_tstamp); 259 rx_status->mactime = ath_extend_tsf(sc, ds->ds_rxstat.rs_tstamp);
256 rx_status->band = hw->conf.channel->band; 260 rx_status->band = hw->conf.channel->band;
257 rx_status->freq = hw->conf.channel->center_freq; 261 rx_status->freq = hw->conf.channel->center_freq;