summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal
diff options
context:
space:
mode:
authorAshwin <ashwin.bhat@broadcom.com>2015-08-12 14:55:51 -0700
committerVinit Deshpande <vinitd@google.com>2015-08-12 15:20:42 -0700
commitde37675b218f0c685512417d914dff60f3b4b115 (patch)
tree3e02f1fdba4c8c03c43e40ffcb58f4b4c0c6f4e8 /bcmdhd/wifi_hal
parentce85c99d5b7035cf4312c40c0431d31cfb7e7951 (diff)
downloadhardware_broadcom_wlan-de37675b218f0c685512417d914dff60f3b4b115.zip
hardware_broadcom_wlan-de37675b218f0c685512417d914dff60f3b4b115.tar.gz
hardware_broadcom_wlan-de37675b218f0c685512417d914dff60f3b4b115.tar.bz2
Fix cleanup of COMPLETE_SCAN event
unregister the event if gscan setup fails Bug: 23030690 Change-Id: I6f20f340e96cf35af3e7fc28893fb4bc50c64ed8 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Diffstat (limited to 'bcmdhd/wifi_hal')
-rw-r--r--bcmdhd/wifi_hal/gscan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcmdhd/wifi_hal/gscan.cpp b/bcmdhd/wifi_hal/gscan.cpp
index 7b0f821..8a21a0d 100644
--- a/bcmdhd/wifi_hal/gscan.cpp
+++ b/bcmdhd/wifi_hal/gscan.cpp
@@ -662,7 +662,7 @@ public:
result = requestResponse(request);
if (result != WIFI_SUCCESS) {
ALOGE("failed to start scan; result = %d", result);
- registerVendorHandler(GOOGLE_OUI, GSCAN_EVENT_COMPLETE_SCAN);
+ unregisterVendorHandler(GOOGLE_OUI, GSCAN_EVENT_COMPLETE_SCAN);
unregisterVendorHandler(GOOGLE_OUI, GSCAN_EVENT_SCAN_RESULTS_AVAILABLE);
return result;
}