• 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: hmac_wps
15  */
16 
17 #ifndef __HMAC_WPS_H__
18 #define __HMAC_WPS_H__
19 
20 /*****************************************************************************
21   1 其他头文件包含
22 *****************************************************************************/
23 #include "frw_ext_if.h"
24 #include "hmac_vap.h"
25 #include "mac_device_ext.h"
26 #include "hmac_device.h"
27 #include "wlan_types_common.h"
28 #include "hmac_feature_interface.h"
29 
30 #ifdef __cplusplus
31 #if __cplusplus
32 extern "C" {
33 #endif
34 #endif
35 
36 typedef enum {
37     MAC_P2P_IE = 0,
38     MAC_WPS_IE = 1,
39     MAC_IE_BUTT
40 } mac_ie_type_enum;
41 typedef osal_u32 mac_ie_type_enum_uint32;
42 
43 typedef struct {
44     mac_ie_type_enum_uint32 ie_type;
45     osal_u32 oui;
46     osal_u32 oui_type;
47 }mac_ie_oui_stru;
48 
49 /*****************************************************************************
50   2 函数声明
51 *****************************************************************************/
52 typedef osal_void (*hmac_scan_del_wps_ie_cb)(hmac_vap_stru *hmac_vap, osal_u32 *len, osal_u8 *ie, osal_u8 del_wps_ie);
53 
54 #ifdef CONTROLLER_CUSTOMIZATION
55 osal_u32 hmac_wps_init(osal_void);
56 osal_void hmac_wps_deinit(osal_void);
57 #endif
58 
59 static osal_u32 hmac_wps_init_weakref(osal_void) __attribute__ ((weakref("hmac_wps_init"), used));
60 static osal_void hmac_wps_deinit_weakref(osal_void) __attribute__ ((weakref("hmac_wps_deinit"), used));
61 
62 #ifdef __cplusplus
63 #if __cplusplus
64 }
65 #endif
66 #endif
67 
68 #endif /* end of hmac_wps.h */
69