summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNavtej Singh Mann <navtejsingh@google.com>2015-07-11 03:36:18 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-11 03:36:19 +0000
commit10619e8c9ed541a6a31db45a758f96c9c94c7fb7 (patch)
tree79b7b2b4938340460e6f194845fdd4c06d64fb89
parent7e55fbbfaf9be2f54a165becb4bf371521bd90aa (diff)
parentaab2ce80bab0221da737f64d15bae68caae21bad (diff)
downloadhardware_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.cpp16
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, &params);
- 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;
}