diff options
author | Kumar Anand <kanand@codeaurora.org> | 2014-05-29 03:20:15 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2014-06-10 12:44:47 -0700 |
commit | 17052b7966a846eb2641c970365383a23400c546 (patch) | |
tree | 2d59114484f0928b0bef54bd71609c9811f94042 /include | |
parent | fdb49e3d2bcebc5549f93ea8687a56c9e55f1a2d (diff) | |
download | hardware_libhardware_legacy-17052b7966a846eb2641c970365383a23400c546.zip hardware_libhardware_legacy-17052b7966a846eb2641c970365383a23400c546.tar.gz hardware_libhardware_legacy-17052b7966a846eb2641c970365383a23400c546.tar.bz2 |
Wi-Fi HAL API cleanup
Removed unused APIs, added new typedef s8,
Added default enum for wifi_interface_mode
Change-Id: I7be61fb1c0f7babcfbfc18940e4a5fa83792b248
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware_legacy/link_layer_stats.h | 1 | ||||
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 37 |
2 files changed, 18 insertions, 20 deletions
diff --git a/include/hardware_legacy/link_layer_stats.h b/include/hardware_legacy/link_layer_stats.h index d5e9a67..e9ea97b 100644 --- a/include/hardware_legacy/link_layer_stats.h +++ b/include/hardware_legacy/link_layer_stats.h @@ -49,6 +49,7 @@ typedef enum { WIFI_INTERFACE_P2P_GO = 4,
WIFI_INTERFACE_NAN = 5,
WIFI_INTERFACE_MESH = 6,
+ WIFI_INTERFACE_UNKNOWN = -1
} wifi_interface_mode;
#define WIFI_CAPABILITY_QOS 0x00000001 // set for QOS association
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index cd79a2f..791b4c6 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -18,6 +18,7 @@ typedef enum { typedef unsigned char byte; typedef unsigned char u8; +typedef signed char s8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; @@ -44,20 +45,22 @@ void wifi_event_loop(wifi_handle handle); void wifi_get_error_info(wifi_error err, const char **msg); // return a pointer to a static string /* Feature enums */ -#define WIFI_FEATURE_INFRA 0x0001 // Basic infrastructure mode -#define WIFI_FEATURE_INFRA_5G 0x0002 // Support for 5 GHz Band -#define WIFI_FEATURE_HOTSPOT 0x0004 // Support for GAS/ANQP -#define WIFI_FEATURE_P2P 0x0008 // Wifi-Direct -#define WIFI_FEATURE_SOFT_AP 0x0010 // Soft AP -#define WIFI_FEATURE_GSCAN 0x0020 // Google-Scan APIs -#define WIFI_FEATURE_NBD 0x0040 // NearBy discovery -#define WIFI_FEATURE_D2D_RTT 0x0080 // Device-to-device RTT -#define WIFI_FEATURE_D2AP_RTT 0x0100 // Device-to-AP RTT -#define WIFI_FEATURE_BATCH_GSCAN 0x0200 // Batched G-Scan -#define WIFI_FEATURE_PNO 0x0400 // Preferred network offload -#define WIFI_FEATURE_ADDITIONAL_STA 0x0800 // Support for two STAs -#define WIFI_FEATURE_TDLS 0x1000 // Tunnel directed link setup - +#define WIFI_FEATURE_INFRA 0x0001 // Basic infrastructure mode +#define WIFI_FEATURE_INFRA_5G 0x0002 // Support for 5 GHz Band +#define WIFI_FEATURE_HOTSPOT 0x0004 // Support for GAS/ANQP +#define WIFI_FEATURE_P2P 0x0008 // Wifi-Direct +#define WIFI_FEATURE_SOFT_AP 0x0010 // Soft AP +#define WIFI_FEATURE_GSCAN 0x0020 // Google-Scan APIs +#define WIFI_FEATURE_NAN 0x0040 // Neighbor Awareness Networking +#define WIFI_FEATURE_D2D_RTT 0x0080 // Device-to-device RTT +#define WIFI_FEATURE_D2AP_RTT 0x0100 // Device-to-AP RTT +#define WIFI_FEATURE_BATCH_SCAN 0x0200 // Batched Scan (legacy) +#define WIFI_FEATURE_PNO 0x0400 // Preferred network offload +#define WIFI_FEATURE_ADDITIONAL_STA 0x0800 // Support for two STAs +#define WIFI_FEATURE_TDLS 0x1000 // Tunnel directed link setup +#define WIFI_FEATURE_TDLS_OFFCHANNEL 0x2000 // Support for TDLS off channel +#define WIFI_FEATURE_EPR 0x4000 // Enhanced power reporting +#define WIFI_FEATURE_AP_STA 0x8000 // Support for AP STA Concurrency // Add more features here typedef int feature_set; @@ -77,12 +80,6 @@ wifi_error wifi_get_supported_feature_set(wifi_handle handle, feature_set *set); */ wifi_error wifi_get_concurrency_matrix(wifi_handle handle, int *size, feature_set **matrix); -/* List of all supported channels, including 5GHz channels */ -wifi_error wifi_get_supported_channels(wifi_handle handle, int *size, wifi_channel *list); - -/* Enhanced power reporting */ -wifi_error wifi_is_epr_supported(wifi_handle handle); - /* multiple interface support */ wifi_error wifi_get_ifaces(wifi_handle handle, int *num_ifaces, wifi_interface_handle **ifaces); |