All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath10k: Fix survey information reporting
@ 2015-05-05 12:30 ` Vasanthakumar Thiagarajan
  0 siblings, 0 replies; 20+ messages in thread
From: Vasanthakumar Thiagarajan @ 2015-05-05 12:30 UTC (permalink / raw)
  To: ath10k; +Cc: Vasanthakumar Thiagarajan, linux-wireless

Rx clear count reported in wmi_chan_info_event is actually channel_busy_count
not rx_frame_count. Send rx_clear_count through time_busy of survey_info
and set SURVEY_INFO_TIME_BUSY in filled.

iw wlan0 survey dump

urvey data from wlan0
        frequency:                      5180 MHz [in use]
        noise:                          -103 dBm
        channel active time:            150 ms
        channel busy time:              22 ms
Survey data from wlan0
        frequency:                      5200 MHz
        noise:                          -102 dBm
        channel active time:            146 ms
        channel busy time:              0 ms

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
---
 drivers/net/wireless/ath/ath10k/wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index ebaa096..0fabe68 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1645,10 +1645,10 @@ void ath10k_wmi_event_chan_info(struct ath10k *ar, struct sk_buff *skb)
 
 		survey = &ar->survey[idx];
 		survey->time = WMI_CHAN_INFO_MSEC(cycle_count);
-		survey->time_rx = WMI_CHAN_INFO_MSEC(rx_clear_count);
+		survey->time_busy = WMI_CHAN_INFO_MSEC(rx_clear_count);
 		survey->noise = noise_floor;
 		survey->filled = SURVEY_INFO_TIME |
-				 SURVEY_INFO_TIME_RX |
+				 SURVEY_INFO_TIME_BUSY |
 				 SURVEY_INFO_NOISE_DBM;
 	}
 
-- 
1.9.1


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-06-05 21:40 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 12:30 [PATCH] ath10k: Fix survey information reporting Vasanthakumar Thiagarajan
2015-05-05 12:30 ` Vasanthakumar Thiagarajan
2015-05-22  8:16 ` Kalle Valo
2015-05-22  8:16   ` Kalle Valo
2015-06-05 17:14 ` Ben Greear
2015-06-05 17:14   ` Ben Greear
2015-06-05 19:10   ` YanBo
2015-06-05 19:10     ` YanBo
2015-06-05 19:22     ` Ben Greear
2015-06-05 19:22       ` Ben Greear
2015-06-05 20:18       ` Ben Greear
2015-06-05 20:18         ` Ben Greear
2015-06-05 21:00         ` YanBo
2015-06-05 21:00           ` YanBo
2015-06-05 21:20           ` Ben Greear
2015-06-05 21:20             ` Ben Greear
2015-06-05 21:39             ` YanBo
2015-06-05 21:39               ` YanBo
2015-06-05 20:58       ` YanBo
2015-06-05 20:58         ` YanBo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.