Added case to change WifiStatusTracker SSID to Passpoint friendly name
The name of the wifi network as shown in the Network & internet page and in QuickSettings will be the Passpoint provider friendly name if the connection is to a Passpoint or OSU network. Bug: 118705403 Test: m Change-Id: Ifd6271d67031a8626b5ddf4691c1674a64be31d6
This commit is contained in:
@@ -117,7 +117,11 @@ public class WifiStatusTracker extends ConnectivityManager.NetworkCallback {
|
||||
if (connected) {
|
||||
mWifiInfo = mWifiManager.getConnectionInfo();
|
||||
if (mWifiInfo != null) {
|
||||
ssid = getValidSsid(mWifiInfo);
|
||||
if (mWifiInfo.isPasspointAp() || mWifiInfo.isOsuAp()) {
|
||||
ssid = mWifiInfo.getProviderFriendlyName();
|
||||
} else {
|
||||
ssid = getValidSsid(mWifiInfo);
|
||||
}
|
||||
updateRssi(mWifiInfo.getRssi());
|
||||
maybeRequestNetworkScore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user