1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: Header file 15 */ 16 17 #ifndef MSG_VAP_MANAGE_ROM_H 18 #define MSG_VAP_MANAGE_ROM_H 19 20 #include "osal_types.h" 21 #include "dmac_ext_if_type_rom.h" 22 #include "wlan_resource_common_rom.h" 23 #include "wlan_types_base_rom.h" 24 25 /* cfg id对应的参数结构体 */ 26 /* 创建VAP参数结构体, 对应cfgid: WLAN_CFGID_ADD_VAP */ 27 typedef struct { 28 wlan_vap_mode_enum_uint8 vap_mode; 29 osal_u8 cfg_vap_indx; 30 osal_u16 muti_user_id; /* 添加vap 对应的muti user index */ 31 osal_u8 vap_id; /* 需要添加的vap id */ 32 osal_u8 hal_vap_id; /* 需要添加的hal vap id */ 33 wlan_p2p_mode_enum_uint8 p2p_mode; /* 0:非P2P设备; 1:P2P_GO; 2:P2P_Device; 3:P2P_CL */ 34 35 #ifdef _PRE_PLAT_FEATURE_CUSTOMIZE 36 osal_u8 is_11ac2g_enable : 1; 37 osal_u8 disable_capab_2ght40 : 1; 38 osal_u8 er_su_disable : 1; 39 osal_u8 dcm_constellation_tx : 2; 40 osal_u8 bandwidth_extended_range : 1; 41 osal_u8 bit_reserve : 2; 42 #else 43 osal_u8 resv0[1]; 44 #endif 45 46 osal_u8 chba_mode : 1; 47 osal_u8 disable_11r : 1; 48 osal_u8 resv1 : 6; 49 osal_u8 tim_bitmap_len; 50 osal_u8 resv2[2]; /* 预留2字节对齐 */ 51 } mac_cfg_add_vap_param_stru; 52 53 /* 同步需要从ko侧同步到device侧的dmac_vap结构体成员 */ 54 typedef struct { 55 mac_vap_state_enum_uint8 vap_state; 56 osal_u16 sta_aid; 57 osal_u8 uapsd_cap; 58 osal_u8 vap_mac[WLAN_MAC_ADDR_LEN]; 59 osal_u8 auth_received : 1; /* 接收了auth */ 60 osal_u8 assoc_rsp_received : 1; /* 接收了assoc */ 61 osal_u8 protocol : 5; /* 协议模式 */ 62 osal_u8 keepalive : 1; 63 osal_u8 bcn_tout_max_cnt; /* beacon连续收不到最大睡眠次数 */ 64 osal_u16 in_tbtt_offset; /* 内部tbtt offset配置值 */ 65 osal_u16 beacon_timeout; /* beacon timeout配置值 */ 66 mac_cfg_p2p_noa_param_stru p2p_noa_param; 67 mac_channel_stru channel; /* vap所在的信道 */ 68 dmac_linkloss_rate_uint8 linkloss_rate; /* linkloss信息同步 */ 69 osal_u8 resv; 70 osal_u16 beacon_interval; /* beacon interval配置值 */ 71 } mac_update_dmac_vap_stru; 72 73 #endif