diff options
author | Vinit Deshpande <vinitd@google.com> | 2014-05-20 18:42:36 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2014-05-20 22:26:19 -0700 |
commit | 674ca8a1f47c07033645a1016e68a2e82597e2fa (patch) | |
tree | bce4377a4f66ca0ae3816563bbcbe8a754846f56 /wifi/java/android | |
parent | cd956e0fe21dc1ba8f814950f109648499c8ac5f (diff) | |
download | frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.zip frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.tar.gz frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.tar.bz2 |
Make Wifi WPS API available on application layer
Un-hide WPS methods (and required interface classes, etc.) of WifiManager to
enable Apps to start/stop the WPS procedure, add a patch for WPS method
KEYPAD to avoid early failure callbacks. (Methods PBC, DISPLAY, KEYPAD
tested on 4.4.2_r2.)
Change-Id: I25aafdc4b637c87d754d4fdb70e40a34a569b738
Signed-off-by: Olaf Stoyke <o.stoyke@avm.de>
Diffstat (limited to 'wifi/java/android')
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 20 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WpsInfo.java | 2 |
2 files changed, 8 insertions, 14 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 9558d50..c6ce768 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1413,14 +1413,12 @@ public class WifiManager { /** * Passed with {@link ActionListener#onFailure}. * Indicates that the operation failed due to an internal error. - * @hide */ public static final int ERROR = 0; /** * Passed with {@link ActionListener#onFailure}. * Indicates that the operation is already in progress - * @hide */ public static final int IN_PROGRESS = 1; @@ -1428,30 +1426,28 @@ public class WifiManager { * Passed with {@link ActionListener#onFailure}. * Indicates that the operation failed because the framework is busy and * unable to service the request - * @hide */ public static final int BUSY = 2; /* WPS specific errors */ - /** WPS overlap detected {@hide} */ + /** WPS overlap detected */ public static final int WPS_OVERLAP_ERROR = 3; - /** WEP on WPS is prohibited {@hide} */ + /** WEP on WPS is prohibited */ public static final int WPS_WEP_PROHIBITED = 4; - /** TKIP only prohibited {@hide} */ + /** TKIP only prohibited */ public static final int WPS_TKIP_ONLY_PROHIBITED = 5; - /** Authentication failure on WPS {@hide} */ + /** Authentication failure on WPS */ public static final int WPS_AUTH_FAILURE = 6; - /** WPS timed out {@hide} */ + /** WPS timed out */ public static final int WPS_TIMED_OUT = 7; /** * Passed with {@link ActionListener#onFailure}. * Indicates that the operation failed due to invalid inputs - * @hide */ public static final int INVALID_ARGS = 8; - /** Interface for callback invocation on an application action {@hide} */ + /** Interface for callback invocation on an application action */ public interface ActionListener { /** The operation succeeded */ public void onSuccess(); @@ -1463,7 +1459,7 @@ public class WifiManager { public void onFailure(int reason); } - /** Interface for callback invocation on a start WPS action {@hide} */ + /** Interface for callback invocation on a start WPS action */ public interface WpsListener { /** WPS start succeeded */ public void onStartSuccess(String pin); @@ -1745,7 +1741,6 @@ public class WifiManager { * @param listener for callbacks on success or failure. Can be null. * @throws IllegalStateException if the WifiManager instance needs to be * initialized again - * @hide */ public void startWps(WpsInfo config, WpsListener listener) { if (config == null) throw new IllegalArgumentException("config cannot be null"); @@ -1759,7 +1754,6 @@ public class WifiManager { * @param listener for callbacks on success or failure. Can be null. * @throws IllegalStateException if the WifiManager instance needs to be * initialized again - * @hide */ public void cancelWps(ActionListener listener) { validateChannel(); diff --git a/wifi/java/android/net/wifi/WpsInfo.java b/wifi/java/android/net/wifi/WpsInfo.java index 2ad4ad0..ae2e771 100644 --- a/wifi/java/android/net/wifi/WpsInfo.java +++ b/wifi/java/android/net/wifi/WpsInfo.java @@ -40,7 +40,7 @@ public class WpsInfo implements Parcelable { /** Wi-Fi Protected Setup. www.wi-fi.org/wifi-protected-setup has details */ public int setup; - /** @hide */ + /** Passed with pin method KEYPAD */ public String BSSID; /** Passed with pin method configuration */ |