add disable Ephemeral Network API

Bug:18525241

Change-Id: I954c53c55c39f6c376b2bae3c7ac4d28246a7f5a
This commit is contained in:
vandwalle
2014-12-04 13:54:17 -08:00
committed by Jeff Davidson
parent 647b437d07
commit 93e4192c06
2 changed files with 16 additions and 1 deletions

View File

@@ -154,5 +154,7 @@ interface IWifiManager
void setAllowScansWithTraffic(int enabled);
WifiConnectionStatistics getConnectionStatistics();
void disableEphemeralNetwork(String SSID);
}

View File

@@ -1632,7 +1632,6 @@ public class WifiManager {
/** @hide */
public static final int RSSI_PKTCNT_FETCH_FAILED = BASE + 22;
/**
* Passed with {@link ActionListener#onFailure}.
* Indicates that the operation failed due to an internal error.
@@ -1981,6 +1980,20 @@ public class WifiManager {
sAsyncChannel.sendMessage(DISABLE_NETWORK, netId, putListener(listener));
}
/**
* Disable ephemeral Network
*
* @param SSID, in the format of WifiConfiguration's SSID.
* @hide
*/
public void disableEphemeralNetwork(String SSID) {
if (SSID == null) throw new IllegalArgumentException("SSID cannot be null");
try {
mService.disableEphemeralNetwork(SSID);
} catch (RemoteException e) {
}
}
/**
* Start Wi-fi Protected Setup
*