ath9k-devel.lists.ath9k.org archive mirror
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath9k_htc: recover rx_status->signal initialization
@ 2016-10-25 10:01 Robert Millan
  0 siblings, 0 replies; only message in thread
From: Robert Millan @ 2016-10-25 10:01 UTC (permalink / raw)
  To: ath9k-devel

A regression introduced by 64d9f1f52807dfb562eb510af2fa0f833a6b3a79
caused loss of signal power information when using Atheros AR9271
chips in monitor mode.

Fix this by recovering the initialization of rx_status->signal.

Signed-off-by: Robert Millan <robert.millan@beabloo.com>
---
 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index f333ef1..cea7a63 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -1034,6 +1034,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
 
 	rx_status->band = ah->curchan->chan->band;
 	rx_status->freq = ah->curchan->chan->center_freq;
+	rx_status->signal = rx_stats.rs_rssi + ATH_DEFAULT_NOISE_FLOOR;
 	rx_status->antenna = rx_stats.rs_antenna;
 	rx_status->flag |= RX_FLAG_MACTIME_END;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-25 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-25 10:01 [ath9k-devel] [PATCH] ath9k_htc: recover rx_status->signal initialization Robert Millan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).