1 /* 2 * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef __HMAC_EDCA_OPT_H__ 20 #define __HMAC_EDCA_OPT_H__ 21 22 /* **************************************************************************** 23 其他头文件包含 24 **************************************************************************** */ 25 #include "oal_ext_if.h" 26 #include "mac_device.h" 27 #include "dmac_ext_if.h" 28 #include "oam_ext_if.h" 29 #include "hmac_user.h" 30 31 #ifdef __cplusplus 32 #if __cplusplus 33 extern "C" { 34 #endif 35 #endif 36 37 /* **************************************************************************** 38 宏定义 39 *****************************************************************************/ 40 #define HMAC_EDCA_OPT_MIN_PKT_LEN 256 /* 小于该长度的ip报文不被统计,排除chariot控制报文 */ 41 #define HMAC_EDCA_OPT_TIME_MS 30000 /* edca参数调整默认定时器 */ 42 #define HMAC_EDCA_OPT_PKT_NUM ((HMAC_EDCA_OPT_TIME_MS) >> 3) /* 平均每毫秒报文个数 */ 43 #define WLAN_EDCA_OPT_MAX_WEIGHT_STA 3 44 #define WLAN_EDCA_OPT_WEIGHT_STA 2 45 46 /* **************************************************************************** 47 函数声明 48 **************************************************************************** */ 49 hi_void hmac_edca_opt_rx_pkts_stat(hmac_user_stru *hmac_user, hi_u8 tidno, const mac_ip_header_stru *ip); 50 hi_void hmac_edca_opt_tx_pkts_stat(const hmac_tx_ctl_stru *tx_ctl, hi_u8 tidno, const mac_ip_header_stru *ip); 51 hi_u32 hmac_edca_opt_timeout_fn(hi_void *arg); 52 53 #ifdef __cplusplus 54 #if __cplusplus 55 } 56 #endif 57 #endif 58 #endif /* __HMAC_EDCA_OPT_H__ */ 59