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_fcs_rom.c 的头文件。 15 * Create: 2020-07-03 16 */ 17 18 #ifndef __HMAC_FCS_H__ 19 #define __HMAC_FCS_H__ 20 21 /***************************************************************************** 22 1 其他头文件包含 23 *****************************************************************************/ 24 #include "mac_vap_ext.h" 25 26 #ifdef __cplusplus 27 #if __cplusplus 28 extern "C" { 29 #endif 30 #endif 31 32 /***************************************************************************** 33 2 宏定义 34 *****************************************************************************/ 35 /* OFDM 12M: 0x004a0113 6M: 0x004b0113 11b 1M: 0x08000113 */ 36 #define WLAN_PROT_DATARATE_CHN0_1M (0x08000113) 37 #define WLAN_PROT_DATARATE_CHN1_1M (0x08000123) 38 #define WLAN_PROT_DATARATE_CHN0_6M (0x004b0113) 39 #define WLAN_PROT_DATARATE_CHN1_6M (0x004b0123) 40 #define WLAN_PROT_DATARATE_CHN0_12M (0x004a0113) 41 #define WLAN_PROT_DATARATE_CHN1_12M (0x004a0123) 42 #define WLAN_PROT_DATARATE_CHN0_24M (0x00490113) 43 #define WLAN_PROT_DATARATE_CHN1_24M (0x00490123) 44 45 /***************************************************************************** 46 10 函数声明 47 *****************************************************************************/ 48 49 osal_void hmac_fcs_start_enhanced(mac_fcs_cfg_stru *fcs_cfg); 50 osal_void hmac_fcs_start(mac_fcs_cfg_stru *fcs_cfg); 51 osal_void hmac_fcs_start_same_channel(mac_fcs_cfg_stru *fcs_cfg); 52 osal_void hmac_fcs_start_enhanced_same_channel(mac_fcs_cfg_stru *fcs_cfg); 53 osal_void hmac_fcs_start_send_one_packet(mac_fcs_cfg_stru *fcs_cfg); 54 osal_u32 hmac_fcs_set_prot_datarate(const hmac_vap_stru *src_vap); 55 osal_void hmac_fcs_prepare_one_packet_cfg(const hmac_vap_stru *hmac_vap, hal_one_packet_cfg_stru *one_packet_cfg, 56 osal_u16 protect_time); 57 osal_u32 hmac_fcs_get_prot_mode(const hmac_vap_stru *hmac_vap, const hal_one_packet_cfg_stru *one_packet_cfg); 58 59 #ifdef __cplusplus 60 #if __cplusplus 61 } 62 #endif 63 #endif 64 65 #endif /* end of hmac_fcs.h */ 66