• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: APF mac header.
15  * Author:
16  * Create: 2022-10-14
17  */
18 
19 #ifndef MAC_APF_H
20 #define MAC_APF_H
21 
22 /*****************************************************************************
23   1 其他头文件包含
24 *****************************************************************************/
25 #include "frw_osal.h"
26 
27 #ifdef __cplusplus
28 #if __cplusplus
29 extern "C" {
30 #endif
31 #endif
32 
33 #undef  THIS_FILE_ID
34 #define THIS_FILE_ID OAM_FILE_ID_MAC_APF_H
35 
36 #ifdef _PRE_WLAN_FEATURE_APF
37 /*****************************************************************************
38   2 宏定义
39 *****************************************************************************/
40 #define APF_PROGRAM_MAX_LEN 512
41 
42 /*****************************************************************************
43   3 枚举定义
44 *****************************************************************************/
45 typedef enum {
46     APF_SET_FILTER_CMD,
47     APF_GET_FILTER_CMD,
48     APF_FILTER_CMD_BUFF
49 } mac_apf_cmd_type_enum;
50 typedef osal_u8 mac_apf_cmd_type_uint8;
51 
52 typedef enum {
53     OSAL_SWITCH_OFF  = 0,
54     OSAL_SWITCH_ON   = 1,
55     OSAL_SWITCH_BUTT
56 } osal_switch_enum;
57 
58 typedef struct {
59     mac_apf_cmd_type_uint8 cmd_type;
60     osal_u16 program_len;
61     osal_u8 *program;
62 } mac_apf_filter_cmd_stru;
63 
64 #endif /* end of _PRE_WLAN_FEATURE_APF */
65 
66 #ifdef __cplusplus
67 #if __cplusplus
68 }
69 #endif
70 #endif
71 
72 #endif /* end of mac_apf.h */