From 3ed7caa0f99c3c178fcf4376bad04b53cc90eb5b Mon Sep 17 00:00:00 2001 From: Paul Stewart Date: Tue, 1 Nov 2016 13:03:35 -0700 Subject: [PATCH 1/2] Add constants for 802.11r Add constants FT-EAP and FT-PSK, which implement 802.11r Fast BSS Transition. Bug: 32607043 Change-Id: Ic089bf9331723f1fce3978253437f5759c6d61e9 Test: Build (constants only) --- wifi/java/android/net/wifi/WifiConfiguration.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index d3d5ea05c1af5..f1239802751d3 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -98,10 +98,22 @@ public class WifiConfiguration implements Parcelable { */ public static final int OSEN = 5; + /** + * IEEE 802.11r Fast BSS Transition with PSK authentication. + * @hide + */ + public static final int FT_PSK = 6; + + /** + * IEEE 802.11r Fast BSS Transition with EAP authentication. + * @hide + */ + public static final int FT_EAP = 7; + public static final String varName = "key_mgmt"; public static final String[] strings = { "NONE", "WPA_PSK", "WPA_EAP", "IEEE8021X", - "WPA2_PSK", "OSEN" }; + "WPA2_PSK", "OSEN", "FT_PSK", "FT_EAP" }; } /** From fbb63b092391a169349cedcb23412ccb9877b5b9 Mon Sep 17 00:00:00 2001 From: Paul Stewart Date: Wed, 2 Nov 2016 11:11:52 -0700 Subject: [PATCH 2/2] Add capability flag for 802.11r fast BSS transition Not only isn't there a way to query this capability from the driver, but there may be valid reasons to disable this feature per-platform. Bug: 32607043 Change-Id: Iea23e430efc61ffe0f6b68502c89a14bdcd318bb Test: Compile --- core/res/res/values/config.xml | 3 +++ core/res/res/values/symbols.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 90c19fb4e861d..a5e3fab53f3fd 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -419,6 +419,9 @@ false + + false + 10-0050F204-5 diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index bbfee14201006..647d53af057f9 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1699,6 +1699,7 @@ +