summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxshu <xshu@google.com>2020-07-17 01:25:31 -0700
committerxshu <xshu@google.com>2020-08-06 19:23:22 -0700
commitea6fc12902328343c9bb26f6ad56738d6cdcdae8 (patch)
tree839c912af51fa9cc903b3efead296041ba9e53e2
parentcc45059e81a75488313073896dd9de0e25379a5f (diff)
Do not block BSSID if no internet is expected
Make the BSSID blocking condition consistent with SSID level blocking. Bug: 161473332 Test: atest com.android.server.wifi Change-Id: Ieee494069693312d7b7ebbdb292fa9fdf535edb5 Merged-In: Ieee494069693312d7b7ebbdb292fa9fdf535edb5 (cherry picked from commit c462c6a2b270227fb76fa5a6a1fab632d3ed08b4)
-rw-r--r--service/java/com/android/server/wifi/ClientModeImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java
index bf11e3cb0..27d58501b 100644
--- a/service/java/com/android/server/wifi/ClientModeImpl.java
+++ b/service/java/com/android/server/wifi/ClientModeImpl.java
@@ -5414,11 +5414,11 @@ public class ClientModeImpl extends StateMachine {
mWifiConfigManager.updateNetworkSelectionStatus(
config.networkId,
DISABLED_NO_INTERNET_TEMPORARY);
+ mBssidBlocklistMonitor.handleBssidConnectionFailure(
+ mLastBssid, config.SSID,
+ BssidBlocklistMonitor.REASON_NETWORK_VALIDATION_FAILURE,
+ mWifiInfo.getRssi());
}
- mBssidBlocklistMonitor.handleBssidConnectionFailure(
- mLastBssid, config.SSID,
- BssidBlocklistMonitor.REASON_NETWORK_VALIDATION_FAILURE,
- mWifiInfo.getRssi());
mWifiScoreCard.noteValidationFailure(mWifiInfo);
}
}