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: dmac tx opps head 15 * Create: 2020-7-5 16 */ 17 18 #ifndef HMAC_TXOPPS_H 19 #define HMAC_TXOPPS_H 20 21 #ifdef _PRE_WLAN_FEATURE_TXOPPS 22 /***************************************************************************** 23 1 其他头文件包含 24 *****************************************************************************/ 25 #include "mac_vap_ext.h" 26 #include "hmac_vap.h" 27 #endif 28 29 #ifdef __cplusplus 30 #if __cplusplus 31 extern "C" { 32 #endif 33 #endif 34 35 /* 软件配置mac txopps使能寄存器需要的三个参数 */ 36 typedef struct { 37 osal_u8 machw_txopps_en; /* sta是否使能txopps */ 38 osal_u8 machw_txopps_condition1; /* txopps条件1 */ 39 osal_u8 machw_txopps_condition2; /* txopps条件2 */ 40 osal_u8 auc_resv[1]; 41 } mac_txopps_machw_param_stru; 42 43 /***************************************************************************** 44 10 函数声明 45 *****************************************************************************/ 46 osal_u32 hmac_txopps_set_machw_en_sta(const hmac_vap_stru *hmac_vap, 47 const mac_txopps_machw_param_stru *txopps_machw_param); 48 osal_u32 hmac_txopps_set_machw(hmac_vap_stru *hmac_vap); 49 osal_s32 hmac_txopps_set_machw_partialaid(hmac_vap_stru *hmac_vap, osal_u32 partial_aid); 50 51 osal_u8 hmac_vap_get_txopps(hmac_vap_stru *hmac_vap); 52 void hmac_vap_set_txopps(hmac_vap_stru *hmac_vap, osal_u8 value); 53 osal_void mac_vap_update_txopps(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user); 54 extern osal_void hmac_sta_set_txopps_partial_aid(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user); 55 56 #ifdef __cplusplus 57 #if __cplusplus 58 } 59 #endif 60 #endif 61 62 #endif /* end of hmac_txopps.h */ 63