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 11w head 15 * Create: 2020-7-5 16 */ 17 18 #ifndef __HMAC_11W_H__ 19 #define __HMAC_11W_H__ 20 21 /***************************************************************************** 22 1 其他头文件包含 23 *****************************************************************************/ 24 #include "hmac_vap.h" 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif 30 #endif 31 32 /***************************************************************************** 33 全局变量声明 34 *****************************************************************************/ 35 #ifdef _PRE_WLAN_FEATURE_PMF 36 37 typedef oal_bool_enum_uint8 (*p_hmac_11w_robust_action_cb)(oal_netbuf_stru *mgmt_buf); 38 39 typedef struct { 40 p_hmac_11w_robust_action_cb hmac_11w_robust_action; 41 } hmac_11w_cb; 42 43 /***************************************************************************** 44 函数声明 45 *****************************************************************************/ 46 osal_u32 hmac_11w_rx_filter(const hmac_vap_stru *hmac_vap, const oal_netbuf_stru *netbuf); 47 osal_void hmac_11w_set_ucast_mgmt_frame(hmac_vap_stru *hmac_vap, const mac_tx_ctl_stru *tx_ctl, 48 hal_tx_txop_feature_stru *txop_feature, const oal_netbuf_stru *netbuf, mac_ieee80211_frame_stru *frame_hdr); 49 osal_void hmac_11w_set_mcast_mgmt_frame(hmac_vap_stru *hmac_vap, 50 hal_tx_txop_feature_stru *txop_feature, oal_netbuf_stru *netbuf, const hal_tx_mpdu_stru *mpdu); 51 osal_void hmac_11w_update_users_status(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, 52 oal_bool_enum_uint8 user_pmf); 53 54 #endif 55 56 #ifdef __cplusplus 57 #if __cplusplus 58 } 59 #endif 60 #endif 61 62 #endif /* end of hmac_11w.h */ 63