diff options
author | Yingying Tang <yintang@qti.qualcomm.com> | 2016-08-10 16:49:46 +0300 |
---|---|---|
committer | Hamad Kadmany <hkadmany@codeaurora.org> | 2016-09-07 15:13:34 +0300 |
commit | aaa99f55900255aed9081b471d8667c464b1e630 (patch) | |
tree | bf3e27675655817560ac6408a3f5281981b5d67d | |
parent | 06c8550082b8336e632ce275e2c8f7474693d66e (diff) | |
download | android_external_wpa_supplicant_8-aaa99f55900255aed9081b471d8667c464b1e630.tar.gz android_external_wpa_supplicant_8-aaa99f55900255aed9081b471d8667c464b1e630.tar.bz2 android_external_wpa_supplicant_8-aaa99f55900255aed9081b471d8667c464b1e630.zip |
QCA vendor command to get hardware capabilities
This commit introduces a new vendor sub command
QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY and the associated
attributes to get Wi-Fi hardware capabilities.
Change-Id: I0b4cc7b8b924b93f553e625ff1aaa237087a08d9
Signed-off-by: Yingying Tang <yintang@qti.qualcomm.com>
Git-commit: 6fe3b9d45151f1c6ae60be66d85638ca39fa7bbb
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-Fixed: 1064000
-rw-r--r-- | src/common/qca-vendor.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 03593ddc..f200c489 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -118,6 +118,12 @@ enum qca_radiotap_vendor_ids { * * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the * attributes defined in enum qca_wlan_gpio_attr. + * + * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. + * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which + * capabilities are to be fetched and other + * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the + * requested capabilities. */ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, @@ -204,6 +210,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, + QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, }; @@ -734,4 +741,32 @@ enum qca_wlan_gpio_attr { QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 }; +/** + * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability + */ +enum qca_wlan_vendor_attr_get_hw_capability { + QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, + /* Antenna isolation + * An attribute used in the response. + * The content of this attribute is encoded in a byte array. Each byte + * value is an antenna isolation value. The array length is the number + * of antennas. + */ + QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, + /* Request HW capability + * An attribute used in the request. + * The content of this attribute is a u32 array for one or more of + * hardware capabilities (attribute IDs) that are being requested. Each + * u32 value has a value from this + * enum qca_wlan_vendor_attr_get_hw_capability + * identifying which capabilities are requested. + */ + QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, + + /* keep last */ + QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, + QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = + QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, +}; + #endif /* QCA_VENDOR_H */ |