diff options
author | Irfan Sheriff <isheriff@google.com> | 2010-03-12 15:48:17 -0800 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2010-03-16 19:54:17 -0700 |
commit | 9ab518ad793385f8405edf19363fe825fb64f5f8 (patch) | |
tree | c6eb39b19b1b36888e904b1194c5055a97479dfd /wifi/java/android | |
parent | 9c041bbd81789c209e2369ba958306979b67614f (diff) | |
download | frameworks_base-9ab518ad793385f8405edf19363fe825fb64f5f8.zip frameworks_base-9ab518ad793385f8405edf19363fe825fb64f5f8.tar.gz frameworks_base-9ab518ad793385f8405edf19363fe825fb64f5f8.tar.bz2 |
softAp framework changes
Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
Diffstat (limited to 'wifi/java/android')
-rw-r--r-- | wifi/java/android/net/wifi/IWifiManager.aidl | 2 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index d833e33..5fd44b1 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -81,5 +81,7 @@ interface IWifiManager boolean setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable); int getWifiApEnabledState(); + + WifiConfiguration getWifiApConfiguration(); } diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 9ef8ba1..970d5fc 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -810,6 +810,20 @@ public class WifiManager { } /** + * Gets the Wi-Fi AP Configuration. + * @return AP details in WifiConfiguration + * + * @hide Dont open yet + */ + public WifiConfiguration getWifiApConfiguration() { + try { + return mService.getWifiApConfiguration(); + } catch (RemoteException e) { + return null; + } + } + + /** * 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 |