From 4b1f1c6ba8e27abd5453e67198c8fe92dec33dd4 Mon Sep 17 00:00:00 2001 From: Vinit Deshpande Date: Wed, 11 Mar 2015 12:27:11 -0700 Subject: 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 --- bcmdhd/wifi_hal/gscan.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bcmdhd') 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) { -- cgit v1.1