]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/net/wireless/marvell/mwifiex/11ac.h
Merge tag 'iio-fixes-for-4.5b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[mirror_ubuntu-artful-kernel.git] / drivers / net / wireless / marvell / mwifiex / 11ac.h
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
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
26 enum 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
37 int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
38 struct mwifiex_bssdescriptor *bss_desc,
39 u8 **buffer);
40 int 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);
43 void mwifiex_fill_vht_cap_tlv(struct mwifiex_private *priv,
44 struct ieee80211_vht_cap *vht_cap, u8 bands);
45 #endif /* _MWIFIEX_11AC_H_ */