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:
Quang Luong
2019-03-05 17:06:33 -08:00
parent 5a95250b5b
commit 72c0ebc290

View File

@@ -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();
}