summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinnie Chen <winnie.chen@broadcom.com>2020-05-22 18:36:20 +0800
committerAhmed ElArabawy <arabawy@google.com>2020-06-24 13:00:59 -0700
commit661f0af7af7a278c6c546f0ec9537405b423ba19 (patch)
tree8c906740b38159ea22369b9301de99dfd042be1a
parent0e6c01517a70b0682e6b98e97b7215349f780aeb (diff)
downloadplatform_hardware_broadcom_wlan-661f0af7af7a278c6c546f0ec9537405b423ba19.tar.gz
platform_hardware_broadcom_wlan-661f0af7af7a278c6c546f0ec9537405b423ba19.tar.bz2
platform_hardware_broadcom_wlan-661f0af7af7a278c6c546f0ec9537405b423ba19.zip
Wifi: Support of channel stats in HAL V1.3android11-dev
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 <winnie.chen@broadcom.com>
-rw-r--r--bcmdhd/wifi_hal/link_layer_stats.cpp15
1 files changed, 0 insertions, 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));