summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-06-25 01:04:42 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-06-25 01:04:42 +0000
commitf49c8606753f4da2c26059c821ad792c991c901e (patch)
tree8c906740b38159ea22369b9301de99dfd042be1a
parent358708d28e1001498a973f68a51695c25f30c60d (diff)
parent0922113b0de9710c6f11bf5ba795231592600f54 (diff)
downloadwlan-android11-d1-s5-release.tar.gz
Change-Id: Idef63d7de640ed2044b98ae7b617faa27ccb5ed1
-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));