162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * NXP Wireless LAN device driver: 802.11ac
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright 2011-2020 NXP
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _MWIFIEX_11AC_H_
962306a36Sopenharmony_ci#define _MWIFIEX_11AC_H_
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define VHT_CFG_2GHZ BIT(0)
1262306a36Sopenharmony_ci#define VHT_CFG_5GHZ BIT(1)
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cienum vht_cfg_misc_config {
1562306a36Sopenharmony_ci	VHT_CAP_TX_OPERATION = 1,
1662306a36Sopenharmony_ci	VHT_CAP_ASSOCIATION,
1762306a36Sopenharmony_ci	VHT_CAP_UAP_ONLY
1862306a36Sopenharmony_ci};
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#define DEFAULT_VHT_MCS_SET 0xfffa
2162306a36Sopenharmony_ci#define DISABLE_VHT_MCS_SET 0xffff
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#define VHT_BW_80_160_80P80 BIT(2)
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciint mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
2662306a36Sopenharmony_ci				struct mwifiex_bssdescriptor *bss_desc,
2762306a36Sopenharmony_ci				u8 **buffer);
2862306a36Sopenharmony_ciint mwifiex_cmd_11ac_cfg(struct mwifiex_private *priv,
2962306a36Sopenharmony_ci			 struct host_cmd_ds_command *cmd, u16 cmd_action,
3062306a36Sopenharmony_ci			 struct mwifiex_11ac_vht_cfg *cfg);
3162306a36Sopenharmony_civoid mwifiex_fill_vht_cap_tlv(struct mwifiex_private *priv,
3262306a36Sopenharmony_ci			      struct ieee80211_vht_cap *vht_cap, u8 bands);
3362306a36Sopenharmony_ci#endif /* _MWIFIEX_11AC_H_ */
34