summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwin <ashwin.bhat@broadcom.com>2015-08-08 06:31:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-08 06:31:57 +0000
commit40e29f465ac3ce6c4022ff25f57d9599b3f82b8a (patch)
tree83ecaf122ba7d1a2a48d128e168d972cc847b9d6
parent87393b64c432aaa885a94019fc10a83d92b1316e (diff)
parent340c22b114039948cbdc124797fd84d58a80462c (diff)
downloadhardware_broadcom_wlan-40e29f465ac3ce6c4022ff25f57d9599b3f82b8a.zip
hardware_broadcom_wlan-40e29f465ac3ce6c4022ff25f57d9599b3f82b8a.tar.gz
hardware_broadcom_wlan-40e29f465ac3ce6c4022ff25f57d9599b3f82b8a.tar.bz2
am 340c22b1: RSSI monitor cmd cleanup
* commit '340c22b114039948cbdc124797fd84d58a80462c': RSSI monitor cmd cleanup
-rw-r--r--bcmdhd/wifi_hal/wifi_hal.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/bcmdhd/wifi_hal/wifi_hal.cpp b/bcmdhd/wifi_hal/wifi_hal.cpp
index b27bac2..09738a3 100644
--- a/bcmdhd/wifi_hal/wifi_hal.cpp
+++ b/bcmdhd/wifi_hal/wifi_hal.cpp
@@ -1009,7 +1009,12 @@ static wifi_error wifi_start_rssi_monitoring(wifi_request_id id, wifi_interface_
wifi_handle handle = getWifiHandle(iface);
SetRSSIMonitorCommand *cmd = new SetRSSIMonitorCommand(id, iface, max_rssi, min_rssi, eh);
wifi_register_cmd(handle, id, cmd);
- return (wifi_error)cmd->start();
+
+ wifi_error result = (wifi_error)cmd->start();
+ if (result != WIFI_SUCCESS) {
+ wifi_unregister_cmd(handle, id);
+ }
+ return result;
}