diff options
author | Jeff Davidson <jpd@google.com> | 2014-12-06 02:10:39 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-06 02:10:39 +0000 |
commit | 401ef259f3b2c8c87b02c9939c0599d6ad0f6f39 (patch) | |
tree | d48082f52576be07fe782e967f87cd1076528c31 /wifi/java | |
parent | c4b2ec1a3a808c2dae0894e5f0cfd43d6ec1d5a2 (diff) | |
parent | a4144563a5bd0e0be4a97fa6e89be6fb455da372 (diff) | |
download | frameworks_base-401ef259f3b2c8c87b02c9939c0599d6ad0f6f39.zip frameworks_base-401ef259f3b2c8c87b02c9939c0599d6ad0f6f39.tar.gz frameworks_base-401ef259f3b2c8c87b02c9939c0599d6ad0f6f39.tar.bz2 |
am a4144563: Merge "add disable Ephemeral Network API Bug:18525241" into lmp-mr1-dev
* commit 'a4144563a5bd0e0be4a97fa6e89be6fb455da372':
add disable Ephemeral Network API Bug:18525241
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/IWifiManager.aidl | 2 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index 5ee17bb..b87a1e9 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -154,5 +154,7 @@ interface IWifiManager void setAllowScansWithTraffic(int enabled); WifiConnectionStatistics getConnectionStatistics(); + + void disableEphemeralNetwork(String SSID); } diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index d19952c..b001bb8 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -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. @@ -1982,6 +1981,20 @@ public class WifiManager { } /** + * 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 * * @param config WPS configuration (does not support {@link WpsInfo#LABEL}) |