xref: /linux/drivers/net/wireless/nxp/nxpwifi/11ac.h (revision 91ec2035134982b98fab0609a9fd8480e8217dc1)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * nxpwifi: 802.11ac (VHT) definitions
4  *
5  * Copyright 2011-2024 NXP
6  */
7 
8 #ifndef _NXPWIFI_11AC_H_
9 #define _NXPWIFI_11AC_H_
10 
11 #define VHT_CFG_2GHZ BIT(0)
12 #define VHT_CFG_5GHZ BIT(1)
13 
14 enum vht_cfg_misc_config {
15 	VHT_CAP_TX_OPERATION = 1,
16 	VHT_CAP_ASSOCIATION,
17 	VHT_CAP_UAP_ONLY
18 };
19 
20 #define DEFAULT_VHT_MCS_SET 0xfffe
21 #define DISABLE_VHT_MCS_SET 0xffff
22 
23 #define VHT_BW_80_160_80P80 BIT(2)
24 
25 int nxpwifi_cmd_append_11ac_tlv(struct nxpwifi_private *priv,
26 				struct nxpwifi_bssdescriptor *bss_desc,
27 				u8 **buffer);
28 int nxpwifi_cmd_11ac_cfg(struct nxpwifi_private *priv,
29 			 struct host_cmd_ds_command *cmd, u16 cmd_action,
30 			 struct nxpwifi_11ac_vht_cfg *cfg);
31 void nxpwifi_fill_vht_cap_tlv(struct nxpwifi_private *priv,
32 			      struct ieee80211_vht_cap *vht_cap, u16 bands);
33 #endif /* _NXPWIFI_11AC_H_ */
34