summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2015-03-11 12:27:11 -0700
committerVinit Deshpande <vinitd@google.com>2015-03-19 00:50:54 +0000
commit4b1f1c6ba8e27abd5453e67198c8fe92dec33dd4 (patch)
tree4498b724508df4c92da1ed9b820fe9d24ea04aea /bcmdhd/wifi_hal
parentbde79a3e424ff41444cd7ff873dbee2977f1ca4b (diff)
downloadhardware_broadcom_wlan-4b1f1c6ba8e27abd5453e67198c8fe92dec33dd4.zip
hardware_broadcom_wlan-4b1f1c6ba8e27abd5453e67198c8fe92dec33dd4.tar.gz
hardware_broadcom_wlan-4b1f1c6ba8e27abd5453e67198c8fe92dec33dd4.tar.bz2
Remove HAL workaround for single shot scan
When report_threshold_num_scans and scan status event weren't supported; we set num_scans to 1 to implement single shot scan. Now that these are supported; we don't need this workaround. Bug: 19535383 Change-Id: Id86813f72b85cd154cf6867650c508c70ab4162b
Diffstat (limited to 'bcmdhd/wifi_hal')
-rw-r--r--bcmdhd/wifi_hal/gscan.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/bcmdhd/wifi_hal/gscan.cpp b/bcmdhd/wifi_hal/gscan.cpp
index 632522b..a6286f5 100644
--- a/bcmdhd/wifi_hal/gscan.cpp
+++ b/bcmdhd/wifi_hal/gscan.cpp
@@ -496,13 +496,6 @@ public:
}
int num_scans = mParams->report_threshold_num_scans;
- for (int i = 0; i < mParams->num_buckets; i++) {
- if (mParams->buckets[i].report_events == 1) {
- ALOGD("Setting num_scans to 1");
- num_scans = 1;
- break;
- }
- }
result = request.put_u32(GSCAN_ATTRIBUTE_NUM_SCANS_TO_CACHE, num_scans);
if (result < 0) {