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 of commom message. 15 */ 16 17 #ifndef WLAN_TYPES_ROM_H 18 #define WLAN_TYPES_ROM_H 19 20 /***************************************************************************** 21 1 其他头文件包含 22 *****************************************************************************/ 23 #include "oal_ext_if_rom.h" 24 #include "oal_wlan_util_rom.h" 25 #include "wlan_types_base_rom.h" 26 #include "wlan_types.h" 27 28 #ifdef __cplusplus 29 #if __cplusplus 30 extern "C" { 31 #endif 32 #endif 33 /***************************************************************************** 34 2 宏定义 35 *****************************************************************************/ 36 #define WLAN_MAX_BAR_LEN 20 /* BAR帧的最大长度, 包含head和payload */ 37 #define WLAN_MAX_BAR_HEAD_LEN 16 /* BAR帧的头最大长度 */ 38 39 #define WLAN_WITP_CAPABILITY_PRIVACY BIT4 40 /***************************************************************************** 41 2.5 过滤命令宏定义 42 *****************************************************************************/ 43 #define WLAN_BIP_REPLAY_FAIL_FLT BIT0 /* BIP重放攻击过滤 */ 44 #define WLAN_CCMP_REPLAY_FAIL_FLT BIT1 /* CCMP重放攻击过滤 */ 45 #define WLAN_OTHER_CTRL_FRAME_FLT BIT2 /* direct控制帧过滤 */ 46 #define WLAN_BCMC_MGMT_OTHER_BSS_FLT BIT3 /* 其他BSS网络的组播管理帧过滤 */ 47 #define WLAN_UCAST_MGMT_OTHER_BSS_FLT BIT4 /* 其他BSS网络的单播管理帧过滤 */ 48 49 #define WLAN_UCAST_DATA_OTHER_BSS_FLT BIT5 /* 其他BSS网络的单播数据帧过滤 */ 50 #define WLAN_CFG_OTHER_BSS_BEACON_FLT_EN BIT25 /* 其他BSS网络的Beacon帧过滤 */ 51 #define WLAN_CFG_WDS_FLT_EN BIT24 /* WDS帧是否进行过滤 */ 52 #define WLAN_CFG_WDS_BCMC_FLT_EN BIT23 /* 广播WDS帧是否过滤开关 */ 53 #define WLAN_CFG_WDS_NON_DIRECT_FLT_EN BIT22 /* 非直接单播WDS帧是否过滤开关 */ 54 55 #ifdef __cplusplus 56 #if __cplusplus 57 } 58 #endif 59 #endif 60 61 #endif /* end of wlan_types_rom.h */ 62