diff options
author | Irfan Sheriff <isheriff@google.com> | 2010-06-25 19:51:50 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-25 19:51:50 -0700 |
commit | 53dca61f26f4ff348418add60599213297acc899 (patch) | |
tree | d6e2642808f692be3f6083eac6251cdaa4acfcdb /wifi | |
parent | fd45c1e68dbc0c821c2b6d7e0b7e2a3493400798 (diff) | |
parent | 9005e7f4297a3f04263e81cb61ba2703d5667b0a (diff) | |
download | frameworks_base-53dca61f26f4ff348418add60599213297acc899.zip frameworks_base-53dca61f26f4ff348418add60599213297acc899.tar.gz frameworks_base-53dca61f26f4ff348418add60599213297acc899.tar.bz2 |
am 9005e7f4: Merge "Add setWifiApConfiguration interface" into gingerbread
Merge commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a' into gingerbread-plus-aosp
* commit '9005e7f4297a3f04263e81cb61ba2703d5667b0a':
Add setWifiApConfiguration interface
Diffstat (limited to 'wifi')
-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, 17 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index 5fd44b1..6e0bc9d 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -83,5 +83,7 @@ interface IWifiManager int getWifiApEnabledState(); WifiConfiguration getWifiApConfiguration(); + + void setWifiApConfiguration(in WifiConfiguration wifiConfig); } diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 970d5fc..4a22b68 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -824,6 +824,21 @@ public class WifiManager { } /** + * Sets the Wi-Fi AP Configuration. + * @return {@code true} if the operation succeeded, {@code false} otherwise + * + * @hide Dont open yet + */ + public boolean setWifiApConfiguration(WifiConfiguration wifiConfig) { + try { + mService.setWifiApConfiguration(wifiConfig); + return true; + } catch (RemoteException e) { + return false; + } + } + + /** * Allows an application to keep the Wi-Fi radio awake. * Normally the Wi-Fi radio may turn off when the user has not used the device in a while. * Acquiring a WifiLock will keep the radio on until the lock is released. Multiple |