From 661f0af7af7a278c6c546f0ec9537405b423ba19 Mon Sep 17 00:00:00 2001 From: Winnie Chen Date: Fri, 22 May 2020 18:36:20 +0800 Subject: Wifi: Support of channel stats in HAL V1.3 Remove the max channel count limit to get all channel stats. Bug: 151425271 Test: Verify on BRCM 43752 chip + hikey960, Fw needs update and will be included in next release (May 29th) Change-Id: I4c672dfd77b46bae9f8e878a8ee98fbd0f01dac5 Signed-off-by: Winnie Chen --- bcmdhd/wifi_hal/link_layer_stats.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/bcmdhd/wifi_hal/link_layer_stats.cpp b/bcmdhd/wifi_hal/link_layer_stats.cpp index 42e3f2f..34226f4 100644 --- a/bcmdhd/wifi_hal/link_layer_stats.cpp +++ b/bcmdhd/wifi_hal/link_layer_stats.cpp @@ -106,21 +106,6 @@ protected: ALOGE("Invalid stats pointer received"); return NL_SKIP; } - if (radio_stat->num_channels > 11) { - ALOGE("Incorrect number of channels = %d", radio_stat->num_channels); - // dump data before num_channels - ALOGE("radio: = %d", radio_stat->radio); - ALOGE("on_time: = %d", radio_stat->on_time); - ALOGE("tx_time: = %d", radio_stat->tx_time); - ALOGE("rx_time: = %d", radio_stat->rx_time); - ALOGE("on_time_scan: = %d", radio_stat->on_time_scan); - ALOGE("on_time_nbd: = %d", radio_stat->on_time_nbd); - ALOGE("on_time_gscan: = %d", radio_stat->on_time_gscan); - ALOGE("on_time_pno_scan: = %d", radio_stat->on_time_pno_scan); - ALOGE("on_time_hs20: = %d", radio_stat->on_time_hs20); - free(radio_stat); - return NL_SKIP; - } wifi_iface_stat *iface_stat = (wifi_iface_stat *)((char *)&((wifi_radio_stat_internal *)data)->channels + radio_stat->num_channels * sizeof(wifi_channel_stat)); -- cgit v1.2.3