From d6676166599b7cadd043b0bd400aeace3059621b Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Thu, 11 Feb 2016 16:45:44 -0800 Subject: [PATCH] WifiConfiguration: add constants for radio band Change-Id: I2287ffb3d93351d73659327cef37a6d3ecd588b3 --- 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 5d94e53eaf271..37b34a69b2063 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -237,13 +237,25 @@ public class WifiConfiguration implements Parcelable { */ public String BSSID; + /** + * 2GHz band. + * @hide + */ + public static final int AP_BAND_2GHZ = 0; + + /** + * 5GHz band. + * @hide + */ + public static final int AP_BAND_5GHZ = 1; + /** * The band which AP resides on * 0-2G 1-5G * By default, 2G is chosen * @hide */ - public int apBand = 0; + public int apBand = AP_BAND_2GHZ; /** * The channel which AP resides on,currently, US only