summaryrefslogtreecommitdiffstats
path: root/wifi/java
diff options
context:
space:
mode:
authorVinit Deshpande <vinitd@google.com>2014-07-09 22:58:21 -0700
committerVinit Deshpande <vinitd@google.com>2014-07-10 13:45:01 -0700
commitebb530619569dae465e68a4e53e4cdc749ae3727 (patch)
tree0d89dfc749292996ac7f5b869c1daffa7d468b4c /wifi/java
parentc7cc37b3cd2a73882e75c74ff9ca2499011ce193 (diff)
downloadframeworks_base-ebb530619569dae465e68a4e53e4cdc749ae3727.zip
frameworks_base-ebb530619569dae465e68a4e53e4cdc749ae3727.tar.gz
frameworks_base-ebb530619569dae465e68a4e53e4cdc749ae3727.tar.bz2
Fix name mismatch in WifiAdapter
Change-Id: I895a2b7a8aa07a14f54543d0f86ad4a8e7660051
Diffstat (limited to 'wifi/java')
-rw-r--r--wifi/java/android/net/wifi/WifiAdapter.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/wifi/java/android/net/wifi/WifiAdapter.java b/wifi/java/android/net/wifi/WifiAdapter.java
index d0e6ca9..f6ee730 100644
--- a/wifi/java/android/net/wifi/WifiAdapter.java
+++ b/wifi/java/android/net/wifi/WifiAdapter.java
@@ -23,21 +23,21 @@ import android.os.Parcelable;
public class WifiAdapter implements Parcelable {
/* Keep this list in sync with wifi_hal.h */
- private static final int WIFI_FEATURE_INFRA = 0x0001; // Basic infrastructure mode
- private static final int WIFI_FEATURE_INFRA_5G = 0x0002; // Support for 5 GHz Band
- private static final int WIFI_FEATURE_PASSPOINT = 0x0004; // Support for GAS/ANQP
- private static final int WIFI_FEATURE_WIFI_DIRECT = 0x0008; // Wifi-Direct
- private static final int WIFI_FEATURE_MOBILE_HOTSPOT = 0x0010; // Soft AP
- private static final int WIFI_FEATURE_SCANNER = 0x0020; // WifiScanner APIs
- private static final int WIFI_FEATURE_NAN = 0x0040; // Neighbor Awareness Networking
- private static final int WIFI_FEATURE_D2D_RTT = 0x0080; // Device-to-device RTT
- private static final int WIFI_FEATURE_D2AP_RTT = 0x0100; // Device-to-AP RTT
- private static final int WIFI_FEATURE_BATCH_SCAN = 0x0200; // Batched Scan (deprecated)
- private static final int WIFI_FEATURE_PNO = 0x0400; // Preferred network offload
- private static final int WIFI_FEATURE_ADDITIONAL_STA = 0x0800; // Support for two STAs
- private static final int WIFI_FEATURE_TDLS = 0x1000; // Tunnel directed link setup
- private static final int WIFI_FEATURE_TDLS_OFFCHANNEL = 0x2000; // Support for TDLS off channel
- private static final int WIFI_FEATURE_EPR = 0x4000; // Enhanced power reporting
+ public static final int WIFI_FEATURE_INFRA = 0x0001; // Basic infrastructure mode
+ public static final int WIFI_FEATURE_INFRA_5G = 0x0002; // Support for 5 GHz Band
+ public static final int WIFI_FEATURE_PASSPOINT = 0x0004; // Support for GAS/ANQP
+ public static final int WIFI_FEATURE_P2P = 0x0008; // Wifi-Direct
+ public static final int WIFI_FEATURE_MOBILE_HOTSPOT = 0x0010; // Soft AP
+ public static final int WIFI_FEATURE_SCANNER = 0x0020; // WifiScanner APIs
+ public static final int WIFI_FEATURE_NAN = 0x0040; // Neighbor Awareness Networking
+ public static final int WIFI_FEATURE_D2D_RTT = 0x0080; // Device-to-device RTT
+ public static final int WIFI_FEATURE_D2AP_RTT = 0x0100; // Device-to-AP RTT
+ public static final int WIFI_FEATURE_BATCH_SCAN = 0x0200; // Batched Scan (deprecated)
+ public static final int WIFI_FEATURE_PNO = 0x0400; // Preferred network offload
+ public static final int WIFI_FEATURE_ADDITIONAL_STA = 0x0800; // Support for two STAs
+ public static final int WIFI_FEATURE_TDLS = 0x1000; // Tunnel directed link setup
+ public static final int WIFI_FEATURE_TDLS_OFFCHANNEL = 0x2000; // Support for TDLS off channel
+ public static final int WIFI_FEATURE_EPR = 0x4000; // Enhanced power reporting
private String name;
private int supportedFeatures;
@@ -64,7 +64,7 @@ public class WifiAdapter implements Parcelable {
}
public boolean isWifiDirectSupported() {
- return isFeatureSupported(WIFI_FEATURE_WIFI_DIRECT);
+ return isFeatureSupported(WIFI_FEATURE_P2P);
}
public boolean isMobileHotstpoSupported() {