diff options
author | Vinit Deshpande <vinitd@google.com> | 2015-10-13 15:34:14 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2015-10-14 14:48:28 -0700 |
commit | 56845c30ef2bc7ccfd92764e4c7352aee03ec3a8 (patch) | |
tree | 3bcc66c275f2ce9c8caf6edafe92d8006499bc36 | |
parent | d3ae426c1b298f038b34171d13d710524779074e (diff) | |
download | android_frameworks_opt_net_wifi-56845c30ef2bc7ccfd92764e4c7352aee03ec3a8.tar.gz android_frameworks_opt_net_wifi-56845c30ef2bc7ccfd92764e4c7352aee03ec3a8.tar.bz2 android_frameworks_opt_net_wifi-56845c30ef2bc7ccfd92764e4c7352aee03ec3a8.zip |
Set hs20 property to 1 when connecting to passpoint network
Setting this property has some consequences - it will stop
using prohibited security parameters when connecting to AP
and will express some capabilities of the STA.
Bug: 24374083
Change-Id: I80abef812b272ce3384a13e7b3c44e56db4cffbd
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigStore.java | 2 | ||||
-rw-r--r-- | service/java/com/android/server/wifi/WifiNative.java | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java index 6a7075e2c..3484a5a95 100644 --- a/service/java/com/android/server/wifi/WifiConfigStore.java +++ b/service/java/com/android/server/wifi/WifiConfigStore.java @@ -1022,6 +1022,8 @@ public class WifiConfigStore extends IpConfigStore { } } + mWifiNative.setHs20(config.isPasspoint()); + if (updatePriorities) mWifiNative.saveConfig(); else diff --git a/service/java/com/android/server/wifi/WifiNative.java b/service/java/com/android/server/wifi/WifiNative.java index ca1ddc96c..ef3a2c12f 100644 --- a/service/java/com/android/server/wifi/WifiNative.java +++ b/service/java/com/android/server/wifi/WifiNative.java @@ -678,6 +678,14 @@ public class WifiNative { doBooleanCommand("SCAN_INTERVAL " + scanInterval); } + public void setHs20(boolean hs20) { + if (hs20) { + doBooleanCommand("SET HS20 1"); + } else { + doBooleanCommand("SET HS20 0"); + } + } + public void startTdls(String macAddr, boolean enable) { if (enable) { doBooleanCommand("TDLS_DISCOVER " + macAddr); |