summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-06-25 03:13:13 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-06-25 03:13:13 +0000
commit89d3a3b346dca179ec268fc74b03ced4de0752d1 (patch)
tree8c906740b38159ea22369b9301de99dfd042be1a
parent2211f1af44f6a7ab8aaeabf1c8baac373c031d32 (diff)
parent20d05a24a8bed01d8ac9f5e044b18fada1efd7c2 (diff)
downloadwlan-android11-mainline-sparse-2020-dec-release.tar.gz
Change-Id: I8075991c46621cc0cec3e6fbb618851b0acf4aa8
-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));