summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Chen <winnie.chen@broadcom.com>2020-06-24 21:39:01 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-24 21:39:01 +0000
commit8f608ec0b9a7f9464c7681721ad18bd3bfd65104 (patch)
tree8c906740b38159ea22369b9301de99dfd042be1a
parentfa7c7c0e363ca820f68ef05d112d6794c45a4e44 (diff)
parent0922113b0de9710c6f11bf5ba795231592600f54 (diff)
downloadwlan-android11-qpr1-s2-release.tar.gz
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/broadcom/wlan/+/11990663 Change-Id: I60bb3785ecaa76cc16fde504290f6e24b8c4a09b
-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));