summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxinhe <xinhe@google.com>2015-07-24 11:49:04 -0700
committerxinhe <xinhe@google.com>2015-07-27 11:54:51 -0700
commit68aaaa93878daeb9f1cb95baca79ee03154f15f5 (patch)
treee5f1d6e2925f2c89fcbfbda17029d531474cdc79
parent127f7244183786e6ccae09e81eeccdac31973e69 (diff)
downloadwifi-68aaaa93878daeb9f1cb95baca79ee03154f15f5.tar.gz
Framework should not call blacklist API on HAL unless ePNO is enabled
b/22699627 Change-Id: I270d2d628d989dbd03934c9449bf3db6101f28f5
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index 37f274401..b099d69c5 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -4139,12 +4139,24 @@ public class WifiConfigStore extends IpConfigStore {
}
void clearBssidBlacklist() {
+ if (!mWifiStateMachine.useHalBasedAutoJoinOffload()) {
+ if(DBG) {
+ Log.d(TAG, "No blacklist allowed without epno enabled");
+ }
+ return;
+ }
mBssidBlacklist = new HashSet<String>();
mWifiNative.clearBlacklist();
mWifiNative.setBssidBlacklist(null);
}
void blackListBssid(String BSSID) {
+ if (!mWifiStateMachine.useHalBasedAutoJoinOffload()) {
+ if(DBG) {
+ Log.d(TAG, "No blacklist allowed without epno enabled");
+ }
+ return;
+ }
if (BSSID == null)
return;
mBssidBlacklist.add(BSSID);