am a4144563: Merge "add disable Ephemeral Network API Bug:18525241" into lmp-mr1-dev
* commit 'a4144563a5bd0e0be4a97fa6e89be6fb455da372': add disable Ephemeral Network API Bug:18525241
This commit is contained in:
@@ -154,5 +154,7 @@ interface IWifiManager
|
|||||||
void setAllowScansWithTraffic(int enabled);
|
void setAllowScansWithTraffic(int enabled);
|
||||||
|
|
||||||
WifiConnectionStatistics getConnectionStatistics();
|
WifiConnectionStatistics getConnectionStatistics();
|
||||||
|
|
||||||
|
void disableEphemeralNetwork(String SSID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1632,7 +1632,6 @@ public class WifiManager {
|
|||||||
/** @hide */
|
/** @hide */
|
||||||
public static final int RSSI_PKTCNT_FETCH_FAILED = BASE + 22;
|
public static final int RSSI_PKTCNT_FETCH_FAILED = BASE + 22;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Passed with {@link ActionListener#onFailure}.
|
* Passed with {@link ActionListener#onFailure}.
|
||||||
* Indicates that the operation failed due to an internal error.
|
* Indicates that the operation failed due to an internal error.
|
||||||
@@ -1981,6 +1980,20 @@ public class WifiManager {
|
|||||||
sAsyncChannel.sendMessage(DISABLE_NETWORK, netId, putListener(listener));
|
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
|
* Start Wi-fi Protected Setup
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user