summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Roshan Pius <rpius@google.com> 2018-01-11 16:52:14 -0800
committer Roshan Pius <rpius@google.com> 2018-01-18 23:24:29 -0800
commit0fbb97de1f4bfe493ecb385f7fc4afca81bce78c (patch)
tree7567586af402dac2f4d58a6e45d85065263e2f1d
parent633792e2d3fd0d09eebc4294119dcc9b1b1de970 (diff)
WifiConfiguration: Add support for auto-selecting AP band
Add new constant indicating the band/channel for SoftAp operation will be determined during softap initialization. The term 'ANY' for this option to be consistent with terminology used in hostapd. Bug: 68763822 Test: Compiles Change-Id: I9676caf5188601ca16c9229aaa8be2d0e43404a6
-rw-r--r--wifi/java/android/net/wifi/WifiConfiguration.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java
index 6438631cb8ed..2c6011823828 100644
--- a/wifi/java/android/net/wifi/WifiConfiguration.java
+++ b/wifi/java/android/net/wifi/WifiConfiguration.java
@@ -267,8 +267,15 @@ public class WifiConfiguration implements Parcelable {
public static final int AP_BAND_5GHZ = 1;
/**
+ * Device is allowed to choose the optimal band (2Ghz or 5Ghz) based on device capability,
+ * operating country code and current radio conditions.
+ * @hide
+ */
+ public static final int AP_BAND_ANY = -1;
+
+ /**
* The band which AP resides on
- * 0-2G 1-5G
+ * -1:Any 0:2G 1:5G
* By default, 2G is chosen
* @hide
*/