11ac.h (1564B)
1/* 2 * NXP Wireless LAN device driver: 802.11ac 3 * 4 * Copyright 2011-2020 NXP 5 * 6 * This software file (the "File") is distributed by NXP 7 * under the terms of the GNU General Public License Version 2, June 1991 8 * (the "License"). You may use, redistribute and/or modify this File in 9 * accordance with the terms and conditions of the License, a copy of which 10 * is available by writing to the Free Software Foundation, Inc., 11 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the 12 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 13 * 14 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE 15 * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 16 * ARE EXPRESSLY DISCLAIMED. The License provides additional details about 17 * this warranty disclaimer. 18 */ 19 20#ifndef _MWIFIEX_11AC_H_ 21#define _MWIFIEX_11AC_H_ 22 23#define VHT_CFG_2GHZ BIT(0) 24#define VHT_CFG_5GHZ BIT(1) 25 26enum vht_cfg_misc_config { 27 VHT_CAP_TX_OPERATION = 1, 28 VHT_CAP_ASSOCIATION, 29 VHT_CAP_UAP_ONLY 30}; 31 32#define DEFAULT_VHT_MCS_SET 0xfffa 33#define DISABLE_VHT_MCS_SET 0xffff 34 35#define VHT_BW_80_160_80P80 BIT(2) 36 37int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv, 38 struct mwifiex_bssdescriptor *bss_desc, 39 u8 **buffer); 40int mwifiex_cmd_11ac_cfg(struct mwifiex_private *priv, 41 struct host_cmd_ds_command *cmd, u16 cmd_action, 42 struct mwifiex_11ac_vht_cfg *cfg); 43void mwifiex_fill_vht_cap_tlv(struct mwifiex_private *priv, 44 struct ieee80211_vht_cap *vht_cap, u8 bands); 45#endif /* _MWIFIEX_11AC_H_ */