18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * NXP Wireless LAN device driver: 802.11ac
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2011-2020 NXP
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This software file (the "File") is distributed by NXP
78c2ecf20Sopenharmony_ci * under the terms of the GNU General Public License Version 2, June 1991
88c2ecf20Sopenharmony_ci * (the "License").  You may use, redistribute and/or modify this File in
98c2ecf20Sopenharmony_ci * accordance with the terms and conditions of the License, a copy of which
108c2ecf20Sopenharmony_ci * is available by writing to the Free Software Foundation, Inc.,
118c2ecf20Sopenharmony_ci * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
128c2ecf20Sopenharmony_ci * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
158c2ecf20Sopenharmony_ci * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
168c2ecf20Sopenharmony_ci * ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
178c2ecf20Sopenharmony_ci * this warranty disclaimer.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifndef _MWIFIEX_11AC_H_
218c2ecf20Sopenharmony_ci#define _MWIFIEX_11AC_H_
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define VHT_CFG_2GHZ BIT(0)
248c2ecf20Sopenharmony_ci#define VHT_CFG_5GHZ BIT(1)
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cienum vht_cfg_misc_config {
278c2ecf20Sopenharmony_ci	VHT_CAP_TX_OPERATION = 1,
288c2ecf20Sopenharmony_ci	VHT_CAP_ASSOCIATION,
298c2ecf20Sopenharmony_ci	VHT_CAP_UAP_ONLY
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define DEFAULT_VHT_MCS_SET 0xfffa
338c2ecf20Sopenharmony_ci#define DISABLE_VHT_MCS_SET 0xffff
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define VHT_BW_80_160_80P80 BIT(2)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciint mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
388c2ecf20Sopenharmony_ci				struct mwifiex_bssdescriptor *bss_desc,
398c2ecf20Sopenharmony_ci				u8 **buffer);
408c2ecf20Sopenharmony_ciint mwifiex_cmd_11ac_cfg(struct mwifiex_private *priv,
418c2ecf20Sopenharmony_ci			 struct host_cmd_ds_command *cmd, u16 cmd_action,
428c2ecf20Sopenharmony_ci			 struct mwifiex_11ac_vht_cfg *cfg);
438c2ecf20Sopenharmony_civoid mwifiex_fill_vht_cap_tlv(struct mwifiex_private *priv,
448c2ecf20Sopenharmony_ci			      struct ieee80211_vht_cap *vht_cap, u8 bands);
458c2ecf20Sopenharmony_ci#endif /* _MWIFIEX_11AC_H_ */
46