18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * NXP Wireless LAN device driver: generic data structures and APIs 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_DECL_H_ 218c2ecf20Sopenharmony_ci#define _MWIFIEX_DECL_H_ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#undef pr_fmt 248c2ecf20Sopenharmony_ci#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#include <linux/wait.h> 278c2ecf20Sopenharmony_ci#include <linux/timer.h> 288c2ecf20Sopenharmony_ci#include <linux/ieee80211.h> 298c2ecf20Sopenharmony_ci#include <uapi/linux/if_arp.h> 308c2ecf20Sopenharmony_ci#include <net/cfg80211.h> 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#define MWIFIEX_BSS_COEX_COUNT 2 338c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_BSS_NUM (3) 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#define MWIFIEX_DMA_ALIGN_SZ 64 368c2ecf20Sopenharmony_ci#define MWIFIEX_RX_HEADROOM 64 378c2ecf20Sopenharmony_ci#define MAX_TXPD_SZ 32 388c2ecf20Sopenharmony_ci#define INTF_HDR_ALIGN 4 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define MWIFIEX_MIN_DATA_HEADER_LEN (MWIFIEX_DMA_ALIGN_SZ + INTF_HDR_ALIGN + \ 418c2ecf20Sopenharmony_ci MAX_TXPD_SZ) 428c2ecf20Sopenharmony_ci#define MWIFIEX_MGMT_FRAME_HEADER_SIZE 8 /* sizeof(pkt_type) 438c2ecf20Sopenharmony_ci * + sizeof(tx_control) 448c2ecf20Sopenharmony_ci */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_TX_BASTREAM_SUPPORTED 2 478c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_RX_BASTREAM_SUPPORTED 16 488c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_TDLS_PEER_SUPPORTED 8 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#define MWIFIEX_STA_AMPDU_DEF_TXWINSIZE 64 518c2ecf20Sopenharmony_ci#define MWIFIEX_STA_AMPDU_DEF_RXWINSIZE 64 528c2ecf20Sopenharmony_ci#define MWIFIEX_STA_COEX_AMPDU_DEF_RXWINSIZE 16 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#define MWIFIEX_UAP_AMPDU_DEF_TXWINSIZE 32 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci#define MWIFIEX_UAP_COEX_AMPDU_DEF_RXWINSIZE 16 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#define MWIFIEX_UAP_AMPDU_DEF_RXWINSIZE 16 598c2ecf20Sopenharmony_ci#define MWIFIEX_11AC_STA_AMPDU_DEF_TXWINSIZE 64 608c2ecf20Sopenharmony_ci#define MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE 64 618c2ecf20Sopenharmony_ci#define MWIFIEX_11AC_UAP_AMPDU_DEF_TXWINSIZE 64 628c2ecf20Sopenharmony_ci#define MWIFIEX_11AC_UAP_AMPDU_DEF_RXWINSIZE 64 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define MWIFIEX_DEFAULT_BLOCK_ACK_TIMEOUT 0xffff 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci#define MWIFIEX_RATE_BITMAP_MCS0 32 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci#define MWIFIEX_RX_DATA_BUF_SIZE (4 * 1024) 698c2ecf20Sopenharmony_ci#define MWIFIEX_RX_CMD_BUF_SIZE (2 * 1024) 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci#define MAX_BEACON_PERIOD (4000) 728c2ecf20Sopenharmony_ci#define MIN_BEACON_PERIOD (50) 738c2ecf20Sopenharmony_ci#define MAX_DTIM_PERIOD (100) 748c2ecf20Sopenharmony_ci#define MIN_DTIM_PERIOD (1) 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define MWIFIEX_RTS_MIN_VALUE (0) 778c2ecf20Sopenharmony_ci#define MWIFIEX_RTS_MAX_VALUE (2347) 788c2ecf20Sopenharmony_ci#define MWIFIEX_FRAG_MIN_VALUE (256) 798c2ecf20Sopenharmony_ci#define MWIFIEX_FRAG_MAX_VALUE (2346) 808c2ecf20Sopenharmony_ci#define MWIFIEX_WMM_VERSION 0x01 818c2ecf20Sopenharmony_ci#define MWIFIEX_WMM_SUBTYPE 0x01 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci#define MWIFIEX_RETRY_LIMIT 14 848c2ecf20Sopenharmony_ci#define MWIFIEX_SDIO_BLOCK_SIZE 256 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_REQUEUED_PKT BIT(0) 878c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_BRIDGED_PKT BIT(1) 888c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_TDLS_PKT BIT(2) 898c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_EAPOL_TX_STATUS BIT(3) 908c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_ACTION_TX_STATUS BIT(4) 918c2ecf20Sopenharmony_ci#define MWIFIEX_BUF_FLAG_AGGR_PKT BIT(5) 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci#define MWIFIEX_BRIDGED_PKTS_THR_HIGH 1024 948c2ecf20Sopenharmony_ci#define MWIFIEX_BRIDGED_PKTS_THR_LOW 128 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_DISABLE_LINK 0x00 978c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_ENABLE_LINK 0x01 988c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_CREATE_LINK 0x02 998c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_CONFIG_LINK 0x03 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_RSSI_HIGH 50 1028c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_RSSI_LOW 55 1038c2ecf20Sopenharmony_ci#define MWIFIEX_TDLS_MAX_FAIL_COUNT 4 1048c2ecf20Sopenharmony_ci#define MWIFIEX_AUTO_TDLS_IDLE_TIME 10 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci/* 54M rates, index from 0 to 11 */ 1078c2ecf20Sopenharmony_ci#define MWIFIEX_RATE_INDEX_MCS0 12 1088c2ecf20Sopenharmony_ci/* 12-27=MCS0-15(BW20) */ 1098c2ecf20Sopenharmony_ci#define MWIFIEX_BW20_MCS_NUM 15 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci/* Rate index for OFDM 0 */ 1128c2ecf20Sopenharmony_ci#define MWIFIEX_RATE_INDEX_OFDM0 4 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_STA_NUM 3 1158c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_UAP_NUM 3 1168c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_P2P_NUM 3 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci#define MWIFIEX_A_BAND_START_FREQ 5000 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci/* SDIO Aggr data packet special info */ 1218c2ecf20Sopenharmony_ci#define SDIO_MAX_AGGR_BUF_SIZE (256 * 255) 1228c2ecf20Sopenharmony_ci#define BLOCK_NUMBER_OFFSET 15 1238c2ecf20Sopenharmony_ci#define SDIO_HEADER_OFFSET 28 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci#define MWIFIEX_SIZE_4K 0x4000 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_cienum mwifiex_bss_type { 1288c2ecf20Sopenharmony_ci MWIFIEX_BSS_TYPE_STA = 0, 1298c2ecf20Sopenharmony_ci MWIFIEX_BSS_TYPE_UAP = 1, 1308c2ecf20Sopenharmony_ci MWIFIEX_BSS_TYPE_P2P = 2, 1318c2ecf20Sopenharmony_ci MWIFIEX_BSS_TYPE_ANY = 0xff, 1328c2ecf20Sopenharmony_ci}; 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_cienum mwifiex_bss_role { 1358c2ecf20Sopenharmony_ci MWIFIEX_BSS_ROLE_STA = 0, 1368c2ecf20Sopenharmony_ci MWIFIEX_BSS_ROLE_UAP = 1, 1378c2ecf20Sopenharmony_ci MWIFIEX_BSS_ROLE_ANY = 0xff, 1388c2ecf20Sopenharmony_ci}; 1398c2ecf20Sopenharmony_ci 1408c2ecf20Sopenharmony_cienum mwifiex_tdls_status { 1418c2ecf20Sopenharmony_ci TDLS_NOT_SETUP = 0, 1428c2ecf20Sopenharmony_ci TDLS_SETUP_INPROGRESS, 1438c2ecf20Sopenharmony_ci TDLS_SETUP_COMPLETE, 1448c2ecf20Sopenharmony_ci TDLS_SETUP_FAILURE, 1458c2ecf20Sopenharmony_ci TDLS_LINK_TEARDOWN, 1468c2ecf20Sopenharmony_ci TDLS_CHAN_SWITCHING, 1478c2ecf20Sopenharmony_ci TDLS_IN_BASE_CHAN, 1488c2ecf20Sopenharmony_ci TDLS_IN_OFF_CHAN, 1498c2ecf20Sopenharmony_ci}; 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_cienum mwifiex_tdls_error_code { 1528c2ecf20Sopenharmony_ci TDLS_ERR_NO_ERROR = 0, 1538c2ecf20Sopenharmony_ci TDLS_ERR_INTERNAL_ERROR, 1548c2ecf20Sopenharmony_ci TDLS_ERR_MAX_LINKS_EST, 1558c2ecf20Sopenharmony_ci TDLS_ERR_LINK_EXISTS, 1568c2ecf20Sopenharmony_ci TDLS_ERR_LINK_NONEXISTENT, 1578c2ecf20Sopenharmony_ci TDLS_ERR_PEER_STA_UNREACHABLE = 25, 1588c2ecf20Sopenharmony_ci}; 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_ci#define BSS_ROLE_BIT_MASK BIT(0) 1618c2ecf20Sopenharmony_ci 1628c2ecf20Sopenharmony_ci#define GET_BSS_ROLE(priv) ((priv)->bss_role & BSS_ROLE_BIT_MASK) 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_cienum mwifiex_data_frame_type { 1658c2ecf20Sopenharmony_ci MWIFIEX_DATA_FRAME_TYPE_ETH_II = 0, 1668c2ecf20Sopenharmony_ci MWIFIEX_DATA_FRAME_TYPE_802_11, 1678c2ecf20Sopenharmony_ci}; 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_cistruct mwifiex_fw_image { 1708c2ecf20Sopenharmony_ci u8 *helper_buf; 1718c2ecf20Sopenharmony_ci u32 helper_len; 1728c2ecf20Sopenharmony_ci u8 *fw_buf; 1738c2ecf20Sopenharmony_ci u32 fw_len; 1748c2ecf20Sopenharmony_ci}; 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_cistruct mwifiex_802_11_ssid { 1778c2ecf20Sopenharmony_ci u32 ssid_len; 1788c2ecf20Sopenharmony_ci u8 ssid[IEEE80211_MAX_SSID_LEN]; 1798c2ecf20Sopenharmony_ci}; 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_cistruct mwifiex_wait_queue { 1828c2ecf20Sopenharmony_ci wait_queue_head_t wait; 1838c2ecf20Sopenharmony_ci int status; 1848c2ecf20Sopenharmony_ci}; 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_cistruct mwifiex_rxinfo { 1878c2ecf20Sopenharmony_ci struct sk_buff *parent; 1888c2ecf20Sopenharmony_ci u8 bss_num; 1898c2ecf20Sopenharmony_ci u8 bss_type; 1908c2ecf20Sopenharmony_ci u8 use_count; 1918c2ecf20Sopenharmony_ci u8 buf_type; 1928c2ecf20Sopenharmony_ci}; 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_cistruct mwifiex_txinfo { 1958c2ecf20Sopenharmony_ci u32 status_code; 1968c2ecf20Sopenharmony_ci u8 flags; 1978c2ecf20Sopenharmony_ci u8 bss_num; 1988c2ecf20Sopenharmony_ci u8 bss_type; 1998c2ecf20Sopenharmony_ci u8 aggr_num; 2008c2ecf20Sopenharmony_ci u32 pkt_len; 2018c2ecf20Sopenharmony_ci u8 ack_frame_id; 2028c2ecf20Sopenharmony_ci u64 cookie; 2038c2ecf20Sopenharmony_ci}; 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_cienum mwifiex_wmm_ac_e { 2068c2ecf20Sopenharmony_ci WMM_AC_BK, 2078c2ecf20Sopenharmony_ci WMM_AC_BE, 2088c2ecf20Sopenharmony_ci WMM_AC_VI, 2098c2ecf20Sopenharmony_ci WMM_AC_VO 2108c2ecf20Sopenharmony_ci} __packed; 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_cistruct ieee_types_wmm_ac_parameters { 2138c2ecf20Sopenharmony_ci u8 aci_aifsn_bitmap; 2148c2ecf20Sopenharmony_ci u8 ecw_bitmap; 2158c2ecf20Sopenharmony_ci __le16 tx_op_limit; 2168c2ecf20Sopenharmony_ci} __packed; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_cistruct mwifiex_types_wmm_info { 2198c2ecf20Sopenharmony_ci u8 oui[4]; 2208c2ecf20Sopenharmony_ci u8 subtype; 2218c2ecf20Sopenharmony_ci u8 version; 2228c2ecf20Sopenharmony_ci u8 qos_info; 2238c2ecf20Sopenharmony_ci u8 reserved; 2248c2ecf20Sopenharmony_ci struct ieee_types_wmm_ac_parameters ac_params[IEEE80211_NUM_ACS]; 2258c2ecf20Sopenharmony_ci} __packed; 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_cistruct mwifiex_arp_eth_header { 2288c2ecf20Sopenharmony_ci struct arphdr hdr; 2298c2ecf20Sopenharmony_ci u8 ar_sha[ETH_ALEN]; 2308c2ecf20Sopenharmony_ci u8 ar_sip[4]; 2318c2ecf20Sopenharmony_ci u8 ar_tha[ETH_ALEN]; 2328c2ecf20Sopenharmony_ci u8 ar_tip[4]; 2338c2ecf20Sopenharmony_ci} __packed; 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_cistruct mwifiex_chan_stats { 2368c2ecf20Sopenharmony_ci u8 chan_num; 2378c2ecf20Sopenharmony_ci u8 bandcfg; 2388c2ecf20Sopenharmony_ci u8 flags; 2398c2ecf20Sopenharmony_ci s8 noise; 2408c2ecf20Sopenharmony_ci u16 total_bss; 2418c2ecf20Sopenharmony_ci u16 cca_scan_dur; 2428c2ecf20Sopenharmony_ci u16 cca_busy_dur; 2438c2ecf20Sopenharmony_ci} __packed; 2448c2ecf20Sopenharmony_ci 2458c2ecf20Sopenharmony_ci#define MWIFIEX_HIST_MAX_SAMPLES 1048576 2468c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_RX_RATES 44 2478c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_AC_RX_RATES 74 2488c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_SNR 256 2498c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_NOISE_FLR 256 2508c2ecf20Sopenharmony_ci#define MWIFIEX_MAX_SIG_STRENGTH 256 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_cistruct mwifiex_histogram_data { 2538c2ecf20Sopenharmony_ci atomic_t rx_rate[MWIFIEX_MAX_AC_RX_RATES]; 2548c2ecf20Sopenharmony_ci atomic_t snr[MWIFIEX_MAX_SNR]; 2558c2ecf20Sopenharmony_ci atomic_t noise_flr[MWIFIEX_MAX_NOISE_FLR]; 2568c2ecf20Sopenharmony_ci atomic_t sig_str[MWIFIEX_MAX_SIG_STRENGTH]; 2578c2ecf20Sopenharmony_ci atomic_t num_samples; 2588c2ecf20Sopenharmony_ci}; 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_cistruct mwifiex_iface_comb { 2618c2ecf20Sopenharmony_ci u8 sta_intf; 2628c2ecf20Sopenharmony_ci u8 uap_intf; 2638c2ecf20Sopenharmony_ci u8 p2p_intf; 2648c2ecf20Sopenharmony_ci}; 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_cistruct mwifiex_radar_params { 2678c2ecf20Sopenharmony_ci struct cfg80211_chan_def *chandef; 2688c2ecf20Sopenharmony_ci u32 cac_time_ms; 2698c2ecf20Sopenharmony_ci} __packed; 2708c2ecf20Sopenharmony_ci 2718c2ecf20Sopenharmony_cistruct mwifiex_11h_intf_state { 2728c2ecf20Sopenharmony_ci bool is_11h_enabled; 2738c2ecf20Sopenharmony_ci bool is_11h_active; 2748c2ecf20Sopenharmony_ci} __packed; 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci#define MWIFIEX_FW_DUMP_IDX 0xff 2778c2ecf20Sopenharmony_ci#define MWIFIEX_FW_DUMP_MAX_MEMSIZE 0x160000 2788c2ecf20Sopenharmony_ci#define MWIFIEX_DRV_INFO_IDX 20 2798c2ecf20Sopenharmony_ci#define FW_DUMP_MAX_NAME_LEN 8 2808c2ecf20Sopenharmony_ci#define FW_DUMP_HOST_READY 0xEE 2818c2ecf20Sopenharmony_ci#define FW_DUMP_DONE 0xFF 2828c2ecf20Sopenharmony_ci#define FW_DUMP_READ_DONE 0xFE 2838c2ecf20Sopenharmony_ci 2848c2ecf20Sopenharmony_cistruct memory_type_mapping { 2858c2ecf20Sopenharmony_ci u8 mem_name[FW_DUMP_MAX_NAME_LEN]; 2868c2ecf20Sopenharmony_ci u8 *mem_ptr; 2878c2ecf20Sopenharmony_ci u32 mem_size; 2888c2ecf20Sopenharmony_ci u8 done_flag; 2898c2ecf20Sopenharmony_ci}; 2908c2ecf20Sopenharmony_ci 2918c2ecf20Sopenharmony_cienum rdwr_status { 2928c2ecf20Sopenharmony_ci RDWR_STATUS_SUCCESS = 0, 2938c2ecf20Sopenharmony_ci RDWR_STATUS_FAILURE = 1, 2948c2ecf20Sopenharmony_ci RDWR_STATUS_DONE = 2 2958c2ecf20Sopenharmony_ci}; 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_cienum mwifiex_chan_width { 2988c2ecf20Sopenharmony_ci CHAN_BW_20MHZ = 0, 2998c2ecf20Sopenharmony_ci CHAN_BW_10MHZ, 3008c2ecf20Sopenharmony_ci CHAN_BW_40MHZ, 3018c2ecf20Sopenharmony_ci CHAN_BW_80MHZ, 3028c2ecf20Sopenharmony_ci CHAN_BW_8080MHZ, 3038c2ecf20Sopenharmony_ci CHAN_BW_160MHZ, 3048c2ecf20Sopenharmony_ci CHAN_BW_5MHZ, 3058c2ecf20Sopenharmony_ci}; 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_cienum mwifiex_chan_offset { 3088c2ecf20Sopenharmony_ci SEC_CHAN_NONE = 0, 3098c2ecf20Sopenharmony_ci SEC_CHAN_ABOVE = 1, 3108c2ecf20Sopenharmony_ci SEC_CHAN_5MHZ = 2, 3118c2ecf20Sopenharmony_ci SEC_CHAN_BELOW = 3 3128c2ecf20Sopenharmony_ci}; 3138c2ecf20Sopenharmony_ci 3148c2ecf20Sopenharmony_ci#endif /* !_MWIFIEX_DECL_H_ */ 315