• 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  * 文 件 名   : hmac_wmm.h
15  * 生成日期   : 2022年9月21日
16  * 功能描述   : hmac_wmm.c的头文件
17  */
18 
19 
20 #ifndef __HMAC_WMM_H__
21 #define __HMAC_WMM_H__
22 
23 /*****************************************************************************
24   1 头文件包含
25 *****************************************************************************/
26 #include "oal_netbuf_ext.h"
27 #include "hmac_vap.h"
28 #include "hmac_user.h"
29 
30 #ifdef __cplusplus
31 #if __cplusplus
32 extern "C" {
33 #endif
34 #endif
35 
36 #undef  THIS_FILE_ID
37 #define THIS_FILE_ID OAM_FILE_ID_HMAC_WMM_H
38 /*****************************************************************************
39   2 宏定义
40 *****************************************************************************/
41 
42 /*****************************************************************************
43   3 枚举定义
44 *****************************************************************************/
45 
46 /*****************************************************************************
47   4 全局变量声明
48 *****************************************************************************/
49 
50 /*****************************************************************************
51   5 消息头定义
52 *****************************************************************************/
53 
54 /*****************************************************************************
55   6 消息定义
56 *****************************************************************************/
57 
58 /*****************************************************************************
59   7 STRUCT定义
60 *****************************************************************************/
61 typedef struct {
62     osal_u32 ac;
63     osal_u32 value;
64 } hmac_config_edca_param;
65 
66 /*****************************************************************************
67   8 UNION定义
68 *****************************************************************************/
69 
70 /*****************************************************************************
71   9 OTHERS定义
72 *****************************************************************************/
73 
74 /*****************************************************************************
75   10 函数声明
76 *****************************************************************************/
77 osal_void hmac_config_wmm_switch(hmac_vap_stru *hmac_vap, oal_bool_enum_uint8 wmm);
78 osal_s32 hmac_config_open_wmm_cb(hmac_vap_stru *hmac_vap, frw_msg *msg);
79 osal_void hmac_config_set_wmm_register(const hmac_vap_stru *hmac_vap, oal_bool_enum_uint8 wmm);
80 osal_void  hmac_config_set_machw_wmm(const hmac_vap_stru *hmac_vap);
81 osal_void  hmac_config_set_wmm_open_cfg(const mac_wme_param_stru  *wmm);
82 osal_void  hmac_config_set_wmm_close_cfg(const mac_wme_param_stru *wmm);
83 osal_void hmac_set_ac_mode(mac_tx_ctl_stru *tx_ctl);
84 osal_s32 hmac_config_get_wmm_params(hmac_vap_stru *hmac_vap, hmac_config_wmm_para_stru *cfg_stru);
85 #ifdef _PRE_WLAN_SUPPORT_CCPRIV_CMD
86 osal_s32 hmac_config_set_qap_aifsn(hmac_vap_stru *hmac_vap, hmac_config_edca_param *param_user);
87 osal_s32 hmac_config_set_qap_cwmax(hmac_vap_stru *hmac_vap, hmac_config_edca_param *param_user);
88 osal_s32 hmac_config_set_qap_cwmin(hmac_vap_stru *hmac_vap, hmac_config_edca_param *param_user);
89 osal_s32 hmac_config_set_qap_msdu_lifetime(const hmac_vap_stru *hmac_vap, hmac_config_edca_param *param_user);
90 osal_s32 hmac_config_set_qap_txop_limit(hmac_vap_stru *hmac_vap, hmac_config_edca_param *param_user);
91 #endif
92 osal_u32 hmac_wmm_init(osal_void);
93 osal_void hmac_wmm_deinit(osal_void);
94 #ifdef __cplusplus
95 #if __cplusplus
96 }
97 #endif
98 #endif
99 
100 #endif /* end of hmac_wmm.h */
101