1 /** @file mlan_11ax.h 2 * 3 * @brief This file contains the functions for station ioctl. 4 * 5 * 6 * Copyright 2018-2022 NXP 7 * 8 * This software file (the File) is distributed by NXP 9 * under the terms of the GNU General Public License Version 2, June 1991 10 * (the License). You may use, redistribute and/or modify the File in 11 * accordance with the terms and conditions of the License, a copy of which 12 * is available by writing to the Free Software Foundation, Inc., 13 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the 14 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 15 * 16 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE 17 * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 18 * ARE EXPRESSLY DISCLAIMED. The License provides additional details about 19 * this warranty disclaimer. 20 * 21 */ 22 23 #ifndef _MLAN_11AX_H_ 24 #define _MLAN_11AX_H_ 25 26 /** device support 2.4G 40MHZ*/ 27 #define AX_2G_40MHZ_SUPPORT MBIT(1) 28 /** device support 2.4G 242 tone RUs */ 29 #define AX_2G_20MHZ_SUPPORT MBIT(5) 30 31 /* 32 * 0 indicates support for HE-MCS 0-7 for n spatial streams 33 * 1 indicates support for HE-MCS 0-9 for n spatial streams 34 * 2 indicates support for HE-MCS 0-11 for n spatial streams 35 * 3 indicates that n spatial streams is not supported for HE PPDUs 36 */ 37 #define GET_HE_NSSMCS(MCSMapSet, nss) ((MCSMapSet >> (2 * (nss - 1))) & 0x3) 38 #define SET_HE_NSSMCS(MCSMapSet, nss, value) \ 39 (MCSMapSet |= (value & 0x3) << (2 * (nss - 1))) 40 41 t_u8 wlan_check_11ax_twt_supported(mlan_private *pmpriv, 42 BSSDescriptor_t *pbss_desc); 43 mlan_status wlan_11ax_ioctl_twtcfg(pmlan_adapter pmadapter, 44 pmlan_ioctl_req pioctl_req); 45 mlan_status wlan_cmd_twt_cfg(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, 46 t_u16 cmd_action, t_void *pdata_buf); 47 t_u8 wlan_fill_he_cap_ie(mlan_private *pmpriv, IEEEtypes_HECap_t *hecap_ie, 48 t_u16 band); 49 t_u8 wlan_fill_he_op_ie(mlan_private *pmpriv, IEEEtypes_HeOp_t *heop_ie); 50 t_u16 wlan_fill_he_cap_tlv(mlan_private *pmpriv, t_u16 band, 51 MrvlIEtypes_Extension_t *phe_cap, t_u8 flag); 52 void wlan_update_11ax_cap(mlan_adapter *pmadapter, 53 MrvlIEtypes_Extension_t *hw_he_cap); 54 55 int wlan_cmd_append_11ax_tlv(mlan_private *pmpriv, BSSDescriptor_t *pbss_desc, 56 t_u8 **ppbuffer); 57 t_u16 wlan_11ax_bandconfig_allowed(mlan_private *pmpriv, 58 BSSDescriptor_t *pbss_desc); 59 mlan_status wlan_11ax_cfg_ioctl(pmlan_adapter pmadapter, 60 pmlan_ioctl_req pioctl_req); 61 mlan_status wlan_11ax_ioctl_cmd(pmlan_adapter pmadapter, 62 pmlan_ioctl_req pioctl_req); 63 64 mlan_status wlan_cmd_11ax_cfg(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, 65 t_u16 cmd_action, t_void *pdata_buf); 66 mlan_status wlan_ret_11ax_cfg(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp, 67 mlan_ioctl_req *pioctl_buf); 68 mlan_status wlan_cmd_11ax_cmd(pmlan_private pmpriv, HostCmd_DS_COMMAND *cmd, 69 t_u16 cmd_action, t_void *pdata_buf); 70 mlan_status wlan_ret_11ax_cmd(pmlan_private pmpriv, HostCmd_DS_COMMAND *resp, 71 mlan_ioctl_req *pioctl_buf); 72 73 #endif /* _MLAN_11AX_H_ */ 74