diff options
author | Roshan Pius <rpius@google.com> | 2020-12-10 09:24:55 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-12-15 02:01:24 +0000 |
commit | b7e1c120a9b2d277da76b6c90a7636c958e85a8e (patch) | |
tree | 7fdbbb71f6043d11a1c3530a8eb53087309eac8d /service/java/com/android/server/wifi/ClientModeImpl.java | |
parent | fac849a294e75ceb831502de63e655f4e08fffe9 (diff) | |
download | wifi-b7e1c120a9b2d277da76b6c90a7636c958e85a8e.tar.gz |
WifiNetworkSelector: Include secondary STA in sufficiency checks
Include the secondary STA state (either if it already exists or if
there is a request to create one on a supported device) while performing
network sufficiency checks. This will ensure that we perform network
selection for the second STA (otherwise if we're connected to a good
quality connection on the primary STA, we will never perform network
selection and hence never create/connect on the second STA).
Note: This only modifies the network sufficiency conditions. We don't
plan to modify the scan schedule for the second STA (since that could
lead to significant power impact which in most cases may not find a
viable candidate to connect on the second STA). So, the scan schedule
will just use the primary STA state. However, if some scans do happen
(triggered internally or externally) when connected on the primary STA,
this change will ensure that we perform network selection for the second
STA.
Bug: 169413079
Test: atest com.android.server.wifi
Test: Manual steps:
i. Enable "config_wifiMultiStaRestrictedConcurrencyEnabled" overlay
ii. adb shell cmd wifi connect-network <ssid1> open
iii. adb shell cmd wifi status <-- Connected to <ssid1>
iv. adb shell cmd wifi add-suggestion <ssid2> open -p
v. adb shell cmd wifi start-scan
vi. abd shell cmd wifi status <-- Connected to <ssid1> & <ssid2>
Change-Id: Iabdf881c3068b38bcfb9292bff4e71a13615a1e6
Diffstat (limited to 'service/java/com/android/server/wifi/ClientModeImpl.java')
-rw-r--r-- | service/java/com/android/server/wifi/ClientModeImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index e79f88bbd..638a7004c 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -3357,7 +3357,7 @@ public class ClientModeImpl extends StateMachine implements ClientMode { mLastScanRssi = mWifiConfigManager.findScanRssi(netId, mWifiHealthMonitor.getScanRssiValidTimeMs()); mWifiScoreCard.noteConnectionAttempt(mWifiInfo, mLastScanRssi, config.SSID); - mBssidBlocklistMonitor.updateFirmwareRoamingConfiguration(config.SSID); + mBssidBlocklistMonitor.updateFirmwareRoamingConfiguration(Set.of(config.SSID)); updateWifiConfigOnStartConnection(config, bssid); reportConnectionAttemptStart(config, mTargetBssid, |