From 0fbb97de1f4bfe493ecb385f7fc4afca81bce78c Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Thu, 11 Jan 2018 16:52:14 -0800 Subject: 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 --- wifi/java/android/net/wifi/WifiConfiguration.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 @@ -266,9 +266,16 @@ 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 */ -- cgit v1.2.3-59-g8ed1b