ath10k: fix survey information reporting
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Tue, 5 May 2015 12:30:48 +0000 (18:00 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 11 May 2015 15:02:40 +0000 (18:02 +0300)
commit2c2d2fafe21652789437e5a1a8b2770a45adc259
tree6c97396bac18a17fcd2b61189b318d0471c54de5
parent184a394eea16d61b85444c73349ced7f91f79af2
ath10k: fix survey information reporting

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>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c