wifi: use Passpoint API when forgetting a Passpoint network
Use WifiManager#removePasspointConfiguration when forgetting a Passpoint network to remove the configuration. This maintains the legacy behavior, where forgetting a Passpoint network/AP will remove its provider's profile. Bug: 34207710 Test: manual test Change-Id: I8b7f6d9fb20fa9f0f0d90566f76c2a39308ce420
This commit is contained in:
@@ -840,6 +840,8 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
Log.e(TAG, "Failed to forget invalid network " + mSelectedAccessPoint.getConfig());
|
||||
return;
|
||||
}
|
||||
} else if (mSelectedAccessPoint.getConfig().isPasspoint()) {
|
||||
mWifiManager.removePasspointConfiguration(mSelectedAccessPoint.getConfig().FQDN);
|
||||
} else {
|
||||
mWifiManager.forget(mSelectedAccessPoint.getConfig().networkId, mForgetListener);
|
||||
}
|
||||
|
Reference in New Issue
Block a user