11ac.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Marvell Wireless LAN device driver: 802.11ac
  3. *
  4. * Copyright (C) 2013-2014, Marvell International Ltd.
  5. *
  6. * This software file (the "File") is distributed by Marvell International
  7. * Ltd. 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. #ifndef _MWIFIEX_11AC_H_
  20. #define _MWIFIEX_11AC_H_
  21. #define VHT_CFG_2GHZ BIT(0)
  22. #define VHT_CFG_5GHZ BIT(1)
  23. enum vht_cfg_misc_config {
  24. VHT_CAP_TX_OPERATION = 1,
  25. VHT_CAP_ASSOCIATION,
  26. VHT_CAP_UAP_ONLY
  27. };
  28. #define DEFAULT_VHT_MCS_SET 0xfffa
  29. #define DISABLE_VHT_MCS_SET 0xffff
  30. #define VHT_BW_80_160_80P80 BIT(2)
  31. int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
  32. struct mwifiex_bssdescriptor *bss_desc,
  33. u8 **buffer);
  34. int mwifiex_cmd_11ac_cfg(struct mwifiex_private *priv,
  35. struct host_cmd_ds_command *cmd, u16 cmd_action,
  36. struct mwifiex_11ac_vht_cfg *cfg);
  37. void mwifiex_fill_vht_cap_tlv(struct mwifiex_private *priv,
  38. struct ieee80211_vht_cap *vht_cap, u8 bands);
  39. #endif /* _MWIFIEX_11AC_H_ */