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 __MAC_MIB_H__
20 #define __MAC_MIB_H__
21
22 /* ****************************************************************************
23 1 其他头文件包含
24 **************************************************************************** */
25 #include "oal_ext_if.h"
26 #include "wlan_mib.h"
27 #include "oam_ext_if.h"
28
29 #ifdef __cplusplus
30 #if __cplusplus
31 extern "C" {
32 #endif
33 #endif
34 /* ****************************************************************************
35 内联函数定义
36 **************************************************************************** */
37 /* ****************************************************************************
38 功能描述 : 设置wep MIB信息
39 **************************************************************************** */
mac_mib_set_wep(const mac_vap_stru * mac_vap,hi_u8 key_id)40 static inline hi_void mac_mib_set_wep(const mac_vap_stru *mac_vap, hi_u8 key_id)
41 {
42 mac_vap->mib_info->ast_wlan_mib_wep_dflt_key[key_id].auc_dot11_wep_default_key_value[WLAN_WEP_SIZE_OFFSET] =
43 40; /* 初始化wep相关MIB信息为40 */
44 }
45
46 /* ****************************************************************************
47 功能描述 : 获取MIB项 dot11_rsna_config_group_cipher 的值
48 **************************************************************************** */
mac_mib_get_rsnacfggroupcipher(const mac_vap_stru * mac_vap)49 static inline hi_u8 mac_mib_get_rsnacfggroupcipher(const mac_vap_stru *mac_vap)
50 {
51 return mac_vap->mib_info->wlan_mib_rsna_cfg.dot11_rsna_config_group_cipher;
52 }
53
54 /* ****************************************************************************
55 功能描述 : 设置MIB项 dot11_rsna_config_group_cipher 的值
56 **************************************************************************** */
mac_mib_set_rsnacfggroupcipher(const mac_vap_stru * mac_vap,hi_u8 group_cipher)57 static inline hi_void mac_mib_set_rsnacfggroupcipher(const mac_vap_stru *mac_vap, hi_u8 group_cipher)
58 {
59 mac_vap->mib_info->wlan_mib_rsna_cfg.dot11_rsna_config_group_cipher = group_cipher;
60 }
61
62 /* ****************************************************************************
63 功能描述 : 设置MIB项 dot11_wep_default_key_id 的值
64 **************************************************************************** */
mac_mib_set_wep_default_keyid(const mac_vap_stru * mac_vap,hi_u8 default_key_id)65 static inline hi_void mac_mib_set_wep_default_keyid(const mac_vap_stru *mac_vap, hi_u8 default_key_id)
66 {
67 mac_vap->mib_info->wlan_mib_privacy.dot11_wep_default_key_id = default_key_id;
68 }
69
70 /* ****************************************************************************
71 功能描述 : 获取MIB项 dot11_wep_default_key_id 的值
72 **************************************************************************** */
mac_mib_get_wep_default_keyid(const mac_vap_stru * mac_vap)73 static inline hi_u8 mac_mib_get_wep_default_keyid(const mac_vap_stru *mac_vap)
74 {
75 return (mac_vap->mib_info->wlan_mib_privacy.dot11_wep_default_key_id);
76 }
77
78 /* ****************************************************************************
79 功能描述 : 获取MIB项 dot11_wep_default_key_id 的值
80 **************************************************************************** */
mac_mib_get_wep_type(const mac_vap_stru * mac_vap)81 static inline hi_u8 mac_mib_get_wep_type(const mac_vap_stru *mac_vap)
82 {
83 return (mac_vap->mib_info->wlan_mib_privacy.dot11_wep_default_key_id);
84 }
85
86 /* ****************************************************************************
87 功能描述 : 获取MIB项 dot11_rsna_config_group_cipher 的值
88 **************************************************************************** */
mac_mib_get_privacyinvoked(const mac_vap_stru * mac_vap)89 static inline hi_u8 mac_mib_get_privacyinvoked(const mac_vap_stru *mac_vap)
90 {
91 return mac_vap->mib_info->wlan_mib_privacy.dot11_privacy_invoked;
92 }
93
94 /* ****************************************************************************
95 功能描述 : 设置MIB项 dot11_privacy_invoked 的值
96 **************************************************************************** */
mac_mib_set_privacyinvoked(const mac_vap_stru * mac_vap,hi_u8 privacyinvoked)97 static inline hi_void mac_mib_set_privacyinvoked(const mac_vap_stru *mac_vap, hi_u8 privacyinvoked)
98 {
99 mac_vap->mib_info->wlan_mib_privacy.dot11_privacy_invoked = privacyinvoked;
100 }
101
102 /* ****************************************************************************
103 功能描述 : 获取MIB项 dot11_rsna_activated 的值
104 **************************************************************************** */
mac_mib_get_rsnaactivated(const mac_vap_stru * mac_vap)105 static inline hi_u8 mac_mib_get_rsnaactivated(const mac_vap_stru *mac_vap)
106 {
107 return mac_vap->mib_info->wlan_mib_privacy.dot11_rsna_activated;
108 }
109
110 /* ****************************************************************************
111 功能描述 : 设置MIB项 dot11_rsna_activated 的值
112 **************************************************************************** */
mac_mib_set_rsnaactivated(const mac_vap_stru * mac_vap,hi_u8 rsnaactivated)113 static inline hi_void mac_mib_set_rsnaactivated(const mac_vap_stru *mac_vap, hi_u8 rsnaactivated)
114 {
115 mac_vap->mib_info->wlan_mib_privacy.dot11_rsna_activated = rsnaactivated;
116 }
117
118 /* ****************************************************************************
119 功能描述 : 获取MIB项 dot11StationID 的值
120 **************************************************************************** */
mac_mib_get_station_id(const mac_vap_stru * mac_vap)121 static inline hi_u8 *mac_mib_get_station_id(const mac_vap_stru *mac_vap)
122 {
123 return mac_vap->mib_info->wlan_mib_sta_config.auc_dot11_station_id;
124 }
125
126 /* ****************************************************************************
127 功能描述 : 获取MIB项 dot11OBSSScanPassiveDwell 的值
128 **************************************************************************** */
mac_mib_get_obssscan_passive_dwell(const mac_vap_stru * mac_vap)129 static inline hi_u32 mac_mib_get_obssscan_passive_dwell(const mac_vap_stru *mac_vap)
130 {
131 return mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_passive_dwell;
132 }
133
134 /* ****************************************************************************
135 功能描述 : 设置MIB项 dot11OBSSScanPassiveDwell 的值
136 **************************************************************************** */
mac_mib_set_obssscan_passive_dwell(const mac_vap_stru * mac_vap,hi_u32 val)137 static inline hi_void mac_mib_set_obssscan_passive_dwell(const mac_vap_stru *mac_vap, hi_u32 val)
138 {
139 mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_passive_dwell = val;
140 }
141
142 /* ****************************************************************************
143 功能描述 : 获取MIB项 dot11OBSSScanActiveDwell 的值
144 **************************************************************************** */
mac_mib_get_obssscan_active_dwell(const mac_vap_stru * mac_vap)145 static inline hi_u32 mac_mib_get_obssscan_active_dwell(const mac_vap_stru *mac_vap)
146 {
147 return mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_active_dwell;
148 }
149
150 /* ****************************************************************************
151 功能描述 : 设置MIB项 dot11OBSSScanActiveDwell 的值
152 **************************************************************************** */
mac_mib_set_obssscan_active_dwell(const mac_vap_stru * mac_vap,hi_u32 val)153 static inline hi_void mac_mib_set_obssscan_active_dwell(const mac_vap_stru *mac_vap, hi_u32 val)
154 {
155 mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_active_dwell = val;
156 }
157
158 /* ****************************************************************************
159 功能描述 : 获取MIB项 dot11BSSWidthTriggerScanInterval 的值
160 **************************************************************************** */
mac_mib_get_bsswidth_trigger_scan_interval(const mac_vap_stru * mac_vap)161 static inline hi_u32 mac_mib_get_bsswidth_trigger_scan_interval(const mac_vap_stru *mac_vap)
162 {
163 return mac_vap->mib_info->wlan_mib_operation.dot11_bss_width_trigger_scan_interval;
164 }
165
166 /* ****************************************************************************
167 功能描述 : 设置MIB项 dot11BSSWidthTriggerScanInterval 的值
168 **************************************************************************** */
mac_mib_set_bsswidth_trigger_scan_interval(const mac_vap_stru * mac_vap,hi_u32 val)169 static inline hi_void mac_mib_set_bsswidth_trigger_scan_interval(const mac_vap_stru *mac_vap, hi_u32 val)
170 {
171 mac_vap->mib_info->wlan_mib_operation.dot11_bss_width_trigger_scan_interval = val;
172 }
173
174 /* ****************************************************************************
175 功能描述 : 获取MIB项 dot11OBSSScanPassiveTotalPerChannel 的值
176 修改历史 :
177 1.日 期 : 2014年2月28日
178 作 者 : HiSilicon
179 修改内容 : 新生成函数
180 **************************************************************************** */
mac_mib_get_obssscan_passive_total_per_channel(const mac_vap_stru * mac_vap)181 static inline hi_u32 mac_mib_get_obssscan_passive_total_per_channel(const mac_vap_stru *mac_vap)
182 {
183 return mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_passive_total_per_channel;
184 }
185
186 /* ****************************************************************************
187 功能描述 : 设置MIB项 dot11OBSSScanPassiveTotalPerChannel 的值
188 **************************************************************************** */
mac_mib_set_obssscan_passive_total_per_channel(const mac_vap_stru * mac_vap,hi_u32 val)189 static inline hi_void mac_mib_set_obssscan_passive_total_per_channel(const mac_vap_stru *mac_vap, hi_u32 val)
190 {
191 mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_passive_total_per_channel = val;
192 }
193
194 /* ****************************************************************************
195 功能描述 : 获取MIB项 dot11OBSSScanActiveTotalPerChannel 的值
196 **************************************************************************** */
mac_mib_get_obssscan_active_total_per_channel(const mac_vap_stru * mac_vap)197 static inline hi_u32 mac_mib_get_obssscan_active_total_per_channel(const mac_vap_stru *mac_vap)
198 {
199 return mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_active_total_per_channel;
200 }
201
202 /* ****************************************************************************
203 功能描述 : 设置MIB项 dot11OBSSScanActiveTotalPerChannel 的值
204 **************************************************************************** */
mac_mib_set_obssscan_active_total_per_channel(const mac_vap_stru * mac_vap,hi_u32 val)205 static inline hi_void mac_mib_set_obssscan_active_total_per_channel(const mac_vap_stru *mac_vap, hi_u32 val)
206 {
207 mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_active_total_per_channel = val;
208 }
209
210 /* ****************************************************************************
211 功能描述 : 获取MIB项 dot11BSSWidthChannelTransitionDelayFactor 的值
212 **************************************************************************** */
mac_mib_get_bsswidth_channel_transition_delay_factor(const mac_vap_stru * mac_vap)213 static inline hi_u32 mac_mib_get_bsswidth_channel_transition_delay_factor(const mac_vap_stru *mac_vap)
214 {
215 return mac_vap->mib_info->wlan_mib_operation.dot11_bss_width_channel_transition_delay_factor;
216 }
217
218 /* ****************************************************************************
219 功能描述 : 设置MIB项 dot11BSSWidthChannelTransitionDelayFactor 的值
220 **************************************************************************** */
mac_mib_set_bsswidth_channel_transition_delay_factor(const mac_vap_stru * mac_vap,hi_u32 val)221 static inline hi_void mac_mib_set_bsswidth_channel_transition_delay_factor(const mac_vap_stru *mac_vap, hi_u32 val)
222 {
223 mac_vap->mib_info->wlan_mib_operation.dot11_bss_width_channel_transition_delay_factor = val;
224 }
225
226 /* ****************************************************************************
227 功能描述 : 获取MIB项 dot11OBSSScanActivityThreshold 的值
228 **************************************************************************** */
mac_mib_get_obssscan_activity_threshold(const mac_vap_stru * mac_vap)229 static inline hi_u32 mac_mib_get_obssscan_activity_threshold(const mac_vap_stru *mac_vap)
230 {
231 return mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_activity_threshold;
232 }
233
234 /* ****************************************************************************
235 功能描述 : 设置MIB项 dot11OBSSScanActivityThreshold 的值
236 **************************************************************************** */
mac_mib_set_obssscan_activity_threshold(const mac_vap_stru * mac_vap,hi_u32 val)237 static inline hi_void mac_mib_set_obssscan_activity_threshold(const mac_vap_stru *mac_vap, hi_u32 val)
238 {
239 mac_vap->mib_info->wlan_mib_operation.dot11_obss_scan_activity_threshold = val;
240 }
241
242 /* ****************************************************************************
243 功能描述 : 获取MIB项 dot11HighThroughputOptionImplemented 的值
244 **************************************************************************** */
mac_mib_get_high_throughput_option_implemented(const mac_vap_stru * mac_vap)245 static inline hi_u8 mac_mib_get_high_throughput_option_implemented(const mac_vap_stru *mac_vap)
246 {
247 return mac_vap->mib_info->wlan_mib_sta_config.dot11_high_throughput_option_implemented;
248 }
249
250 /* ****************************************************************************
251 功能描述 : 设置MIB项 dot11HighThroughputOptionImplemented 的值
252 **************************************************************************** */
mac_mib_set_high_throughput_option_implemented(const mac_vap_stru * mac_vap,hi_u8 val)253 static inline hi_void mac_mib_set_high_throughput_option_implemented(const mac_vap_stru *mac_vap, hi_u8 val)
254 {
255 mac_vap->mib_info->wlan_mib_sta_config.dot11_high_throughput_option_implemented = val;
256 }
257
258 /* ****************************************************************************
259 功能描述 : 获取MIB项 dot11FortyMHzOperationImplemented 的值
260 **************************************************************************** */
mac_mib_get_forty_mhz_operation_implemented(const mac_vap_stru * mac_vap)261 static inline hi_u8 mac_mib_get_forty_mhz_operation_implemented(const mac_vap_stru *mac_vap)
262 {
263 return mac_vap->mib_info->phy_ht.dot112_g_forty_m_hz_operation_implemented;
264 }
265
266 /* ****************************************************************************
267 功能描述 : 设置MIB项 dot11FortyMHzOperationImplemented 的值
268 **************************************************************************** */
mac_mib_set_forty_mhz_operation_implemented(const mac_vap_stru * mac_vap,hi_u8 val)269 static inline hi_void mac_mib_set_forty_mhz_operation_implemented(const mac_vap_stru *mac_vap, hi_u8 val)
270 {
271 mac_vap->mib_info->phy_ht.dot112_g_forty_m_hz_operation_implemented = val;
272 }
273
274 /* ****************************************************************************
275 功能描述 : 获取MIB项 dot11SpectrumManagementImplemented 的值
276 **************************************************************************** */
mac_mib_get_spectrum_management_implemented(const mac_vap_stru * mac_vap)277 static inline hi_u8 mac_mib_get_spectrum_management_implemented(const mac_vap_stru *mac_vap)
278 {
279 return mac_vap->mib_info->wlan_mib_sta_config.dot11_spectrum_management_implemented;
280 }
281
282 /* ****************************************************************************
283 功能描述 : 设置MIB项 dot11SpectrumManagementImplemented 的值
284 **************************************************************************** */
mac_mib_set_spectrum_management_implemented(const mac_vap_stru * mac_vap,hi_u8 val)285 static inline hi_void mac_mib_set_spectrum_management_implemented(const mac_vap_stru *mac_vap, hi_u8 val)
286 {
287 mac_vap->mib_info->wlan_mib_sta_config.dot11_spectrum_management_implemented = val;
288 }
289
290 /* ****************************************************************************
291 功能描述 : 获取MIB项 dot11FortyMHzIntolerant 的值
292 修改历史 :
293 1.日 期 : 2014年2月28日
294 作 者 : HiSilicon
295 修改内容 : 新生成函数
296 **************************************************************************** */
mac_mib_get_forty_mhz_intolerant(const mac_vap_stru * mac_vap)297 static inline hi_u8 mac_mib_get_forty_mhz_intolerant(const mac_vap_stru *mac_vap)
298 {
299 return mac_vap->mib_info->wlan_mib_operation.dot11_forty_m_hz_intolerant;
300 }
301
302 /* ****************************************************************************
303 功能描述 : 设置MIB项 dot11FortyMHzIntolerant 的值
304 **************************************************************************** */
mac_mib_set_forty_mhz_intolerant(const mac_vap_stru * mac_vap,hi_u8 val)305 static inline hi_void mac_mib_set_forty_mhz_intolerant(const mac_vap_stru *mac_vap, hi_u8 val)
306 {
307 mac_vap->mib_info->wlan_mib_operation.dot11_forty_m_hz_intolerant = val;
308 }
309
310 /* ****************************************************************************
311 功能描述 : 获取MIB项 dot112040BSSCoexistenceManagementSupport 的值
312 **************************************************************************** */
mac_mib_get_2040bss_coexistence_management_support(const mac_vap_stru * mac_vap)313 static inline hi_u8 mac_mib_get_2040bss_coexistence_management_support(const mac_vap_stru *mac_vap)
314 {
315 return mac_vap->mib_info->wlan_mib_operation.dot112040_bss_coexistence_management_support;
316 }
317 /* ****************************************************************************
318 功能描述 : 获取MIB项 dot11RSNAActivated 的值
319 **************************************************************************** */
mac_mib_get_dot11_rsna_activated(const mac_vap_stru * mac_vap)320 static inline hi_u8 mac_mib_get_dot11_rsna_activated(const mac_vap_stru *mac_vap)
321 {
322 return mac_vap->mib_info->wlan_mib_privacy.dot11_rsna_activated;
323 }
324
325 /* ****************************************************************************
326 功能描述 : 设置MIB项 dot11RSNAActivated 的值
327 **************************************************************************** */
mac_mib_set_dot11_rsnaactivated(const mac_vap_stru * mac_vap,hi_u8 val)328 static inline hi_void mac_mib_set_dot11_rsnaactivated(const mac_vap_stru *mac_vap, hi_u8 val)
329 {
330 mac_vap->mib_info->wlan_mib_privacy.dot11_rsna_activated = val;
331 }
332
333 /* ****************************************************************************
334 功能描述 : 设置MIB项 dot11RSNAMFPC 的值
335 **************************************************************************** */
mac_mib_set_dot11_rsnamfpc(const mac_vap_stru * mac_vap,hi_u8 val)336 static inline hi_void mac_mib_set_dot11_rsnamfpc(const mac_vap_stru *mac_vap, hi_u8 val)
337 {
338 mac_vap->mib_info->wlan_mib_privacy.dot11_rsnamfpc = val;
339 }
340
341 /* ****************************************************************************
342 功能描述 : 设置MIB项 dot11RSNAMFPR的值
343 **************************************************************************** */
mac_mib_set_dot11_rsnamfpr(const mac_vap_stru * mac_vap,hi_u8 val)344 static inline hi_void mac_mib_set_dot11_rsnamfpr(const mac_vap_stru *mac_vap, hi_u8 val)
345 {
346 mac_vap->mib_info->wlan_mib_privacy.dot11_rsnamfpr = val;
347 }
348
349 /* ****************************************************************************
350 功能描述 : 获取MIB项 dot11AssociationSAQueryMaximumTimeout 的值
351 **************************************************************************** */
mac_mib_get_dot11_association_saquery_maximum_timeout(const mac_vap_stru * mac_vap)352 static inline hi_u32 mac_mib_get_dot11_association_saquery_maximum_timeout(const mac_vap_stru *mac_vap)
353 {
354 return mac_vap->mib_info->wlan_mib_sta_config.dot11_association_sa_query_maximum_timeout;
355 }
356
357 /* ****************************************************************************
358 功能描述 : 获取MIB项 dot11AssociationSAQueryRetryTimeout 的值
359 **************************************************************************** */
mac_mib_get_dot11_association_saquery_retry_timeout(const mac_vap_stru * mac_vap)360 static inline hi_u32 mac_mib_get_dot11_association_saquery_retry_timeout(const mac_vap_stru *mac_vap)
361 {
362 return mac_vap->mib_info->wlan_mib_sta_config.dot11_association_sa_query_retry_timeout;
363 }
364
365 /* ****************************************************************************
366 功能描述 : 设置MIB项 dot112040BSSCoexistenceManagementSupport 的值
367 **************************************************************************** */
mac_mib_set_2040bss_coexistence_management_support(const mac_vap_stru * mac_vap,hi_u8 val)368 static inline hi_void mac_mib_set_2040bss_coexistence_management_support(const mac_vap_stru *mac_vap, hi_u8 val)
369 {
370 mac_vap->mib_info->wlan_mib_operation.dot112040_bss_coexistence_management_support = val;
371 }
372
373 /* ****************************************************************************
374 功能描述 : 获取MIB项 ul_dot11DTIMPeriod 的值
375 **************************************************************************** */
mac_mib_get_dot11dtimperiod(const mac_vap_stru * mac_vap)376 static inline hi_u32 mac_mib_get_dot11dtimperiod(const mac_vap_stru *mac_vap)
377 {
378 return mac_vap->mib_info->wlan_mib_sta_config.dot11_dtim_period;
379 }
380
381 /* ****************************************************************************
382 功能描述 : 初始化支持2040共存
383 **************************************************************************** */
mac_mib_init_2040(const mac_vap_stru * mac_vap)384 static inline hi_void mac_mib_init_2040(const mac_vap_stru *mac_vap)
385 {
386 mac_mib_set_forty_mhz_intolerant(mac_vap, HI_FALSE);
387 mac_mib_set_spectrum_management_implemented(mac_vap, HI_TRUE);
388 mac_mib_set_2040bss_coexistence_management_support(mac_vap, HI_FALSE);
389 }
390
391 /* ****************************************************************************
392 功能描述 : 设置MIB项 ul_dot11DTIMPeriod 的值
393 **************************************************************************** */
mac_mib_set_dot11dtimperiod(const mac_vap_stru * mac_vap,hi_u32 val)394 static inline hi_void mac_mib_set_dot11dtimperiod(const mac_vap_stru *mac_vap, hi_u32 val)
395 {
396 if (val != 0) {
397 mac_vap->mib_info->wlan_mib_sta_config.dot11_dtim_period = val;
398 }
399 }
400
401 /* ****************************************************************************
402 功能描述 : 获取MIB项 ul_dot11DTIMPeriod 的值
403 **************************************************************************** */
mac_mib_get_powermanagementmode(const mac_vap_stru * mac_vap)404 static inline hi_u32 mac_mib_get_powermanagementmode(const mac_vap_stru *mac_vap)
405 {
406 return mac_vap->mib_info->wlan_mib_sta_config.dot11_power_management_mode;
407 }
408
409 /* ****************************************************************************
410 功能描述 : 设置MIB项 ul_dot11DTIMPeriod 的值
411 **************************************************************************** */
mac_mib_set_powermanagementmode(const mac_vap_stru * mac_vap,hi_u8 val)412 static inline hi_void mac_mib_set_powermanagementmode(const mac_vap_stru *mac_vap, hi_u8 val)
413 {
414 mac_vap->mib_info->wlan_mib_sta_config.dot11_power_management_mode = val;
415 }
416
417 #ifdef _PRE_WLAN_FEATURE_OPMODE_NOTIFY
418 /* ****************************************************************************
419 功能描述 : 获取MIB项 dot11OperatingModeNotificationImplemented 的值
420 **************************************************************************** */
mac_mib_get_operating_mode_notification_implemented(mac_vap_stru * mac_vap)421 static inline hi_u8 mac_mib_get_operating_mode_notification_implemented(mac_vap_stru *mac_vap)
422 {
423 return mac_vap->mib_info->wlan_mib_sta_config.dot11_operating_mode_notification_implemented;
424 }
425
426 /* ****************************************************************************
427 功能描述 : 设置MIB项 dot11OperatingModeNotificationImplemented 的值
428 **************************************************************************** */
mac_mib_set_operating_mode_notification_implemented(mac_vap_stru * mac_vap,hi_u8 val)429 static inline hi_void mac_mib_set_operating_mode_notification_implemented(mac_vap_stru *mac_vap, hi_u8 val)
430 {
431 mac_vap->mib_info->wlan_mib_sta_config.dot11_operating_mode_notification_implemented = val;
432 }
433 #endif
434
435 /* ****************************************************************************
436 功能描述 : 获取LsigTxopFullProtectionActivated值
437 **************************************************************************** */
mac_mib_get_lsig_txop_full_protection_activated(const mac_vap_stru * mac_vap)438 static inline hi_u8 mac_mib_get_lsig_txop_full_protection_activated(const mac_vap_stru *mac_vap)
439 {
440 return (mac_vap->mib_info->wlan_mib_operation.dot11_lsigtxop_full_protection_activated);
441 }
442
443 /* ****************************************************************************
444 功能描述 : 设置LsigTxopFullProtectionActivated值
445 **************************************************************************** */
mac_mib_set_lsig_txop_full_protection_activated(const mac_vap_stru * mac_vap,hi_u8 lsig_txop_full_protection_activated)446 static inline hi_void mac_mib_set_lsig_txop_full_protection_activated(const mac_vap_stru *mac_vap,
447 hi_u8 lsig_txop_full_protection_activated)
448 {
449 mac_vap->mib_info->wlan_mib_operation.dot11_lsigtxop_full_protection_activated =
450 lsig_txop_full_protection_activated;
451 }
452
453 /* ****************************************************************************
454 功能描述 : 获取NonGFEntitiesPresent值
455 **************************************************************************** */
mac_mib_get_non_gfentities_present(const mac_vap_stru * mac_vap)456 static inline hi_u8 mac_mib_get_non_gfentities_present(const mac_vap_stru *mac_vap)
457 {
458 return (mac_vap->mib_info->wlan_mib_operation.dot11_non_gf_entities_present);
459 }
460
461 /* ****************************************************************************
462 功能描述 : 设置NonGFEntitiesPresent值
463 **************************************************************************** */
mac_mib_set_non_gfentities_present(const mac_vap_stru * mac_vap,hi_u8 non_gf_entities_present)464 static inline hi_void mac_mib_set_non_gfentities_present(const mac_vap_stru *mac_vap, hi_u8 non_gf_entities_present)
465 {
466 mac_vap->mib_info->wlan_mib_operation.dot11_non_gf_entities_present = non_gf_entities_present;
467 }
468
469 /* ****************************************************************************
470 功能描述 : 获取RIFSMode值
471 **************************************************************************** */
mac_mib_get_rifs_mode(const mac_vap_stru * mac_vap)472 static inline hi_u8 mac_mib_get_rifs_mode(const mac_vap_stru *mac_vap)
473 {
474 return (mac_vap->mib_info->wlan_mib_operation.dot11_rifs_mode);
475 }
476
477 /* ****************************************************************************
478 功能描述 : 设置RIFSMode值
479 **************************************************************************** */
mac_mib_set_rifs_mode(const mac_vap_stru * mac_vap,hi_u8 rifs_mode)480 static inline hi_void mac_mib_set_rifs_mode(const mac_vap_stru *mac_vap, hi_u8 rifs_mode)
481 {
482 mac_vap->mib_info->wlan_mib_operation.dot11_rifs_mode = rifs_mode;
483 }
484
485 /* ****************************************************************************
486 功能描述 : 获取htProtection值
487 **************************************************************************** */
mac_mib_get_ht_protection(const mac_vap_stru * mac_vap)488 static inline wlan_mib_ht_protection_enum_uint8 mac_mib_get_ht_protection(const mac_vap_stru *mac_vap)
489 {
490 return (mac_vap->mib_info->wlan_mib_operation.dot11_ht_protection);
491 }
492
493 /* ****************************************************************************
494 功能描述 : 设置htProtection值
495 **************************************************************************** */
mac_mib_set_ht_protection(const mac_vap_stru * mac_vap,wlan_mib_ht_protection_enum_uint8 ht_protection)496 static inline hi_void mac_mib_set_ht_protection(const mac_vap_stru *mac_vap,
497 wlan_mib_ht_protection_enum_uint8 ht_protection)
498 {
499 mac_vap->mib_info->wlan_mib_operation.dot11_ht_protection = ht_protection;
500 }
501
502 /* ****************************************************************************
503 功能描述 : 获取ShortPreambleOptionImplemented值
504 **************************************************************************** */
mac_mib_get_short_preamble_option_implemented(const mac_vap_stru * mac_vap)505 static inline wlan_11b_mib_preamble_enum_uint8 mac_mib_get_short_preamble_option_implemented(
506 const mac_vap_stru *mac_vap)
507 {
508 return (mac_vap->mib_info->phy_hrdsss.dot11_short_preamble_option_implemented);
509 }
510
511 /* ****************************************************************************
512 功能描述 : 设置ShortPreambleOptionImplemented值
513 **************************************************************************** */
mac_mib_set_short_preamble_option_implemented(const mac_vap_stru * mac_vap,wlan_11b_mib_preamble_enum_uint8 preamble)514 static inline hi_void mac_mib_set_short_preamble_option_implemented(const mac_vap_stru *mac_vap,
515 wlan_11b_mib_preamble_enum_uint8 preamble)
516 {
517 mac_vap->mib_info->phy_hrdsss.dot11_short_preamble_option_implemented = preamble;
518 }
519
520 /* ****************************************************************************
521 功能描述 : 设置en_dot11SpectrumManagementRequired值
522 **************************************************************************** */
mac_mib_set_spectrum_management_required(const mac_vap_stru * mac_vap,hi_u8 val)523 static inline hi_void mac_mib_set_spectrum_management_required(const mac_vap_stru *mac_vap, hi_u8 val)
524 {
525 mac_vap->mib_info->wlan_mib_sta_config.dot11_spectrum_management_required = val;
526 }
527
528 /* ****************************************************************************
529 功能描述 : 获取en_dot11ShortGIOptionInFortyImplemented值
530 **************************************************************************** */
mac_mib_get_shortgi_option_in_forty_implemented(const mac_vap_stru * mac_vap)531 static inline hi_u8 mac_mib_get_shortgi_option_in_forty_implemented(const mac_vap_stru *mac_vap)
532 {
533 return mac_vap->mib_info->phy_ht.dot112_g_short_gi_option_in_forty_implemented;
534 }
535
536 /* ****************************************************************************
537 功能描述 : 设置en_dot11ShortGIOptionInFortyImplemented值
538 **************************************************************************** */
mac_mib_set_shortgi_option_in_forty_implemented(const mac_vap_stru * mac_vap,hi_u8 val)539 static inline hi_void mac_mib_set_shortgi_option_in_forty_implemented(const mac_vap_stru *mac_vap, hi_u8 val)
540 {
541 mac_vap->mib_info->phy_ht.dot112_g_short_gi_option_in_forty_implemented = val;
542 }
543
544 /* ****************************************************************************
545 功能描述 : 设置分片门限值
546 **************************************************************************** */
mac_mib_set_frag_threshold(const mac_vap_stru * mac_vap,hi_u32 frag_threshold)547 static inline hi_void mac_mib_set_frag_threshold(const mac_vap_stru *mac_vap, hi_u32 frag_threshold)
548 {
549 mac_vap->mib_info->wlan_mib_operation.dot11_fragmentation_threshold = frag_threshold;
550 }
551
552 /* ****************************************************************************
553 功能描述 : 设置RTS门限值
554 **************************************************************************** */
mac_mib_set_rts_threshold(const mac_vap_stru * mac_vap,hi_u32 rts_threshold)555 static inline hi_void mac_mib_set_rts_threshold(const mac_vap_stru *mac_vap, hi_u32 rts_threshold)
556 {
557 mac_vap->mib_info->wlan_mib_operation.dot11_rts_threshold = rts_threshold;
558 }
559
560 #ifdef _PRE_WLAN_FEATURE_MESH_ROM
561 /* ****************************************************************************
562 功能描述 : 设置Mesh Privacy值
563 **************************************************************************** */
mac_mib_set_mesh_security(const mac_vap_stru * mac_vap,hi_u8 val)564 static inline hi_void mac_mib_set_mesh_security(const mac_vap_stru *mac_vap, hi_u8 val)
565 {
566 mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mesh_security_activated = val;
567 }
568
569 /* ****************************************************************************
570 功能描述 : 设置Mesh Auth Protocol值
571 **************************************************************************** */
mac_mib_set_mesh_auth_protocol(const mac_vap_stru * mac_vap,hi_u8 auth_protocol)572 static inline hi_void mac_mib_set_mesh_auth_protocol(const mac_vap_stru *mac_vap, hi_u8 auth_protocol)
573 {
574 mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mesh_active_authentication_protocol = auth_protocol;
575 }
576
577 /* ****************************************************************************
578 功能描述 : 清除Mesh Auth Protocol值
579 **************************************************************************** */
mac_mib_clear_mesh_auth_protocol(const mac_vap_stru * mac_vap)580 static inline hi_void mac_mib_clear_mesh_auth_protocol(const mac_vap_stru *mac_vap)
581 {
582 mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mesh_active_authentication_protocol = 0;
583 }
584
585 /* ****************************************************************************
586 功能描述 : 设置Accpeting Peer值
587 **************************************************************************** */
mac_mib_set_accepting_peer(const mac_vap_stru * mac_vap,hi_u8 val)588 static inline hi_void mac_mib_set_accepting_peer(const mac_vap_stru *mac_vap, hi_u8 val)
589 {
590 mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mesh_accepting_additional_peerings = val;
591 }
592
593 /* ****************************************************************************
594 功能描述 : 获取Accpeting Peer值
595 **************************************************************************** */
mac_mib_get_accepting_peer(const mac_vap_stru * mac_vap)596 static inline hi_u8 mac_mib_get_accepting_peer(const mac_vap_stru *mac_vap)
597 {
598 return mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mesh_accepting_additional_peerings;
599 }
600
601 /* ****************************************************************************
602 功能描述 : 设置MBCA值
603 **************************************************************************** */
mac_mib_set_mbca_en(const mac_vap_stru * mac_vap,hi_u8 val)604 static inline hi_void mac_mib_set_mbca_en(const mac_vap_stru *mac_vap, hi_u8 val)
605 {
606 mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mbca_activated = val;
607 }
608
609 /* ****************************************************************************
610 功能描述 : 获取MBCA值
611 **************************************************************************** */
mac_mib_get_mbca_en(const mac_vap_stru * mac_vap,hi_u8 * val)612 static inline hi_void mac_mib_get_mbca_en(const mac_vap_stru *mac_vap, hi_u8 *val)
613 {
614 *val = mac_vap->mib_info->wlan_mib_mesh_sta_cfg.dot11_mbca_activated;
615 }
616 #endif
617
618 /* ****************************************************************************
619 功能描述 : 设置StationID值,即mac地址
620 **************************************************************************** */
mac_mib_set_station_id(const mac_vap_stru * mac_vap,hi_u8 len,const hi_u8 * puc_param)621 static inline hi_void mac_mib_set_station_id(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param)
622 {
623 mac_cfg_staion_id_param_stru *param = HI_NULL;
624
625 hi_unref_param(len);
626 param = (mac_cfg_staion_id_param_stru *)puc_param;
627 if (memcpy_s(mac_vap->mib_info->wlan_mib_sta_config.auc_dot11_station_id, WLAN_MAC_ADDR_LEN,
628 param->auc_station_id, WLAN_MAC_ADDR_LEN) != EOK) {
629 return;
630 }
631 }
632
633 /* ****************************************************************************
634 功能描述 : 设置bss type mib值
635 **************************************************************************** */
mac_mib_set_bss_type(const mac_vap_stru * mac_vap,hi_u8 len,const hi_u8 * puc_param)636 static inline hi_void mac_mib_set_bss_type(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param)
637 {
638 hi_s32 l_value;
639 hi_unref_param(len);
640 l_value = *((hi_s32 *)puc_param);
641 mac_vap->mib_info->wlan_mib_sta_config.dot11_desired_bss_type = (hi_u8)l_value;
642 }
643
644 #if (_PRE_OS_VERSION_LINUX == _PRE_OS_VERSION)
645 /* ****************************************************************************
646 功能描述 : 设置beacon interval的值
647 **************************************************************************** */
mac_mib_set_beacon_period(const mac_vap_stru * mac_vap,hi_u8 len,const hi_u8 * puc_param)648 static inline hi_void mac_mib_set_beacon_period(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param)
649 {
650 hi_u32 value;
651 hi_unref_param(len);
652 value = *((hi_u32 *)puc_param);
653 mac_vap->mib_info->wlan_mib_sta_config.dot11_beacon_period = (hi_u32)value;
654 }
655
656 /* ****************************************************************************
657 功能描述 : 设置dtim period的值
658 **************************************************************************** */
mac_mib_set_dtim_period(const mac_vap_stru * mac_vap,hi_u8 len,const hi_u8 * puc_param)659 static inline hi_void mac_mib_set_dtim_period(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param)
660 {
661 hi_s32 l_value;
662 hi_unref_param(len);
663 l_value = *((hi_s32 *)puc_param);
664 mac_vap->mib_info->wlan_mib_sta_config.dot11_dtim_period = (hi_u32)l_value;
665 }
666
667 /* ****************************************************************************
668 功能描述 : 设置short preamble MIB值
669 **************************************************************************** */
mac_mib_set_shpreamble(const mac_vap_stru * mac_vap,hi_u8 len,const hi_u8 * puc_param)670 static inline hi_void mac_mib_set_shpreamble(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param)
671 {
672 hi_s32 l_value;
673 hi_unref_param(len);
674 l_value = *((hi_s32 *)puc_param);
675 if (l_value != 0) {
676 mac_mib_set_short_preamble_option_implemented(mac_vap, HI_TRUE);
677 } else {
678 mac_mib_set_short_preamble_option_implemented(mac_vap, HI_FALSE);
679 }
680 }
681 #endif
682
683 /* ****************************************************************************
684 功能描述 : 获取默认密钥的大小
685 **************************************************************************** */
mac_mib_get_wep_default_keysize(const mac_vap_stru * mac_vap)686 static inline hi_u8 mac_mib_get_wep_default_keysize(const mac_vap_stru *mac_vap)
687 {
688 wlan_mib_dot11_wep_default_keys_entry_stru *pwlan_mib_wep_dflt_key =
689 mac_vap->mib_info->ast_wlan_mib_wep_dflt_key;
690 return (
691 pwlan_mib_wep_dflt_key[mac_mib_get_wep_type(mac_vap)].auc_dot11_wep_default_key_value[WLAN_WEP_SIZE_OFFSET]);
692 }
693
694 /* ****************************************************************************
695 功能描述 : 获取指定序列号的wep key的值
696 **************************************************************************** */
mac_mib_get_wep_keysize(const mac_vap_stru * mac_vap,hi_u8 idx)697 static inline hi_u8 mac_mib_get_wep_keysize(const mac_vap_stru *mac_vap, hi_u8 idx)
698 {
699 return (mac_vap->mib_info->ast_wlan_mib_wep_dflt_key[idx].auc_dot11_wep_default_key_value[WLAN_WEP_SIZE_OFFSET]);
700 }
701
702 /* ****************************************************************************
703 功能描述 : 清除 RSN认证套件
704 **************************************************************************** */
mac_mib_clear_rsna_auth_suite(const mac_vap_stru * mac_vap)705 static inline hi_void mac_mib_clear_rsna_auth_suite(const mac_vap_stru *mac_vap)
706 {
707 hi_u8 index;
708
709 for (index = 0; index < WLAN_AUTHENTICATION_SUITES; index++) {
710 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_auth_suite[index].dot11_rsna_config_authentication_suite_activated =
711 HI_FALSE;
712 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_auth_suite[index].dot11_rsna_config_authentication_suite_implemented =
713 0xff;
714 }
715 }
716
717 /* ****************************************************************************
718 功能描述 : 设置RSN认证套件
719 **************************************************************************** */
mac_mib_set_rsnaconfig_authentication_suite_implemented(const mac_vap_stru * mac_vap,hi_u8 inp,hi_u8 idx)720 static inline hi_void mac_mib_set_rsnaconfig_authentication_suite_implemented(const mac_vap_stru *mac_vap, hi_u8 inp,
721 hi_u8 idx)
722 {
723 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_auth_suite[idx].dot11_rsna_config_authentication_suite_activated = HI_TRUE;
724 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_auth_suite[idx].dot11_rsna_config_authentication_suite_implemented = inp;
725 }
726
727 /* ****************************************************************************
728 功能描述 : 设置RSN认证套件
729 **************************************************************************** */
mac_mib_set_rsnaclear_wpa_pairwise_cipher_implemented(const mac_vap_stru * mac_vap)730 static inline hi_void mac_mib_set_rsnaclear_wpa_pairwise_cipher_implemented(const mac_vap_stru *mac_vap)
731 {
732 hi_u8 index;
733 wlan_mib_dot11_rsna_cfg_pwise_cpher_en_stru *wlan_mib_rsna_cfg_wpa_pairwise_cipher =
734 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_wpa_pairwise_cipher;
735
736 for (index = 0; index < WLAN_PAIRWISE_CIPHER_SUITES; index++) {
737 wlan_mib_rsna_cfg_wpa_pairwise_cipher[index].dot11_rsna_config_pairwise_cipher_implemented = 0xFF;
738 wlan_mib_rsna_cfg_wpa_pairwise_cipher[index].dot11_rsna_config_pairwise_cipher_activated = HI_FALSE;
739 }
740 }
741
742 /* ****************************************************************************
743 功能描述 : 设置RSN WPA2认证套件
744 **************************************************************************** */
mac_mib_set_rsnaclear_wpa2_pairwise_cipher_implemented(const mac_vap_stru * mac_vap)745 static inline hi_void mac_mib_set_rsnaclear_wpa2_pairwise_cipher_implemented(const mac_vap_stru *mac_vap)
746 {
747 hi_u8 index;
748 wlan_mib_dot11_rsna_cfg_pwise_cpher_en_stru *wlan_mib_rsna_cfg_wpa2_pairwise_cipher =
749 mac_vap->mib_info->ast_wlan_mib_rsna_cfg_wpa2_pairwise_cipher;
750
751 for (index = 0; index < WLAN_PAIRWISE_CIPHER_SUITES; index++) {
752 wlan_mib_rsna_cfg_wpa2_pairwise_cipher[index].dot11_rsna_config_pairwise_cipher_implemented = 0xFF;
753 wlan_mib_rsna_cfg_wpa2_pairwise_cipher[index].dot11_rsna_config_pairwise_cipher_activated = HI_FALSE;
754 }
755 }
756
757 /* ****************************************************************************
758 功能描述 : 读取bss type mib值
759 **************************************************************************** */
mac_mib_get_bss_type(const mac_vap_stru * mac_vap,hi_u8 * puc_len,const hi_u8 * puc_param)760 static inline hi_u32 mac_mib_get_bss_type(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param)
761 {
762 *((hi_s32 *)puc_param) = mac_vap->mib_info->wlan_mib_sta_config.dot11_desired_bss_type;
763 *puc_len = sizeof(hi_s32);
764 return HI_SUCCESS;
765 }
766
767 #if (_PRE_OS_VERSION_LINUX == _PRE_OS_VERSION)
768 /* ****************************************************************************
769 功能描述 : 读取beacon interval的值
770 **************************************************************************** */
mac_mib_get_beacon_period(const mac_vap_stru * mac_vap,hi_u8 * puc_len,const hi_u8 * puc_param)771 static inline hi_u32 mac_mib_get_beacon_period(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param)
772 {
773 *((hi_u32 *)puc_param) = mac_vap->mib_info->wlan_mib_sta_config.dot11_beacon_period;
774 *puc_len = sizeof(hi_u32);
775 return HI_SUCCESS;
776 }
777
778 /* ****************************************************************************
779 功能描述 : 读取dtim period的值
780 **************************************************************************** */
mac_mib_get_dtim_period(const mac_vap_stru * mac_vap,hi_u8 * puc_len,const hi_u8 * puc_param)781 static inline hi_u32 mac_mib_get_dtim_period(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param)
782 {
783 *((hi_u32 *)puc_param) = mac_vap->mib_info->wlan_mib_sta_config.dot11_dtim_period;
784 *puc_len = sizeof(hi_u32);
785 return HI_SUCCESS;
786 }
787
788 /* ****************************************************************************
789 功能描述 : 获取short preamble MIB值
790 **************************************************************************** */
mac_mib_get_shpreamble(const mac_vap_stru * mac_vap,hi_u8 * puc_len,const hi_u8 * puc_param)791 static inline hi_u32 mac_mib_get_shpreamble(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param)
792 {
793 hi_s32 l_value;
794 l_value = mac_mib_get_short_preamble_option_implemented(mac_vap);
795 *((hi_s32 *)puc_param) = l_value;
796 *puc_len = sizeof(l_value);
797 return HI_SUCCESS;
798 }
799 #endif
800
mac_is_wep_enabled(const mac_vap_stru * mac_vap)801 static inline hi_u8 mac_is_wep_enabled(const mac_vap_stru *mac_vap)
802 {
803 if (!mac_mib_get_privacyinvoked(mac_vap) || mac_mib_get_rsnaactivated(mac_vap)) {
804 return HI_FALSE;
805 }
806 return HI_TRUE;
807 }
808
809 /* ****************************************************************************
810 功能描述 : 获取wep type的值
811 **************************************************************************** */
mac_get_wep_type(const mac_vap_stru * mac_vap,hi_u8 key_id)812 static inline wlan_ciper_protocol_type_enum_uint8 mac_get_wep_type(const mac_vap_stru *mac_vap, hi_u8 key_id)
813 {
814 if (mac_mib_get_wep_keysize(mac_vap, key_id) == 104) { /* size位104 */
815 return WLAN_80211_CIPHER_SUITE_WEP_104;
816 } else {
817 return WLAN_80211_CIPHER_SUITE_WEP_40;
818 }
819 }
820
821 /* ****************************************************************************
822 函数声明
823 **************************************************************************** */
824 hi_u32 mac_mib_set_meshid(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param);
825 hi_u32 mac_mib_get_meshid(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param);
826 hi_void mac_mib_get_wpa_pairwise_cipher_suite(const mac_vap_stru *mac_vap, hi_u8 *puc_num);
827 hi_void mac_mib_get_wpa2_pairwise_cipher_suite(const mac_vap_stru *mac_vap, hi_u8 *puc_num);
828 hi_void mac_mib_get_authentication_suite(const mac_vap_stru *mac_vap, hi_u8 *puc_num);
829 hi_void mac_mib_get_wpa2_pairwise_cipher_suite_value(const mac_vap_stru *mac_vap, hi_u8 *puc_pairwise_value,
830 hi_u8 pairwise_len);
831 hi_void mac_mib_get_wpa_pairwise_cipher_suite_value(const mac_vap_stru *mac_vap, hi_u8 *puc_pairwise_value,
832 hi_u8 pairwise_len);
833 hi_void mac_mib_set_rsna_auth_suite(const mac_vap_stru *mac_vap, hi_u8 auth_value);
834 hi_u32 mac_mib_set_ssid(const mac_vap_stru *mac_vap, hi_u8 len, const hi_u8 *puc_param);
835 hi_void mac_mib_set_rsnaconfig_wpa_pairwise_cipher_implemented(const mac_vap_stru *mac_vap, hi_u8 pairwise_value);
836 hi_void mac_mib_set_rsnaconfig_wpa2_pairwise_cipher_implemented(const mac_vap_stru *mac_vap, hi_u8 pairwise_value);
837 hi_u32 mac_mib_get_ssid(const mac_vap_stru *mac_vap, hi_u8 *puc_len, const hi_u8 *puc_param);
838
839 #ifdef __cplusplus
840 #if __cplusplus
841 }
842 #endif
843 #endif
844 #endif /* __MAC_MIB_H__ */
845