summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChilam Ng <chilam@broadcom.com>2015-06-25 19:15:18 -0700
committerVinit Deshpande <vinitd@google.com>2015-06-30 18:30:41 -0700
commit504d7b1446c78d5aaceff59836e55feba8d2ae8f (patch)
treec863b4dd09914716791812e9f66bc717e00f46a2
parent301011ae0d1dad1f7476f6f37680ad86d4125f6a (diff)
downloadhardware_broadcom_wlan-504d7b1446c78d5aaceff59836e55feba8d2ae8f.zip
hardware_broadcom_wlan-504d7b1446c78d5aaceff59836e55feba8d2ae8f.tar.gz
hardware_broadcom_wlan-504d7b1446c78d5aaceff59836e55feba8d2ae8f.tar.bz2
Fixed channel checking and added more debug info in link stats HAL
bug: 22051751 Change-Id: I77f393b7ff9e8f9ac1f23db3df51705c4e4e358d Signed-off-by: Chilam Ng <chilam@broadcom.com>
-rw-r--r--bcmdhd/wifi_hal/link_layer_stats.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/bcmdhd/wifi_hal/link_layer_stats.cpp b/bcmdhd/wifi_hal/link_layer_stats.cpp
index 3226da8..25502af 100644
--- a/bcmdhd/wifi_hal/link_layer_stats.cpp
+++ b/bcmdhd/wifi_hal/link_layer_stats.cpp
@@ -68,9 +68,19 @@ protected:
void *data = reply.get_vendor_data();
int len = reply.get_vendor_data_len();
- int num_chan = ((wifi_radio_stat *)data)->num_channels;
- if (num_chan > 32) {
+ unsigned int num_chan = ((wifi_radio_stat *)data)->num_channels;
+ if (num_chan > 11) {
ALOGE("Incorrect number of channels = %d", num_chan);
+ // dump data before num_channels
+ ALOGE("radio: = %d", ((wifi_radio_stat *)data)->radio);
+ ALOGE("on_time: = %d", ((wifi_radio_stat *)data)->on_time);
+ ALOGE("tx_time: = %d", ((wifi_radio_stat *)data)->tx_time);
+ ALOGE("rx_time: = %d", ((wifi_radio_stat *)data)->rx_time);
+ ALOGE("on_time_scan: = %d", ((wifi_radio_stat *)data)->on_time_scan);
+ ALOGE("on_time_nbd: = %d", ((wifi_radio_stat *)data)->on_time_nbd);
+ ALOGE("on_time_gscan: = %d", ((wifi_radio_stat *)data)->on_time_gscan);
+ ALOGE("on_time_pno_scan: = %d", ((wifi_radio_stat *)data)->on_time_pno_scan);
+ ALOGE("on_time_hs20: = %d", ((wifi_radio_stat *)data)->on_time_hs20);
return NL_SKIP;
}
(*mHandler.on_link_stats_results)(id,