summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2014-07-29 18:38:01 -0700
committerVinit Deshpande <vinitd@google.com>2014-07-29 18:38:01 -0700
commit18d4cad266ebda5f90092afd7e4f92e72533f637 (patch)
treedd5fe094dd7cb771f275e499562b70c9c8c89e19 /bcmdhd/wifi_hal
parent776b7065cdc95f43beaf270ccb9658e24fdadc95 (diff)
downloadhardware_broadcom_wlan-18d4cad266ebda5f90092afd7e4f92e72533f637.zip
hardware_broadcom_wlan-18d4cad266ebda5f90092afd7e4f92e72533f637.tar.gz
hardware_broadcom_wlan-18d4cad266ebda5f90092afd7e4f92e72533f637.tar.bz2
Re-instate REPORT_EVENT_AFTER_EACH_SCAN workaround
Hammerhead still doesn't support this flag - this unblocks some tests. Bug: 16633917 Change-Id: I04f3d1bc61f55bd58751fa4ae6b92df6970159e7
Diffstat (limited to 'bcmdhd/wifi_hal')
-rw-r--r--bcmdhd/wifi_hal/gscan.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/bcmdhd/wifi_hal/gscan.cpp b/bcmdhd/wifi_hal/gscan.cpp
index a130bd9..a10f0de 100644
--- a/bcmdhd/wifi_hal/gscan.cpp
+++ b/bcmdhd/wifi_hal/gscan.cpp
@@ -495,6 +495,13 @@ public:
}
int num_scans = 20;
+ 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) {