summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/11ac.h
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2013-03-19 03:06:03 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2013-03-25 20:43:39 (GMT)
commit83c78da983d672e214b5daedf83b26df95dd8407 (patch)
treeb9a93ebf27e05a0b99f12a9d2af8aeca007958ca /drivers/net/wireless/mwifiex/11ac.h
parent657e27656dfb3a99e81c99df6e78e770d7fe0d48 (diff)
downloadlinux-fsl-qoriq-83c78da983d672e214b5daedf83b26df95dd8407.tar.xz
mwifiex: add support to configure VHT for AP mode
Currently, default VHT configuration from the firmware is used for the VHT operations. Adding vhtcfg command to configure the firmware based on input received from cfg. Enable VHT for AP mode only when cfg80211_ap_settings has a VHT IE i.e., when ieee80211ac is set to 1 in the hostapd.conf. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/11ac.h')
-rw-r--r--drivers/net/wireless/mwifiex/11ac.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/11ac.h b/drivers/net/wireless/mwifiex/11ac.h
index 80fd1ba..7c2c69b 100644
--- a/drivers/net/wireless/mwifiex/11ac.h
+++ b/drivers/net/wireless/mwifiex/11ac.h
@@ -20,7 +20,24 @@
#ifndef _MWIFIEX_11AC_H_
#define _MWIFIEX_11AC_H_
+#define VHT_CFG_2GHZ BIT(0)
+#define VHT_CFG_5GHZ BIT(1)
+
+enum vht_cfg_misc_config {
+ VHT_CAP_TX_OPERATION = 1,
+ VHT_CAP_ASSOCIATION,
+ VHT_CAP_UAP_ONLY
+};
+
+#define DEFAULT_VHT_MCS_SET 0xfffa
+#define DISABLE_VHT_MCS_SET 0xffff
+
+#define VHT_BW_80_160_80P80 BIT(2)
+
int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
struct mwifiex_bssdescriptor *bss_desc,
u8 **buffer);
+int mwifiex_cmd_11ac_cfg(struct mwifiex_private *priv,
+ struct host_cmd_ds_command *cmd, u16 cmd_action,
+ struct mwifiex_11ac_vht_cfg *cfg);
#endif /* _MWIFIEX_11AC_H_ */