passpoint-r2: add not found failure for osuProvider

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: live test with Passpoint R2 service provider AP
Change-Id: Iabc5bea2c3ca581061d34300c139c0bc7ee38bc8
Signed-off-by: Ecco Park <eccopark@google.com>
This commit is contained in:
Ecco Park
2018-11-20 00:51:40 -08:00
parent fdf99084ed
commit ec55a1fe53
2 changed files with 11 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ public final class OsuProvider implements Parcelable {
/**
* SSID of the network to connect for service sign-up.
*/
private final WifiSsid mOsuSsid;
private WifiSsid mOsuSsid;
/**
* Friendly name of the OSU provider.
@@ -130,6 +130,10 @@ public final class OsuProvider implements Parcelable {
return mOsuSsid;
}
public void setOsuSsid(WifiSsid osuSsid) {
mOsuSsid = osuSsid;
}
public String getFriendlyName() {
return mFriendlyName;
}

View File

@@ -149,6 +149,12 @@ public abstract class ProvisioningCallback {
*/
public static final int OSU_FAILURE_ADD_PASSPOINT_CONFIGURATION = 22;
/**
* The reason code for provisioning failure when an {@link OsuProvider} is not found for
* provisioning.
*/
public static final int OSU_FAILURE_OSU_PROVIDER_NOT_FOUND = 23;
/**
* The status code for provisioning flow to indicate connecting to OSU AP
*/