diff options
author | Navtej Singh Mann <navtejsingh@google.com> | 2015-07-11 03:36:18 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-11 03:36:19 +0000 |
commit | 10619e8c9ed541a6a31db45a758f96c9c94c7fb7 (patch) | |
tree | 79b7b2b4938340460e6f194845fdd4c06d64fb89 | |
parent | 7e55fbbfaf9be2f54a165becb4bf371521bd90aa (diff) | |
parent | aab2ce80bab0221da737f64d15bae68caae21bad (diff) | |
download | hardware_broadcom_wlan-10619e8c9ed541a6a31db45a758f96c9c94c7fb7.zip hardware_broadcom_wlan-10619e8c9ed541a6a31db45a758f96c9c94c7fb7.tar.gz hardware_broadcom_wlan-10619e8c9ed541a6a31db45a758f96c9c94c7fb7.tar.bz2 |
Merge "don't register command for BSSID blacklist because there is no stop for blacklist" into mnc-dev
-rw-r--r-- | bcmdhd/wifi_hal/gscan.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/bcmdhd/wifi_hal/gscan.cpp b/bcmdhd/wifi_hal/gscan.cpp index 7edeb6c..7b0f821 100644 --- a/bcmdhd/wifi_hal/gscan.cpp +++ b/bcmdhd/wifi_hal/gscan.cpp @@ -885,7 +885,7 @@ public: request.destroy(); } - // ALOGE("GetScanResults read %d results", mRetrieved); + ALOGV("GetScanResults read %d results", mRetrieved); *mNum = mRetrieved; return WIFI_SUCCESS; } @@ -969,7 +969,7 @@ public: it.get_type(), it.get_len()); } } - + ALOGV("GetScanResults read %d results", mRetrieved); return NL_OK; } }; @@ -1893,11 +1893,9 @@ wifi_error wifi_set_bssid_blacklist(wifi_request_id id, wifi_interface_handle if wifi_handle handle = getWifiHandle(iface); BssidBlacklistCommand *cmd = new BssidBlacklistCommand(iface, id, ¶ms); - wifi_register_cmd(handle, id, cmd); wifi_error result = (wifi_error)cmd->start(); - if (result != WIFI_SUCCESS) { - wifi_unregister_cmd(handle, id); - } + //release the reference of command as well + cmd->releaseRef(); return result; } @@ -1991,11 +1989,9 @@ wifi_error wifi_set_bssid_preference(wifi_request_id id, wifi_interface_handle i wifi_handle handle = getWifiHandle(iface); BssidPreferenceCommand *cmd = new BssidPreferenceCommand(iface, id, num_bssid, prefs); - wifi_register_cmd(handle, id, cmd); wifi_error result = (wifi_error)cmd->start(); - if (result != WIFI_SUCCESS) { - wifi_unregister_cmd(handle, id); - } + //release the reference of command as well + cmd->releaseRef(); return result; } |