blob: fa62cfb5e7a96ee7bd21ced6e56c85d06abf8b2b [file] [log] [blame]
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +05301/*
Wu Gao6294afc2019-01-05 00:00:58 +08002 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +05303 *
4 * Permission to use, copy, modify, and/or distribute this software for
5 * any purpose with or without fee is hereby granted, provided that the
6 * above copyright notice and this permission notice appear in all
7 * copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18/**
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053019 * DOC: declare UCFG APIs exposed by the mlme component
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053020 */
21
22#ifndef _WLAN_MLME_UCFG_API_H_
23#define _WLAN_MLME_UCFG_API_H_
24
25#include <wlan_mlme_public_struct.h>
26#include <wlan_objmgr_psoc_obj.h>
27#include <wlan_objmgr_global_obj.h>
28#include <wlan_cmn.h>
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053029#include <wlan_mlme_api.h>
gaurank kathpalia24ed0f42018-11-13 15:37:49 +053030#include <wlan_mlme_main.h>
Bala Venkatesh6d537092018-09-25 10:38:36 +053031#include "wma_tgt_cfg.h"
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053032
33/**
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053034 * ucfg_mlme_init() - initialize mlme_ctx context.
35 *
36 * This function initializes the mlme context.
37 *
38 * Return: QDF_STATUS_SUCCESS - in case of success else return error
39 */
40QDF_STATUS ucfg_mlme_init(void);
41
42/**
43 * ucfg_mlme_deinit() - De initialize mlme_ctx context.
44 *
45 * This function De initializes mlme contex.
46 *
47 * Return: QDF_STATUS_SUCCESS - in case of success else return error
48 */
49QDF_STATUS ucfg_mlme_deinit(void);
50
51/**
52 * ucfg_mlme_psoc_open() - MLME component Open
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053053 * @psoc: pointer to psoc object
54 *
55 * Open the MLME component and initialize the MLME strucutre
56 *
57 * Return: QDF Status
58 */
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053059QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053060
61/**
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053062 * ucfg_mlme_psoc_close() - MLME component close
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053063 * @psoc: pointer to psoc object
64 *
65 * Close the MLME component and clear the MLME structures
66 *
67 * Return: None
68 */
Vignesh Viswanathana0921c42018-09-04 19:03:35 +053069void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +053070
Sandeep Puligillab7beb472018-08-13 22:54:20 -070071#ifdef CONFIG_VDEV_SM
72/**
73 * ucfg_mlme_pdev_open() - MLME component pdev Open
74 * @pdev: pointer to pdev object
75 *
76 * Open the MLME component and initialize the MLME pdev strucutre
77 *
78 * Return: QDF Status
79 */
80QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev);
81
82/**
83 * ucfg_mlme_pdev_close() - MLME component pdev close
84 * @pdev: pointer to pdev object
85 *
86 * close the MLME pdev information
87 *
88 * Return: QDF Status
89 */
90QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev);
91
Abhishek Singhd5cf22d2019-01-08 19:51:09 +053092/**
93 * ucfg_mlme_global_init() - initialize global mlme ops and structure
94 *
95 * Return: QDF Status
96 */
97QDF_STATUS ucfg_mlme_global_init(void);
98/**
99 * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
100 *
101 * Return: QDF Status
102 */
103QDF_STATUS ucfg_mlme_global_deinit(void);
Sandeep Puligillab7beb472018-08-13 22:54:20 -0700104#else
105/**
106 * ucfg_mlme_pdev_open() - MLME component pdev Open
107 * @pdev: pointer to pdev object
108 *
109 * Open the MLME component and initialize the MLME pdev strucutre
110 *
111 * Return: QDF Status
112 */
113static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
114{
115 return QDF_STATUS_SUCCESS;
116}
117
118/**
119 * ucfg_mlme_pdev_close() - MLME component pdev close
120 * @pdev: pointer to pdev object
121 *
122 * close the MLME pdev information
123 *
124 * Return: QDF Status
125 */
126static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
127{
128 return QDF_STATUS_SUCCESS;
129}
Abhishek Singhd5cf22d2019-01-08 19:51:09 +0530130
131/**
132 * ucfg_mlme_global_init() - initialize global mlme ops and structure
133 *
134 * Return: QDF Status
135 */
136static inline QDF_STATUS ucfg_mlme_global_init(void)
137{
138 return QDF_STATUS_SUCCESS;
139}
140
141/**
142 * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
143 *
144 * Return: QDF Status
145 */
146static inline QDF_STATUS ucfg_mlme_global_deinit(void)
147{
148 return QDF_STATUS_SUCCESS;
149}
Sandeep Puligillab7beb472018-08-13 22:54:20 -0700150#endif
151
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +0530152/**
gaurank kathpalia3d2e3852018-10-03 22:03:23 +0530153 * wlan_mlme_get_power_usage() - Get the power usage info
154 * @psoc: pointer to psoc object
155 *
156 * Return: pointer to character array of power usage
157 */
158static inline
159char *ucfg_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc)
160{
161 return wlan_mlme_get_power_usage(psoc);
162}
163
164/**
165 * ucfg_get_tx_power() - Get the max tx power in particular band
166 * @psoc: pointer to psoc object
167 * @band: 2ghz/5ghz band
168 *
169 * Return: value of tx power in the respective band
170 */
171static inline
172uint8_t ucfg_get_tx_power(struct wlan_objmgr_psoc *psoc, uint8_t band)
173{
174 return wlan_mlme_get_tx_power(psoc, band);
175}
176
177/**
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +0530178 * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
179 * @psoc: pointer to psoc object
180 * @value: pointer to the value which will be filled for the caller
181 *
182 * Inline UCFG API to be used by HDD/OSIF callers
183 *
184 * Return: QDF Status
185 */
186static inline
187QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
188 struct mlme_ht_capabilities_info
189 *ht_cap_info)
190{
191 return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
192}
193
194/**
195 * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
196 * @psoc: pointer to psoc object
197 * @value: Value that needs to be set from the caller
198 *
199 * Inline UCFG API to be used by HDD/OSIF callers
200 *
201 * Return: QDF Status
202 */
203static inline
204QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
205 struct mlme_ht_capabilities_info
206 ht_cap_info)
207{
208 return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
209}
Pragaspathi Thilagarajf4cc58b2018-07-31 00:39:05 +0530210
211/**
Vignesh Viswanathanddc89e52018-11-02 18:43:42 +0530212 * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num
213 * @psoc: pointer to psoc object
214 * @value: pointer to the value where the max_amsdu num is to be filled
215 *
216 * Return: QDF_STATUS
217 */
218static inline
219QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
220 uint8_t *value)
221{
222 return wlan_mlme_get_max_amsdu_num(psoc, value);
223}
224
225/**
226 * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
227 * @psoc: pointer to psoc object
228 * @value: value to be set for max_amsdu_num
229 *
230 * Return: QDF_STATUS
231 */
232static inline
233QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
234 uint8_t value)
235{
236 return wlan_mlme_set_max_amsdu_num(psoc, value);
237}
238
239/**
240 * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
241 * @psoc: pointer to psoc object
242 * @value: pointer to the value where the ht mpdu density is to be filled
243 *
244 * Return: QDF_STATUS
245 */
246static inline
247QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
248 uint8_t *value)
249{
250 return wlan_mlme_get_ht_mpdu_density(psoc, value);
251}
252
253/**
254 * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
255 * @psoc: pointer to psoc object
256 * @value: value to be set for ht mpdu density
257 *
258 * Return: QDF_STATUS
259 */
260static inline
261QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
262 uint8_t value)
263{
264 return wlan_mlme_set_ht_mpdu_density(psoc, value);
265}
266
267/**
Vignesh Viswanathanf97cc112018-10-03 19:17:07 +0530268 * ucfg_mlme_get_band_capability() - Get the Band capability config
269 * @psoc: pointer to psoc object
270 * @band_capability: Pointer to the variable from caller
271 *
272 * Return: QDF Status
273 */
274static inline
275QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
276 uint8_t *band_capability)
277{
278 return wlan_mlme_get_band_capability(psoc, band_capability);
279}
280
281/**
282 * ucfg_mlme_set_band_capability() - Set the Band capability config
283 * @psoc: pointer to psoc object
284 * @band_capability: Value to be set from the caller
285 *
286 * Return: QDF Status
287 */
288static inline
289QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
290 uint8_t band_capability)
291{
292 return wlan_mlme_set_band_capability(psoc, band_capability);
293}
294
295/**
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530296 * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530297 * @psoc: pointer to psoc object
298 * @prevent_link_down: Pointer to the variable from caller
299 *
300 * Return: QDF Status
301 */
302static inline
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530303QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
304 bool *prevent_link_down)
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530305{
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530306 return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530307}
308
309/**
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530310 * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530311 * @psoc: pointer to psoc object
312 * @select_5ghz_margin: Pointer to the variable from caller
313 *
314 * Return: QDF Status
315 */
316static inline
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530317QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
318 uint8_t *select_5ghz_margin)
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530319{
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530320 return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530321}
322
323/**
Karthik Kantamneni9180c752018-11-14 12:14:17 +0530324 * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
325 * @psoc: pointer to psoc object
326 * @rtt_mac_randomization: Pointer to the variable from caller
327 *
328 * Return: QDF Status
329 */
330static inline
331QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
332 bool *rtt_mac_randomization)
333{
334 return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
335}
336
337/**
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530338 * ucfg_mlme_get_crash_inject() - Get the crash inject config
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530339 * @psoc: pointer to psoc object
340 * @crash_inject: Pointer to the variable from caller
341 *
342 * Return: QDF Status
343 */
344static inline
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530345QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
346 bool *crash_inject)
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530347{
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530348 return wlan_mlme_get_crash_inject(psoc, crash_inject);
Vignesh Viswanathana851d752018-10-03 19:44:38 +0530349}
350
351/**
352 * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
353 * @psoc: pointer to psoc object
354 * @lpass_support: Pointer to the variable from caller
355 *
356 * Return: QDF Status
357 */
358static inline
359QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
360 bool *lpass_support)
361{
362 return wlan_mlme_get_lpass_support(psoc, lpass_support);
363}
364
365/**
Vignesh Viswanathana1f3a1a2018-10-04 13:10:46 +0530366 * ucfg_mlme_get_self_recovery() - Get the self recovery config
367 * @psoc: pointer to psoc object
368 * @self_recovery: Pointer to the variable from caller
369 *
370 * Return: QDF Status
371 */
372static inline
373QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
374 bool *self_recovery)
375{
376 return wlan_mlme_get_self_recovery(psoc, self_recovery);
377}
378
379/**
380 * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
381 * @psoc: pointer to psoc object
382 * @sub_20_chan_width: Pointer to the variable from caller
383 *
384 * Return: QDF Status
385 */
386static inline
387QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
388 uint8_t *sub_20_chan_width)
389{
390 return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
391}
392
393/**
394 * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
395 * @psoc: pointer to psoc object
396 * @fw_timeout_crash: Pointer to the variable from caller
397 *
398 * Return: QDF Status
399 */
400static inline
401QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
402 bool *fw_timeout_crash)
403{
404 return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
405}
406
407/**
408 * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
409 * @psoc: pointer to psoc object
410 * @ito_repeat_count: Pointer to the variable from caller
411 *
412 * Return: QDF Status
413 */
414static inline
415QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
416 uint8_t *ito_repeat_count)
417{
418 return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
419}
420
421/**
Harprit Chhabada1eeeb8d2018-09-14 15:16:56 -0700422 * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
423 * more param
424 * @psoc: pointer to psoc object
425 * @value: Value that needs to be set from the caller
426 *
427 * Inline UCFG API to be used by HDD/OSIF callers
428 *
429 * Return: QDF Status
430 */
431static inline
432QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
433 bool *value)
434{
435 return wlan_mlme_get_acs_with_more_param(psoc, value);
436}
437
438/**
439 * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
Harprit Chhabada1eeeb8d2018-09-14 15:16:56 -0700440 * @psoc: pointer to psoc object
441 * @value: Value that needs to be set from the caller
442 *
443 * Inline UCFG API to be used by HDD/OSIF callers
444 *
445 * Return: QDF Status
446 */
447static inline
448QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
449 uint32_t *value)
450{
451 return wlan_mlme_get_auto_channel_weight(psoc, value);
452}
453
454/**
455 * ucfg_mlme_get_vendor_acs_support() - Get the flag for
456 * vendor acs support
457 * @psoc: pointer to psoc object
458 * @value: Value that needs to be set from the caller
459 *
460 * Inline UCFG API to be used by HDD/OSIF callers
461 *
462 * Return: QDF Status
463 */
464static inline
465QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
466 bool *value)
467{
468 return wlan_mlme_get_vendor_acs_support(psoc, value);
469}
470
471/**
472 * ucfg_mlme_get_external_acs_policy() - Get flag for external control
473 * acs policy
474 * @psoc: pointer to psoc object
475 * @value: Value that needs to be set from the caller
476 *
477 * Inline UCFG API to be used by HDD/OSIF callers
478 *
479 * Return: QDF Status
480 */
481static inline QDF_STATUS
482ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
483 bool *value)
484{
485 return wlan_mlme_get_external_acs_policy(psoc, value);
486}
487
488/**
489 * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
490 * @psoc: pointer to psoc object
491 * @value: Value that needs to be set from the caller
492 *
493 * Inline UCFG API to be used by HDD/OSIF callers
494 *
495 * Return: QDF Status
496 */
497static inline
498QDF_STATUS
499ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
500 bool *value)
501{
502 return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
503}
504
505/**
Abhinav Kumar18b45cd2018-09-21 12:35:22 +0530506 * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
507 * @psoc: pointer to psoc object
508 * @value: Value that needs to be set from the caller
509 *
510 * Inline UCFG API to be used by HDD/OSIF callers
511 *
512 * Return: QDF Status
513 */
514static inline QDF_STATUS
515ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
516 uint8_t *value)
517{
518 return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
519}
520
521/**
522 * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
523 * MSDU size for VO
524 * @psoc: pointer to psoc object
525 * @value: Value that needs to be set from the caller
526 *
527 * Inline UCFG API to be used by HDD/OSIF callers
528 *
529 * Return: QDF Status
530 */
531static inline QDF_STATUS
532ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
533 uint16_t *value)
534{
535 return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
536}
537
538/**
539 * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
540 * @psoc: pointer to psoc object
541 * @value: Value that needs to be set from the caller
542 *
543 * Inline UCFG API to be used by HDD/OSIF callers
544 *
545 * Return: QDF Status
546 */
547static inline QDF_STATUS
548ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
549 uint32_t *value)
550{
551 return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
552}
553
554/**
555 * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
556 * rate for VO
557 * @psoc: pointer to psoc object
558 * @value: Value that needs to be set from the caller
559 *
560 * Inline UCFG API to be used by HDD/OSIF callers
561 *
562 * Return: QDF Status
563 */
564static inline QDF_STATUS
565ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
566 uint32_t *value)
567{
568 return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
569}
570
571/**
572 * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
573 * allowance for VO
574 * @psoc: pointer to psoc object
575 * @value: Value that needs to be set from the caller
576 *
577 * Inline UCFG API to be used by HDD/OSIF callers
578 *
579 * Return: QDF Status
580 */
581static inline QDF_STATUS
582ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
583 uint16_t *value)
584{
585 return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
586}
587
588/**
589 * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
590 * interval for voice
591 * @psoc: pointer to psoc object
592 * @value: pointer to the value which will be filled for the caller
593 *
594 * Inline UCFG API to be used by HDD/OSIF callers
595 *
596 * Return: QDF Status
597 */
598static inline QDF_STATUS
599ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
600 uint32_t *value)
601{
602 return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
603}
604
605/**
606 * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
607 * interval for voice
608 * @psoc: pointer to psoc object
609 * @value: Value that needs to be set from the caller
610 *
611 * Inline UCFG API to be used by HDD/OSIF callers
612 *
613 * Return: QDF Status
614 */
615static inline QDF_STATUS
616ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
617 uint32_t *value)
618{
619 return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
620}
621
622/**
Pragaspathi Thilagaraj48d273c2018-08-31 00:53:02 +0530623 *
624 * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
625 * override flag is set.
626 * @psoc: pointer to psoc object
627 * @sme_config - Sme config struct
628 *
629 * Inline UCFG API to be used by HDD/OSIF callers to call
630 * the mlme function wlan_mlme_get_sap_inactivity_override
631 *
632 * Return: QDF Status
633 */
634static inline
635void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
636 bool *value)
637{
638 wlan_mlme_get_sap_inactivity_override(psoc, value);
639}
640
641/**
Pragaspathi Thilagaraj00bd8bc2018-08-18 01:23:01 +0530642 * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
643 *
644 * @psoc: pointer to psoc object
645 * @value: Value that needs to be set from the caller
646 *
647 * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
648 */
649static inline
650QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
651 uint8_t *value)
652{
653 return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
654}
655
656/**
657 * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
658 *
659 * @psoc: pointer to psoc object
660 * @value: Value that needs to be set from the caller
661 *
662 * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
663 */
664static inline
665QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
666 uint16_t *value)
667{
668 return wlan_mlme_get_num_11b_tx_chains(psoc, value);
669}
670
671/**
672 * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
673 *
674 * @psoc: pointer to psoc object
675 * @value: Value that needs to be set from the caller
676 *
677 * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
678 */
679static inline
680QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
681 uint16_t *value)
682{
683 return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
684}
685
686/**
Pragaspathi Thilagaraj4b5c0602018-11-14 22:35:23 +0530687 * ucfg_mlme_get_bt_chain_separation_flag() - bt chain separation enable/disable
688 * @psoc: pointer to psoc object
689 * @value: Value that needs to be got for the caller
690 *
691 * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
692 */
693static inline
694QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
695 bool *value)
696{
697 return wlan_mlme_get_bt_chain_separation_flag(psoc, value);
698}
699
700/**
Pragaspathi Thilagaraj00bd8bc2018-08-18 01:23:01 +0530701 * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
702 *
703 * @psoc: pointer to psoc object
704 * @session_id: vdev_id
705 *
706 * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
707 */
708static inline
709QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
710 uint8_t session_id)
711{
712 return wlan_mlme_configure_chain_mask(psoc, session_id);
713}
714
Wu Gao406c53c2018-09-10 13:51:37 +0800715/*
716 * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
717 * @psoc: pointer to psoc object
718 * @val: Pointer to the value which will be filled for the caller
719 *
720 * Return: QDF Status
721 */
722QDF_STATUS
723ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
724 uint32_t *val);
725
Arif Hussain88d1fdd2018-09-26 16:12:24 -0700726/*
727 * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
728 * @psoc: pointer to psoc object
729 * @val: Pointer to the value which will be filled for the caller
730 *
731 * Return: QDF Status
732 */
733QDF_STATUS
734ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
735 bool *val);
736
Arif Hussain224d3812018-11-16 17:58:38 -0800737/*
738 * ucfg_mlme_get_dfs_disable_channel_switch() - Get the dfs channel switch
739 * @psoc: pointer to psoc object
740 * @dfs_disable_channel_switch: Pointer to the value which will be filled
741 *
742 * Return: QDF Status
743 */
744QDF_STATUS
745ucfg_mlme_get_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
746 bool *dfs_disable_channel_switch);
747
748/*
749 * ucfg_mlme_set_dfs_disable_channel_switch() - Set the dfs channel switch
750 * @psoc: pointer to psoc object
751 * @dfs_disable_channel_switch: Value that needs to be set.
752 *
753 * Return: QDF Status
754 */
755QDF_STATUS
756ucfg_mlme_set_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
757 bool dfs_disable_channel_switch);
758/*
759 * ucfg_mlme_get_dfs_ignore_cac() - GSet the dfs ignore cac
760 * @psoc: pointer to psoc object
761 * @dfs_ignore_cac: Pointer to the value which will be filled for the caller
762 *
763 * Return: QDF Status
764 */
765QDF_STATUS
766ucfg_mlme_get_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
767 bool *dfs_ignore_cac);
768
769/*
770 * ucfg_mlme_set_dfs_ignore_cac() - Set the dfs ignore cac
771 * @psoc: pointer to psoc object
772 * @dfs_ignore_cac: Value that needs to be set.
773 *
774 * Return: QDF Status
775 */
776QDF_STATUS
777ucfg_mlme_set_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
778 bool dfs_ignore_cac);
779
780/*
781 * ucfg_mlme_get_sap_tx_leakage_threshold() - Get sap tx leakage threshold
782 * @psoc: pointer to psoc object
783 * @sap_tx_leakage_threshold: Pointer to the value which will be filled
784 *
785 * Return: QDF Status
786 */
787QDF_STATUS
788ucfg_mlme_get_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
789 uint32_t *sap_tx_leakage_threshold);
790
791/*
792 * ucfg_mlme_set_sap_tx_leakage_threshold() - Set sap tx leakage threshold
793 * @psoc: pointer to psoc object
794 * @sap_tx_leakage_threshold: Value that needs to be set.
795 *
796 * Return: QDF Status
797 */
798QDF_STATUS
799ucfg_mlme_set_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
800 uint32_t sap_tx_leakage_threshold);
801
802/*
803 * ucfg_mlme_get_dfs_filter_offload() - Get the dfs filter offload
804 * @psoc: pointer to psoc object
805 * @dfs_filter_offload: Pointer to the value which will be filled
806 *
807 * Return: QDF Status
808 */
809QDF_STATUS
810ucfg_mlme_get_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
811 bool *dfs_filter_offload);
812
813/*
814 * ucfg_mlme_set_dfs_filter_offload() - Set the dfs filter offload
815 * @psoc: pointer to psoc object
816 * @dfs_filter_offload: Value that needs to be set.
817 *
818 * Return: QDF Status
819 */
820QDF_STATUS
821ucfg_mlme_set_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
822 bool dfs_filter_offload);
823
Wu Gao406c53c2018-09-10 13:51:37 +0800824/**
Arif Hussainbd5194c2018-11-27 19:01:15 -0800825 * ucfg_mlme_get_fine_time_meas_cap() - Get fine timing measurement capability
826 * @psoc: pointer to psoc object
827 * @fine_time_meas_cap: Pointer to the value which will be filled for the caller
828 *
829 * Return: QDF Status
830 */
831QDF_STATUS
832ucfg_mlme_get_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
833 uint32_t *fine_time_meas_cap);
834
835/**
836 * ucfg_mlme_set_fine_time_meas_cap() - Set fine timing measurement capability
837 * @psoc: pointer to psoc object
838 * @fine_time_meas_cap: Value to be set
839 *
840 * Return: QDF Status
841 */
842QDF_STATUS
843ucfg_mlme_set_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
844 uint32_t fine_time_meas_cap);
845
846/**
Wu Gao406c53c2018-09-10 13:51:37 +0800847 * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
848 * @psoc: pointer to psoc object
849 * @val: Pointer to the value which will be filled for the caller
850 *
851 * Return: QDF Status
852 */
853QDF_STATUS
854ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
855 uint32_t *val);
856
857/**
858 * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
859 * @psoc: pointer to psoc object
860 * @val: Pointer to the value which will be filled for the caller
861 *
862 * Return: QDF Status
863 */
864QDF_STATUS
865ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
866 uint32_t val);
867
868/**
Arif Hussain178f35f2018-11-13 18:26:18 -0800869 * ucfg_mlme_get_twt_requestor() - Get twt requestor
870 * @psoc: pointer to psoc object
871 * @val: Pointer to the value which will be filled for the caller
872 *
873 * Return: QDF Status
874 */
875QDF_STATUS
876ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
877 bool *val);
878
879/**
880 * ucfg_mlme_set_twt_requestor() - Set twt requestor
881 * @psoc: pointer to psoc object
882 * @val: value that needs to set to this config
883 *
884 * Return: QDF Status
885 */
886QDF_STATUS
887ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc,
888 bool val);
889
890/**
891 * ucfg_mlme_get_twt_responder() - Get twt responder
892 * @psoc: pointer to psoc object
893 * @val: Pointer to the value which will be filled for the caller
894 *
895 * Return: QDF Status
896 */
897QDF_STATUS
898ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc,
899 bool *val);
900
901/**
902 * ucfg_mlme_set_twt_responder() - Set twt responder
903 * @psoc: pointer to psoc object
904 * @val: value that needs to set to this config
905 *
906 * Return: QDF Status
907 */
908QDF_STATUS
909ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc,
910 bool val);
911
912/**
913 * ucfg_mlme_get_bcast_twt() - Get bcast twt
914 * @psoc: pointer to psoc object
915 * @val: Pointer to the value which will be filled for the caller
916 *
917 * Return: QDF Status
918 */
919QDF_STATUS
920ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc,
921 bool *val);
922
923/**
924 * ucfg_mlme_set_bcast_twt() - Set bcast twt
925 * @psoc: pointer to psoc object
926 * @val: value that needs to set to this config
927 *
928 * Return: QDF Status
929 */
930QDF_STATUS
931ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc,
932 bool val);
933
934/**
935 * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout
936 * @psoc: pointer to psoc object
937 * @val: Pointer to the value which will be filled for the caller
938 *
939 * Return: QDF Status
940 */
941QDF_STATUS
942ucfg_mlme_get_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
943 uint32_t *val);
944
945/**
946 * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout
947 * @psoc: pointer to psoc object
948 * @val: value that needs to set to this config
949 *
950 * Return: QDF Status
951 */
952QDF_STATUS
953ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
954 uint32_t val);
955
956/**
957 * ucfg_mlme_get_enable_twt() - Get global twt config support
958 * @psoc: pointer to psoc object
959 * @val: Pointer to the value which will be filled for the caller
960 *
961 * Return: QDF Status
962 */
963QDF_STATUS
964ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc,
965 bool *val);
966
967/**
968 * ucfg_mlme_set_enable_twt() - Set global twt config support
969 * @psoc: pointer to psoc object
970 * @val: value that needs to set to this config
971 *
972 * Return: QDF Status
973 */
974QDF_STATUS
975ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
976 bool val);
977
978/**
Wu Gao406c53c2018-09-10 13:51:37 +0800979 * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
980 * @psoc: pointer to psoc object
Dustin Brown686d3032018-10-17 16:58:50 -0700981 * @out_mode: Pointer to the mode which will be filled for the caller
Wu Gao406c53c2018-09-10 13:51:37 +0800982 *
983 * Return: QDF Status
984 */
985QDF_STATUS
986ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
Dustin Brown686d3032018-10-17 16:58:50 -0700987 enum dot11p_mode *out_mode);
Wu Gao406c53c2018-09-10 13:51:37 +0800988
989/**
990 * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
991 * @psoc: pointer to psoc object
992 * @val: Pointer to the value which will be filled for the caller
993 *
994 * Return: QDF Status
995 */
996QDF_STATUS
997ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
998 bool *val);
999
1000/**
1001 * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
1002 * @psoc: pointer to psoc object
1003 * @val: Pointer to the value which will be filled for the caller
1004 *
1005 * Return: QDF Status
1006 */
1007QDF_STATUS
1008ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
1009 bool *val);
1010
1011/**
1012 * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
1013 * @psoc: pointer to psoc object
1014 * @val: Pointer to the value which will be filled for the caller
1015 *
1016 * Return: QDF Status
1017 */
1018QDF_STATUS
1019ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
1020 bool *val);
1021
1022/**
1023 * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
1024 * @psoc: pointer to psoc object
1025 * @val: Pointer to the value which will be filled for the caller
1026 *
1027 * Return: QDF Status
1028 */
1029QDF_STATUS
1030ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
1031 uint32_t *val);
Wu Gao55f21712018-09-17 10:57:49 +08001032
1033/**
Wu Gaofc81ecf2018-11-22 11:38:41 +08001034 * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
1035 * @psoc: pointer to psoc object
1036 * @val: Pointer to the value which will be filled for the caller
1037 *
1038 * Return: QDF Status
1039 */
1040QDF_STATUS
1041ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
1042
Wu Gao5d23d782018-11-08 16:09:47 +08001043#ifdef WLAN_FEATURE_ROAM_OFFLOAD
Wu Gaofc81ecf2018-11-22 11:38:41 +08001044/**
Wu Gao55f21712018-09-17 10:57:49 +08001045 * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
1046 * @psoc: pointer to psoc object
1047 * @val: Pointer to enable/disable roaming offload
1048 *
1049 * Return: QDF Status
1050 */
1051QDF_STATUS
1052ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
1053 bool *val);
1054
1055/**
1056 * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
1057 * @psoc: pointer to psoc object
1058 * @val: enable/disable roaming offload
1059 *
1060 * Return: QDF Status
1061 */
1062QDF_STATUS
1063ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
1064 bool val);
Jianmin Zhu462ab862019-02-21 11:14:49 +08001065#else
1066static inline QDF_STATUS
1067ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
1068 bool *val)
1069{
1070 *val = false;
Wu Gao55f21712018-09-17 10:57:49 +08001071
Jianmin Zhu462ab862019-02-21 11:14:49 +08001072 return QDF_STATUS_SUCCESS;
1073}
1074
1075static inline QDF_STATUS
1076ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
1077 bool val)
1078{
1079 return QDF_STATUS_SUCCESS;
1080}
1081#endif
Pragaspathi Thilagarajeb367282019-02-19 00:42:28 +05301082
Wu Gao55f21712018-09-17 10:57:49 +08001083/**
1084 * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
1085 * @psoc: pointer to psoc object
1086 * @val: first scan bucket threshold
1087 *
1088 * Return: QDF Status
1089 */
1090QDF_STATUS
1091ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
1092 uint8_t *val);
Arif Hussain41cbc1e2018-11-15 05:54:45 -08001093
1094/**
Pragaspathi Thilagarajeb367282019-02-19 00:42:28 +05301095 * ucfg_mlme_set_fw_supported_roaming_akm() - update the supported roaming
1096 * akm suites advertised by the firmware via wmi service capability
1097 * @psoc: pointer to psoc object
1098 * @val: bitmap value based on firmware capabilities
1099 *
1100 * Return: QDF Status
1101 */
1102QDF_STATUS
1103ucfg_mlme_set_fw_supported_roaming_akm(struct wlan_objmgr_psoc *psoc,
1104 uint32_t val);
1105
1106/**
Wu Gao5d23d782018-11-08 16:09:47 +08001107 * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
1108 * @psoc: pointer to psoc object
1109 * @val: Pointer to the value which will be filled for the caller
1110 *
1111 * Return: QDF Status
1112 */
1113QDF_STATUS
1114ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
1115
1116/**
1117 * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
1118 * @psoc: pointer to psoc object
1119 * @val: enable or disable MAWC
1120 *
1121 * Return: QDF Status
1122 */
1123QDF_STATUS
1124ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
1125
1126/**
1127 * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not
1128 * @psoc: pointer to psoc object
1129 * @val: Pointer to the value which will be filled for the caller
1130 *
1131 * Return: QDF Status
1132 */
1133QDF_STATUS
1134ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
1135 bool *val);
1136
1137/**
1138 * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
1139 * @psoc: pointer to psoc object
1140 * @val: Fast transition enable or disable
1141 *
1142 * Return: QDF Status
1143 */
1144QDF_STATUS
1145ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
1146 bool val);
1147
1148/**
1149 * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
1150 * @psoc: pointer to psoc object
1151 * @val: Pointer to the value which will be filled for the caller
1152 *
1153 * Return: QDF Status
1154 */
1155QDF_STATUS
1156ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
1157 bool *val);
1158
Pragaspathi Thilagaraj1f3f99f2019-04-24 23:48:47 +05301159#ifdef WLAN_ADAPTIVE_11R
1160/**
1161 * ucfg_mlme_set_tgt_adaptive_11r_cap() - Set adaptive 11r target service
1162 * capability
1163 * @psoc: pointer to psoc object
1164 * @val: Target capability of adaptive 11r
1165 *
1166 * Return: QDF Status
1167 */
1168QDF_STATUS
1169ucfg_mlme_set_tgt_adaptive_11r_cap(struct wlan_objmgr_psoc *psoc,
1170 bool val);
1171#else
1172static inline QDF_STATUS
1173ucfg_mlme_set_tgt_adaptive_11r_cap(struct wlan_objmgr_psoc *psoc,
1174 bool val)
1175{
1176 return QDF_STATUS_SUCCESS;
1177}
1178#endif
1179
Wu Gao5d23d782018-11-08 16:09:47 +08001180/**
1181 * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
1182 * @psoc: pointer to psoc object
1183 * @val: Roam scan offload enable or disable
1184 *
1185 * Return: QDF Status
1186 */
1187QDF_STATUS
1188ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
1189 bool val);
1190
1191/**
1192 * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
1193 * channel time
1194 * @psoc: pointer to psoc object
1195 * @val: Pointer to the value which will be filled for the caller
1196 *
1197 * Return: QDF Status
1198 */
1199QDF_STATUS
1200ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
1201 uint16_t *val);
1202
1203/**
1204 * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
1205 * channel time
1206 * @psoc: pointer to psoc object
1207 * @val: Pointer to the value which will be filled for the caller
1208 *
1209 * Return: QDF Status
1210 */
1211QDF_STATUS
1212ucfg_mlme_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
1213 uint16_t *val);
1214
1215/**
1216 * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
1217 * @psoc: pointer to psoc object
1218 * @val: Pointer to the value which will be filled for the caller
1219 *
1220 * Return: QDF Status
1221 */
1222QDF_STATUS
1223ucfg_mlme_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
1224 uint8_t *val);
1225
1226/**
1227 * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
1228 * @psoc: pointer to psoc object
1229 * @val: Pointer to the value which will be filled for the caller
1230 *
1231 * Return: QDF Status
1232 */
1233QDF_STATUS
1234ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
1235 uint8_t *val);
1236/**
1237 * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
1238 * @psoc: pointer to psoc object
1239 * @val: Pointer to the value which will be filled for the caller
1240 *
1241 * Return: QDF Status
1242 */
1243QDF_STATUS
1244ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
1245 uint8_t *val);
1246
1247/**
1248 * ucfg_mlme_is_lfr_enabled() - LFR enable or not
1249 * @psoc: pointer to psoc object
1250 * @val: Pointer to the value which will be filled for the caller
1251 *
1252 * Return: QDF Status
1253 */
1254QDF_STATUS
1255ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
1256
1257/**
1258 * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
1259 * @psoc: pointer to psoc object
1260 * @val: Enable or disable LFR
1261 *
1262 * Return: QDF Status
1263 */
1264QDF_STATUS
1265ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
1266
1267/**
1268 * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
1269 * @psoc: pointer to psoc object
1270 * @val: Pointer to the value which will be filled for the caller
1271 *
1272 * Return: QDF Status
1273 */
1274QDF_STATUS
1275ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
1276
1277/**
1278 * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
1279 * @psoc: pointer to psoc object
1280 * @val: roam intra modes or not
1281 *
1282 * Return: QDF Status
1283 */
1284QDF_STATUS
1285ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
1286
1287/**
1288 * ucfg_mlme_get_home_away_time() - Get home away time
1289 * @psoc: pointer to psoc object
1290 * @val: Pointer to the value which will be filled for the caller
1291 *
1292 * Return: QDF Status
1293 */
1294QDF_STATUS
1295ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
1296
1297/**
1298 * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
1299 * concurrency
1300 * @psoc: pointer to psoc object
1301 * @val: Enable or disable fast roam in concurrency
1302 *
1303 * Return: QDF Status
1304 */
1305QDF_STATUS
1306ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
1307 bool val);
1308
1309/**
Arif Hussain4966f692018-11-27 16:40:51 -08001310 * ucfg_mlme_get_wmi_wq_watchdog_timeout() - Get timeout for wmi watchdog bite
1311 * @psoc: pointer to psoc object
1312 * @wmi_wq_watchdog_timeout: buffer to hold value
1313 *
1314 * Return: QDF Status
1315 */
1316QDF_STATUS
1317ucfg_mlme_get_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
1318 uint32_t *wmi_wq_watchdog_timeout);
1319
1320/**
1321 * ucfg_mlme_set_wmi_wq_watchdog_timeout() - Set timeout for wmi watchdog bite
1322 * @psoc: pointer to psoc object
1323 * @wmi_wq_watchdog_timeout: value to be set
1324 *
1325 * Return: QDF Status
1326 */
1327QDF_STATUS
1328ucfg_mlme_set_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
1329 uint32_t wmi_wq_watchdog_timeout);
1330
1331/**
Arif Hussain41cbc1e2018-11-15 05:54:45 -08001332 * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
1333 * @psoc: pointer to psoc object
1334 * @inactivity_timeout: buffer to hold value
1335 *
1336 * Return: QDF Status
1337 */
1338QDF_STATUS
1339ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
1340 uint32_t *inactivity_timeout);
1341
1342/**
1343 * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
1344 * @psoc: pointer to psoc object
1345 * @inactivity_timeout: value to be set
1346 *
1347 * Return: QDF Status
1348 */
1349QDF_STATUS
1350ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
1351 uint32_t inactivity_timeout);
1352
Bala Venkatesh2fde2c62018-09-11 20:33:24 +05301353/**
1354 * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
1355 * @psoc: pointer to psoc object
1356 * @value: Value that needs to be set from the caller
1357 *
1358 * Inline UCFG API to be used by HDD/OSIF callers
1359 *
1360 * Return: QDF Status
1361 */
1362static inline
1363QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
1364 int value)
1365{
1366 return wlan_mlme_set_sap_listen_interval(psoc, value);
1367}
1368
1369/**
1370 * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
1371 * @psoc: pointer to psoc object
1372 * @value: Value that needs to be set from the caller
1373 *
1374 * Inline UCFG API to be used by HDD/OSIF callers
1375 *
1376 * Return: QDF Status
1377 */
1378static inline
1379QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
1380 int value)
1381{
1382 return wlan_mlme_set_assoc_sta_limit(psoc, value);
1383}
1384
1385/**
1386 * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
1387 * @psoc: pointer to psoc object
1388 * @value: Value that needs to be set from the caller
1389 *
1390 * Inline UCFG API to be used by HDD/OSIF callers
1391 *
1392 * Return: QDF Status
1393 */
1394static inline
1395QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
1396 int value)
1397{
1398 return wlan_mlme_set_rmc_action_period_freq(psoc, value);
1399}
1400
1401/**
Nachiket Kukade61595532019-01-23 19:09:36 +05301402 * ucfg_mlme_get_listen_interval() - Get listen interval
1403 * @psoc: pointer to psoc object
1404 * @value: Pointer to variable that needs to be filled by MLME
1405 *
1406 * Inline UCFG API to be used by HDD/OSIF callers
1407 *
1408 * Return: QDF Status
1409 */
1410static inline
1411QDF_STATUS ucfg_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
1412 int *value)
1413{
1414 return wlan_mlme_get_listen_interval(psoc, value);
1415}
1416
1417
1418/**
Bala Venkatesh2fde2c62018-09-11 20:33:24 +05301419 * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
1420 * @psoc: pointer to psoc object
1421 * @value: Value that needs to be set from the caller
1422 *
1423 * Inline UCFG API to be used by HDD/OSIF callers
1424 *
1425 * Return: QDF Status
1426 */
1427static inline
1428QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
1429 bool *value)
1430{
1431 return wlan_mlme_get_sap_get_peer_info(psoc, value);
1432}
1433
1434/**
Will Huangb9cb1242019-04-02 14:52:17 +08001435 * ucfg_mlme_set_sap_get_peer_info() - set the sap get peer info
1436 * @psoc: pointer to psoc object
1437 * @value: value to overwrite the sap get peer info
1438 *
1439 * Inline UCFG API to be used by HDD/OSIF callers
1440 *
1441 * Return: QDF Status
1442 */
1443static inline
1444QDF_STATUS ucfg_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
1445 bool value)
1446{
1447 return wlan_mlme_set_sap_get_peer_info(psoc, value);
1448}
1449
1450/**
Harprit Chhabadae5742552019-03-21 16:28:48 -07001451 * ucfg_mlme_is_sap_bcast_deauth_enabled() - get the sap bcast deauth
1452 * enabled value
1453 * @psoc: pointer to psoc object
1454 * @value: Value that needs to be get from the caller
1455 *
1456 * Inline UCFG API to be used by HDD/OSIF callers
1457 *
1458 * Return: QDF Status
1459 */
1460static inline QDF_STATUS
1461ucfg_mlme_is_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
1462 bool *value)
1463{
1464 return wlan_mlme_is_sap_bcast_deauth_enabled(psoc, value);
1465}
1466
1467/**
Bala Venkatesh2fde2c62018-09-11 20:33:24 +05301468 * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
1469 * @psoc: pointer to psoc object
1470 * @value: Value that needs to be set from the caller
1471 *
1472 * Inline UCFG API to be used by HDD/OSIF callers
1473 *
1474 * Return: QDF Status
1475 */
1476static inline
1477QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
1478 bool *value)
1479{
1480 return wlan_mlme_get_sap_allow_all_channels(psoc, value);
1481}
1482
1483/**
1484 * ucfg_mlme_get_sap_max_peers() - get the sap max peers
1485 * @psoc: pointer to psoc object
1486 * @value: Value that needs to be set from the caller
1487 *
1488 * Inline UCFG API to be used by HDD/OSIF callers
1489 *
1490 * Return: QDF Status
1491 */
1492static inline
1493QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
1494 int *value)
1495{
1496 return wlan_mlme_get_sap_max_peers(psoc, value);
1497}
1498
1499/**
1500 * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
1501 * @psoc: pointer to psoc object
1502 * @value: Value that needs to be set from the caller
1503 *
1504 * Inline UCFG API to be used by HDD/OSIF callers
1505 *
1506 * Return: QDF Status
1507 */
1508static inline
1509QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
1510{
1511 return wlan_mlme_set_sap_max_peers(psoc, value);
1512}
1513
1514/**
1515 * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
1516 * @psoc: pointer to psoc object
1517 * @value: Value that needs to be set from the caller
1518 *
1519 * Inline UCFG API to be used by HDD/OSIF callers
1520 *
1521 * Return: QDF Status
1522 */
1523static inline
1524QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
1525 int *value)
1526{
1527 return wlan_mlme_get_sap_max_offload_peers(psoc, value);
1528}
1529
1530/**
1531 * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
1532 * reorder buffs
1533 * @psoc: pointer to psoc object
1534 * @value: Value that needs to be set from the caller
1535 *
1536 * Inline UCFG API to be used by HDD/OSIF callers
1537 *
1538 * Return: QDF Status
1539 */
1540static inline
1541QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
1542 *psoc, int *value)
1543{
1544 return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
1545}
1546
1547/**
1548 * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
1549 * switch beacon count
1550 * @psoc: pointer to psoc object
1551 * @value: Value that needs to be set from the caller
1552 *
1553 * Inline UCFG API to be used by HDD/OSIF callers
1554 *
1555 * Return: QDF Status
1556 */
1557static inline
1558QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
1559 int *value)
1560{
1561 return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
1562}
1563
1564/**
1565 * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
1566 * @psoc: pointer to psoc object
1567 * @value: Value that needs to be set from the caller
1568 *
1569 * Inline UCFG API to be used by HDD/OSIF callers
1570 *
1571 * Return: QDF Status
1572 */
1573static inline
1574QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
1575 bool *value)
1576{
1577 return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
1578}
1579
1580/**
1581 * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
1582 * @psoc: pointer to psoc object
1583 * @value: Value that needs to be set from the caller
1584 *
1585 * Inline UCFG API to be used by HDD/OSIF callers
1586 *
1587 * Return: QDF Status
1588 */
1589static inline
1590QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
1591 bool *value)
1592{
1593 return wlan_mlme_get_sap_internal_restart(psoc, value);
1594}
1595
1596/**
Bala Venkatesh46e29032018-11-14 18:24:55 +05301597 * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
1598 * @psoc: pointer to psoc object
1599 * @value: Value that needs to be set from the caller
1600 *
1601 * Inline UCFG API to be used by HDD/OSIF callers
1602 *
1603 * Return: QDF Status
1604 */
1605static inline
1606QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
1607 uint8_t *value)
1608{
1609 return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
1610}
1611
1612/**
1613 * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
1614 * @psoc: pointer to psoc object
1615 * @value: Value that needs to be set from the caller
1616 *
1617 * Inline UCFG API to be used by HDD/OSIF callers
1618 *
1619 * Return: QDF Status
1620 */
1621static inline
1622QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
1623 uint8_t *value)
1624{
1625 return wlan_mlme_get_sap_chan_pref_location(psoc, value);
1626}
1627
1628/**
1629 * ucfg_mlme_get_sap_country_priority() - get sap country code priority
1630 * @psoc: pointer to psoc object
1631 * @value: Value that needs to be set from the caller
1632 *
1633 * Inline UCFG API to be used by HDD/OSIF callers
1634 *
1635 * Return: QDF Status
1636 */
1637static inline
1638QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
1639 bool *value)
1640{
1641 return wlan_mlme_get_sap_country_priority(psoc, value);
1642}
1643
1644/**
Bala Venkatesh2fde2c62018-09-11 20:33:24 +05301645 * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
1646 * interval
1647 * @psoc: pointer to psoc object
1648 * @value: Value that needs to be set from the caller
1649 *
1650 * Inline UCFG API to be used by HDD/OSIF callers
1651 *
1652 * Return: QDF Status
1653 */
1654static inline
1655QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
1656 *psoc, int *value)
1657{
1658 return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
1659}
1660
1661/**
1662 * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
1663 * switch rate enabled.
1664 * @psoc: pointer to psoc object
1665 * @value: Value that needs to be set from the caller
1666 *
1667 * Inline UCFG API to be used by HDD/OSIF callers
1668 *
1669 * Return: QDF Status
1670 */
1671static inline
1672QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
1673 *psoc, bool *value)
1674{
1675 return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
1676}
1677
Karthik Kantamneni2231a232018-09-11 15:45:55 +05301678/**
Bala Venkatesh3d786eb2018-11-20 12:59:31 +05301679 * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
1680 *
1681 * @psoc: pointer to psoc object
1682 * @value: Value that needs to be set from the caller
1683 *
1684 * Inline UCFG API to be used by HDD/OSIF callers
1685 *
1686 * Return: QDF Status
1687 */
1688static inline
1689QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
1690 *psoc, bool *value)
1691{
1692 return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
1693}
1694
1695/**
1696 * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
1697 *
1698 * @psoc: pointer to psoc object
1699 * @value: Value that needs to be set from the caller
1700 *
1701 * Inline UCFG API to be used by HDD/OSIF callers
1702 *
1703 * Return: QDF Status
1704 */
1705static inline
1706QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
1707 *psoc, bool *value)
1708{
1709 return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
1710}
1711
1712/**
Sandeep Puligilla34618782019-01-04 17:42:42 -08001713 * ucfg_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
1714 *
1715 * @psoc: pointer to psoc object
1716 * @value: Value that needs to be set from the caller
1717 *
1718 * Return: QDF Status
1719 */
1720static inline
1721QDF_STATUS ucfg_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
1722 bool *value)
1723{
1724 return wlan_mlme_is_sap_11ac_override(psoc, value);
1725}
1726
1727/**
1728 * ucfg_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
1729 *
1730 * @psoc: pointer to psoc object
1731 * @value: pointer to the value which will be filled for the caller
1732 *
1733 * Return: QDF Status
1734 */
1735static inline
1736QDF_STATUS ucfg_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
1737 bool *value)
1738{
1739 return wlan_mlme_is_go_11ac_override(psoc, value);
1740}
1741
1742/**
1743 * ucfg_mlme_set_sap_11ac_override() - Set override 11ac bandwdith for SAP
1744 *
1745 * @psoc: pointer to psoc object
1746 * @value: Value that needs to be set from the caller
1747 *
1748 * Return: QDF Status
1749 */
1750static inline
1751QDF_STATUS ucfg_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
1752 bool value)
1753{
1754 return wlan_mlme_set_sap_11ac_override(psoc, value);
1755}
1756
1757/**
1758 * ucfg_mlme_set_go_11ac_override() - Set override 11ac bandwdith for P2P GO
1759 *
1760 * @psoc: pointer to psoc object
1761 * @value: pointer to the value which will be filled for the caller
1762 *
1763 * Return: QDF Status
1764 */
1765static inline
1766QDF_STATUS ucfg_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
1767 bool value)
1768{
1769 return wlan_mlme_set_go_11ac_override(psoc, value);
1770}
1771
1772/**
Karthik Kantamneni2231a232018-09-11 15:45:55 +05301773 * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
1774 * info for STA
1775 *
1776 * @psoc: pointer to psoc object
1777 * @value: pointer to the value which will be filled for the caller
1778 *
1779 * Inline UCFG API to be used by HDD/OSIF callers to get the
1780 * OCE STA feature enable value
1781 *
1782 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1783 */
1784static inline
1785QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
1786 bool *value)
1787{
1788 return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
1789}
1790
1791/**
1792 * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
1793 * info for SAP
1794 *
1795 * @psoc: pointer to psoc object
1796 * @value: pointer to the value which will be filled for the caller
1797 *
1798 * Inline UCFG API to be used by HDD/OSIF callers to get the
1799 * OCE SAP feature enable value
1800 *
1801 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1802 */
1803static inline
1804QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
1805 bool *value)
1806{
1807 return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
1808}
1809
1810/**
Pragaspathi Thilagarajf37f3932019-01-11 00:25:43 +05301811 * ucfg_mlme_is_ap_prot_enabled() - Check if sap is enabled
1812 * @psoc: pointer to psoc object
1813 *
1814 * Inline UCFG API to be used by HDD/OSIF callers to get the
1815 * sap protection enabled/disabled
1816 *
1817 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1818 */
1819static inline
1820bool ucfg_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc)
1821{
1822 return wlan_mlme_is_ap_prot_enabled(psoc);
1823}
1824
1825/**
Pragaspathi Thilagaraj4b5c0602018-11-14 22:35:23 +05301826 * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
1827 * @psoc: pointer to psoc object
1828 * @value: pointer to the value which will be filled for the caller
1829 *
1830 * Inline UCFG API to be used by HDD/OSIF callers to get the
1831 * ap protection mode value
1832 *
1833 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1834 */
1835static inline
1836QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
1837 uint16_t *value)
1838{
1839 return wlan_mlme_get_ap_protection_mode(psoc, value);
1840}
1841
1842/**
1843 * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
1844 * @psoc: pointer to psoc object
1845 * @value: pointer to the value which will be filled for the caller
1846 *
1847 * Inline UCFG API to be used by HDD/OSIF callers to get the
1848 * obss protection enable value
1849 *
1850 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1851 */
1852static inline
1853QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
1854 bool *value)
1855{
1856 return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
1857}
1858
1859/**
Harprit Chhabadabec6de42018-09-10 10:21:15 -07001860 * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
1861 * @psoc: pointer to psoc object
1862 * @value: pointer to the value which will be filled for the caller
1863 *
1864 * Inline UCFG API to be used by HDD/OSIF callers
1865 *
1866 * Return: QDF Status
1867 */
1868static inline
1869QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
1870 uint32_t *value)
1871{
1872 return wlan_mlme_get_rts_threshold(psoc, value);
1873}
1874
1875/**
1876 * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
1877 * @psoc: pointer to psoc object
1878 * @value: pointer to the value which will be filled for the caller
1879 *
1880 * Inline UCFG API to be used by HDD/OSIF callers
1881 *
1882 * Return: QDF Status
1883 */
1884static inline
1885QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
1886 uint32_t value)
1887{
1888 return wlan_mlme_set_rts_threshold(psoc, value);
1889}
1890
1891/**
1892 * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
1893 * config
1894 * @psoc: pointer to psoc object
1895 * @value: Value that needs to be set from the caller
1896 *
1897 * Inline UCFG API to be used by HDD/OSIF callers
1898 *
1899 * Return: QDF Status
1900 */
1901static inline
1902QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
1903 uint32_t *value)
1904{
1905 return wlan_mlme_get_frag_threshold(psoc, value);
1906}
1907
1908/**
1909 * ucfg_mlme_set_frag_threshold() - set the frag threshold config
1910 * @psoc: pointer to psoc object
1911 * @value: pointer to the value which will be filled for the caller
1912 *
1913 * Inline UCFG API to be used by HDD/OSIF callers
1914 *
1915 * Return: QDF Status
1916 */
1917static inline
1918QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
1919 uint32_t value)
1920{
1921 return wlan_mlme_set_frag_threshold(psoc, value);
1922}
1923
1924/**
Karthik Kantamneni2231a232018-09-11 15:45:55 +05301925 * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
1926 *
1927 * @psoc: pointer to psoc object
1928 * @value: pointer to the value which will be filled for the caller
1929 *
1930 * Inline UCFG API to be used by HDD/OSIF callers to get the
1931 * fils enable value
1932 *
1933 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1934 */
1935static inline
1936QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
1937 bool *value)
1938{
1939 return wlan_mlme_get_fils_enabled_info(psoc, value);
1940}
1941
1942/**
1943 * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
1944 *
1945 * @psoc: pointer to psoc object
1946 * @value: value that needs to be set from the caller
1947 *
1948 * Inline UCFG API to be used by HDD/OSIF callers to set the
1949 * fils enable value
1950 *
1951 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1952 */
1953static inline
1954QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
1955 bool value)
1956{
1957 return wlan_mlme_set_fils_enabled_info(psoc, value);
1958}
1959
1960/**
1961 * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
Karthik Kantamneni2231a232018-09-11 15:45:55 +05301962 * @psoc: pointer to psoc object
1963 * @value: value that needs to be set from the caller
1964 *
1965 * Inline UCFG API to be used by HDD/OSIF callers to set the
1966 * enable bcast probe resp info
1967 *
1968 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1969 */
1970static inline
1971QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
1972 bool value)
1973{
1974 return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
1975}
Abhinav Kumar988be082018-09-09 12:41:28 +05301976
1977/**
Abhinav Kumare057b412018-10-09 17:28:16 +05301978 * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
Abhinav Kumar988be082018-09-09 12:41:28 +05301979 * @psoc: psoc context
1980 * @value: data to be set
1981 *
1982 * Inline UCFG API to be used by HDD/OSIF callers
1983 *
1984 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
1985 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05301986static inline QDF_STATUS
1987ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t value)
Abhinav Kumar988be082018-09-09 12:41:28 +05301988{
1989 return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
1990}
1991
1992/**
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05301993 * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
1994 * cfg item
1995 * @psoc: psoc context
1996 * @value: data to be set
1997 *
1998 * Inline UCFG API to be used by HDD/OSIF callers
1999 *
2000 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2001 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302002static inline QDF_STATUS
2003ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302004{
2005 return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
2006}
2007
2008/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302009 * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
2010 * cfg item
2011 * @psoc: psoc context
2012 * @value: data to be set
2013 *
2014 * Inline UCFG API to be used by HDD/OSIF callers
2015 *
2016 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2017 */
2018static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302019ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc, bool value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302020{
2021 return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
2022}
2023
2024/**
Abhinav Kumare057b412018-10-09 17:28:16 +05302025 * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302026 * @psoc: psoc context
2027 * @value: data to be set
2028 *
2029 * Inline UCFG API to be used by HDD/OSIF callers to get the
2030 * ignore_peer_ht_opmode flag value
2031 *
2032 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2033 */
2034static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302035ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302036{
2037 return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
2038}
2039
2040/**
2041 * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
2042 * cfg item
2043 * @psoc: psoc context
2044 * @value: data to be set
2045 *
2046 * Inline UCFG API to be used by HDD/OSIF callers to get the
2047 * ignore_peer_ht_opmode flag value
2048 *
2049 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2050 */
2051static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302052ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302053{
2054 return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
2055}
2056
2057/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302058 * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
2059 * cfg item
2060 * @psoc: psoc context
2061 * @value: pointer to get required data
2062 *
2063 * Inline UCFG API to be used by HDD/OSIF callers to get the
2064 * ignore_peer_ht_opmode flag value
2065 *
2066 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2067 */
2068static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302069ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302070{
2071 return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
2072}
2073
2074/**
Abhinav Kumare057b412018-10-09 17:28:16 +05302075 * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302076 * cfg item
2077 * @psoc: psoc context
2078 * @value: pointer to get required data
2079 *
2080 * Inline UCFG API to be used by HDD/OSIF callers to get the
2081 * ignore_peer_ht_opmode flag value
2082 *
2083 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2084 */
2085static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302086ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302087{
2088 return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
2089}
2090
2091/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302092 * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
2093 * support cap into cfg item
2094 * @psoc: psoc context
2095 * @value: data to be set
2096 *
2097 * Inline UCFG API to be used by HDD/OSIF callers
2098 *
2099 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2100 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302101static inline
2102QDF_STATUS ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
2103 uint8_t value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302104{
2105 return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
2106}
2107
2108/**
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302109 * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
2110 * support cap into cfg item
2111 * @psoc: psoc context
2112 * @value: data to be set
2113 *
2114 * Inline UCFG API to be used by HDD/OSIF callers
2115 *
2116 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2117 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302118static inline
2119QDF_STATUS ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
2120 uint8_t *value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302121{
2122 return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
2123}
2124
2125/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302126 * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
2127 * cfg item
2128 * @psoc: psoc context
2129 * @value: pointer to get required data
2130 *
2131 * Inline UCFG API to be used by HDD/OSIF callers to get the
2132 * ignore_peer_ht_opmode flag value
2133 *
2134 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2135 */
2136static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302137ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302138{
2139 return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
2140}
2141
2142/**
2143 * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
2144 * cfg item
2145 * @psoc: psoc context
2146 * @value: data to be set
2147 *
2148 * Inline UCFG API to be used by HDD/OSIF callers
2149 *
2150 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2151 */
2152static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302153ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302154{
2155 return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
2156}
2157
2158/**
2159 * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
2160 * cfg item
2161 * @psoc: psoc context
2162 * @value: pointer to get required data
2163 *
2164 * Inline UCFG API to be used by HDD/OSIF callers to get the
2165 * ignore_peer_ht_opmode flag value
2166 *
2167 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2168 */
2169static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302170ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302171{
2172 return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
2173}
2174
2175/**
2176 * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
2177 * cfg item
2178 * @psoc: psoc context
2179 * @value: data to be set
2180 *
2181 * Inline UCFG API to be used by HDD/OSIF callers
2182 *
2183 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2184 */
2185static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302186ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
Abhinav Kumar988be082018-09-09 12:41:28 +05302187{
2188 return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
2189}
2190
2191/**
2192 * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
2193 * rate into cfg item
2194 * @psoc: psoc context
2195 * @value: data to be set
2196 *
2197 * Inline UCFG API to be used by HDD/OSIF callers
2198 *
2199 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2200 */
2201static inline QDF_STATUS
2202ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
2203 uint32_t value)
2204{
2205 return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
2206}
2207
2208/**
2209 * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
2210 * cfg item
2211 * @psoc: psoc context
2212 * @value: data to be set
2213 *
2214 * Inline UCFG API to be used by HDD/OSIF callers
2215 *
2216 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2217 */
2218static inline QDF_STATUS
2219ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
2220 uint32_t value)
2221{
2222 return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
2223}
2224
2225/**
2226 * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
2227 * cfg item
2228 * @psoc: psoc context
2229 * @value: data to be set
2230 *
2231 * Inline UCFG API to be used by HDD/OSIF callers to get the
2232 * ignore_peer_ht_opmode flag value
2233 *
2234 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2235 */
2236static inline QDF_STATUS
2237ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
2238 uint32_t *value)
2239{
2240 return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
2241}
2242
2243/**
2244 * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
2245 * cfg item
2246 * @psoc: psoc context
2247 * @value: data to be set
2248 *
2249 * Inline UCFG API to be used by HDD/OSIF callers to get the
2250 * ignore_peer_ht_opmode flag value
2251 *
2252 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2253 */
2254static inline QDF_STATUS
2255ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
2256 uint32_t value)
2257{
2258 return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
2259}
2260
2261/**
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302262 * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
2263 * for 11ac
2264 * @psoc: psoc context
2265 * @value: data to be set
2266 *
2267 * Inline UCFG API to be used by HDD/OSIF callers to get the
2268 * ignore_peer_ht_opmode flag value
2269 *
2270 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2271 */
2272static inline QDF_STATUS
2273ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
2274{
2275 return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
2276}
2277
2278/**
Abhinav Kumare057b412018-10-09 17:28:16 +05302279 * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302280 * for 11ac
2281 * @psoc: psoc context
2282 * @value: data to be set
2283 *
2284 * Inline UCFG API to be used by HDD/OSIF callers to get the
2285 * ignore_peer_ht_opmode flag value
2286 *
2287 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2288 */
2289static inline QDF_STATUS
Abhinav Kumare057b412018-10-09 17:28:16 +05302290ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302291{
Abhinav Kumare057b412018-10-09 17:28:16 +05302292 return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302293}
2294
2295/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302296 * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
2297 * for 11ac
2298 * @psoc: psoc context
2299 * @value: data to be set
2300 *
2301 * Inline UCFG API to be used by HDD/OSIF callers to get the
2302 * ignore_peer_ht_opmode flag value
2303 *
2304 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2305 */
2306static inline QDF_STATUS
2307ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2308{
2309 return wlan_mlme_get_vht_channel_width(psoc, value);
2310}
2311
2312/**
2313 * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
2314 * for 11ac
2315 * @psoc: psoc context
2316 * @value: data to be set
2317 *
2318 * Inline UCFG API to be used by HDD/OSIF callers to get the
2319 * ignore_peer_ht_opmode flag value
2320 *
2321 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2322 */
2323static inline QDF_STATUS
2324ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2325{
2326 return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
2327}
2328
2329/**
2330 * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
2331 * for 11ac
2332 * @psoc: psoc context
2333 * @value: data to be set
2334 *
2335 * Inline UCFG API to be used by HDD/OSIF callers to get the
2336 * ignore_peer_ht_opmode flag value
2337 *
2338 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2339 */
2340static inline QDF_STATUS
2341ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2342{
2343 return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
2344}
2345
2346/**
2347 * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
2348 * for 11ac
2349 * @psoc: psoc context
2350 * @value: data to be set
2351 *
2352 * Inline UCFG API to be used by HDD/OSIF callers to get the
2353 * ignore_peer_ht_opmode flag value
2354 *
2355 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2356 */
2357static inline QDF_STATUS
2358ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2359{
2360 return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
2361}
2362
2363/**
2364 * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
2365 * for 11ac
2366 * @psoc: psoc context
2367 * @value: data to be set
2368 *
2369 * Inline UCFG API to be used by HDD/OSIF callers to get the
2370 * ignore_peer_ht_opmode flag value
2371 *
2372 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2373 */
2374static inline QDF_STATUS
2375ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2376{
2377 return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
2378}
2379
2380/**
gaurank kathpaliab414bce2018-11-09 18:44:46 +05302381 * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
2382 * @vdev: pointer to the vdev obj
2383 *
2384 * This API will get the ini config of the vdev related to
2385 * the nss, chains params
2386 *
2387 * Return: pointer to the nss, chain param ini cfg structure
2388 */
2389static inline struct wlan_mlme_nss_chains *
2390ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
2391{
2392 return mlme_get_ini_vdev_config(vdev);
2393}
2394
2395/**
2396 * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
2397 * @vdev: pointer to the vdev obj
2398 *
2399 * This API will get the dynamic config of the vdev related to nss,
2400 * chains params
2401 *
2402 * Return: pointer to the nss, chain param dynamic cfg structure
2403 */
2404static inline struct wlan_mlme_nss_chains *
2405ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
2406{
2407 return mlme_get_dynamic_vdev_config(vdev);
2408}
2409
2410/**
Abhinav Kumar988be082018-09-09 12:41:28 +05302411 * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
2412 * @psoc: psoc context
2413 * @value: data to be set
2414 *
2415 * Inline UCFG API to be used by HDD/OSIF callers to get the
2416 * ignore_peer_ht_opmode flag value
2417 *
2418 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2419 */
2420static inline QDF_STATUS
2421ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
2422{
2423 return wlan_mlme_get_vht20_mcs9(psoc, value);
2424}
2425
2426/**
2427 * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
2428 * @psoc: psoc context
2429 * @value: data to be set
2430 *
2431 * Inline UCFG API to be used by HDD/OSIF callers to get the
2432 * ignore_peer_ht_opmode flag value
2433 *
2434 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2435 */
2436static inline QDF_STATUS
2437ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
2438{
2439 return wlan_mlme_get_vht_enable2x2(psoc, value);
2440}
2441
2442/**
2443 * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
2444 * @psoc: psoc context
2445 * @value: data to be set
2446 *
2447 * Inline UCFG API to be used by HDD/OSIF callers to get the
2448 * ignore_peer_ht_opmode flag value
2449 *
2450 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2451 */
2452static inline QDF_STATUS
2453ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
2454{
2455 return wlan_mlme_set_vht_enable2x2(psoc, value);
2456}
2457
2458/**
2459 * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
2460 * @psoc: psoc context
2461 * @value: data to be set
2462 *
2463 * Inline UCFG API to be used by HDD/OSIF callers to get the
2464 * ignore_peer_ht_opmode flag value
2465 *
2466 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2467 */
2468static inline QDF_STATUS
2469ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
2470{
2471 return wlan_mlme_get_vht_enable_paid(psoc, value);
2472}
2473
2474/**
2475 * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
2476 * @psoc: psoc context
2477 * @value: data to be set
2478 *
2479 * Inline UCFG API to be used by HDD/OSIF callers to get the
2480 * ignore_peer_ht_opmode flag value
2481 *
2482 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2483 */
2484static inline QDF_STATUS
2485ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
2486{
2487 return wlan_mlme_get_vht_enable_gid(psoc, value);
2488}
2489
2490/**
Jianmin Zhu2f9e7532019-01-21 15:39:50 +08002491 * ucfg_mlme_get_vht_for_24ghz() - Get mlme cfg of vht for 24ghz
Abhinav Kumar988be082018-09-09 12:41:28 +05302492 * @psoc: psoc context
Jianmin Zhu2f9e7532019-01-21 15:39:50 +08002493 * @value: data to get
Abhinav Kumar988be082018-09-09 12:41:28 +05302494 *
2495 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2496 */
2497static inline QDF_STATUS
2498ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
2499{
2500 return wlan_mlme_get_vht_for_24ghz(psoc, value);
2501}
2502
2503/**
Jianmin Zhuc8bfffb2019-01-15 12:40:03 +08002504 * ucfg_mlme_set_vht_for_24ghz() - Enables/disables vht for 24ghz
2505 * @psoc: psoc context
2506 * @value: data to be set
2507 *
Jianmin Zhuc8bfffb2019-01-15 12:40:03 +08002508 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2509 */
2510static inline QDF_STATUS
2511ucfg_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value)
2512{
2513 return wlan_mlme_set_vht_for_24ghz(psoc, value);
2514}
2515
2516/**
Jianmin Zhu2f9e7532019-01-21 15:39:50 +08002517 * ucfg_mlme_get_vendor_vht_for_24ghz() - Get mlme cfg of vendor vht for 24ghz
Abhinav Kumar988be082018-09-09 12:41:28 +05302518 * @psoc: psoc context
2519 * @value: data to be set
2520 *
Abhinav Kumar988be082018-09-09 12:41:28 +05302521 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2522 */
2523static inline QDF_STATUS
2524ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
2525{
2526 return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
2527}
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302528
2529/**
2530 * ucfg_mlme_update_vht_cap() - Update vht capabilities
2531 * @psoc: psoc context
2532 * @value: data to be set
2533 *
2534 * Inline UCFG API to be used by HDD/OSIF callers to get the
2535 * ignore_peer_ht_opmode flag value
2536 *
2537 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2538 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302539static inline
2540QDF_STATUS ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
2541 struct wma_tgt_vht_cap *cfg)
Abhinav Kumarb074f2f2018-09-15 15:32:11 +05302542{
2543 return mlme_update_vht_cap(psoc, cfg);
2544}
2545
2546/**
2547 * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
2548 * streams supported for vht
2549 * @psoc: psoc context
2550 * @value: data to be set
2551 *
2552 * Inline UCFG API to be used by HDD/OSIF callers to get the
2553 * ignore_peer_ht_opmode flag value
2554 *
2555 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
2556 */
2557static inline QDF_STATUS
2558ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
2559{
2560 return mlme_update_nss_vht_cap(psoc);
2561}
2562
Karthik Kantamnenie3bbd7f2018-09-19 20:27:32 +05302563/**
Abhinav Kumard4d6eb72018-12-04 20:30:37 +05302564 * ucfg_mlme_is_11h_enabled() - Get 11h flag
2565 * @psoc: pointer to psoc object
2566 * @value: Value that needs to be set from the caller
2567 *
2568 * Inline UCFG API to be used by HDD/OSIF callers
2569 *
2570 * Return: QDF Status
2571 */
2572static inline QDF_STATUS
2573ucfg_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
2574{
2575 return wlan_mlme_is_11h_enabled(psoc, value);
2576}
2577
2578/**
2579 * ucfg_mlme_set_11h_enabled() - Set 11h flag
2580 * @psoc: pointer to psoc object
2581 * @value: Value that needs to be set from the caller
2582 *
2583 * Inline UCFG API to be used by HDD/OSIF callers
2584 *
2585 * Return: QDF Status
2586 */
2587static inline QDF_STATUS
2588ucfg_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value)
2589{
2590 return wlan_mlme_set_11h_enabled(psoc, value);
2591}
2592
2593/**
2594 * ucfg_mlme_is_11d_enabled() - Get 11d flag
2595 * @psoc: pointer to psoc object
2596 * @value: Value that needs to be set from the caller
2597 *
2598 * Inline UCFG API to be used by HDD/OSIF callers
2599 *
2600 * Return: QDF Status
2601 */
2602static inline QDF_STATUS
2603ucfg_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
2604{
2605 return wlan_mlme_is_11d_enabled(psoc, value);
2606}
2607
2608/**
2609 * ucfg_mlme_set_11d_enabled() - Set 11d flag
2610 * @psoc: pointer to psoc object
2611 * @value: Value that needs to be set from the caller
2612 *
2613 * Inline UCFG API to be used by HDD/OSIF callers
2614 *
2615 * Return: QDF Status
2616 */
2617static inline QDF_STATUS
2618ucfg_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value)
2619{
2620 return wlan_mlme_set_11d_enabled(psoc, value);
2621}
2622
2623/**
Pragaspathi Thilagaraja8893752019-02-06 19:58:59 +05302624 * ucfg_mlme_is_change_channel_bandwidth_enabled() - ucfg api to get the
2625 * enable_change_channel_bandwidth flag
2626 * @psoc: psoc context
2627 *
2628 * Return: true if enabled
2629 */
2630static inline bool
2631ucfg_mlme_is_change_channel_bandwidth_enabled(struct wlan_objmgr_psoc *psoc)
2632{
2633 return wlan_mlme_is_change_channel_bandwidth_enabled(psoc);
2634}
2635
2636/**
Karthik Kantamnenie3bbd7f2018-09-19 20:27:32 +05302637 * ucfg_mlme_get_opr_rate_set() - Get operational rate set
2638 * @psoc: pointer to psoc object
2639 * @buf: buffer to get rates set
2640 * @len: length of the buffer
2641 * Return: QDF Status
2642 */
2643QDF_STATUS
2644ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
2645 qdf_size_t *len);
2646
2647/**
2648 * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
2649 * @psoc: pointer to psoc object
2650 * @buf: buffer to get rates set
2651 * @len: length of the buffer
2652 * Return: QDF Status
2653 */
2654QDF_STATUS
2655ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
2656 qdf_size_t *len);
2657
2658/**
2659 * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
2660 * @psoc: pointer to psoc object
2661 * @buf: caller buffer to copy mcs set info
2662 * @len: length of the buffer
2663 * Return: QDF Status
2664 */
2665QDF_STATUS
2666ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
2667 qdf_size_t *len);
2668
2669/**
2670 * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
2671 * @psoc: pointer to psoc object
2672 * @buf: caller buffer having mcs set info
2673 * @len: length of the buffer
2674 * Return: QDF Status
2675 */
2676QDF_STATUS
2677ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
2678 qdf_size_t len);
2679
2680/**
2681 * ucfg_mlme_get_current_mcs_set() - Get current MCS set
2682 * @psoc: pointer to psoc object
2683 * @buf: caller buffer to copy mcs set info
2684 * @len: length of the buffer
2685 * Return: QDF Status
2686 */
2687QDF_STATUS
2688ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
2689 qdf_size_t *len);
Wu Gao5d23d782018-11-08 16:09:47 +08002690
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302691/**
Sourav Mohapatra0dfe5552018-11-16 11:29:54 +05302692 * ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method
2693 * @psoc: pointer to psoc object
2694 * @val: Value to pass to the caller
2695 *
2696 * Return: QDF Status
2697 */
2698QDF_STATUS
2699ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
2700 enum station_keepalive_method *val);
2701
2702/**
Arif Hussaincca60432018-12-03 19:45:12 -08002703 * ucfg_mlme_stats_get_periodic_display_time() - get display time
2704 * @psoc: pointer to psoc object
2705 * @periodic_display_time: buffer to hold value
2706 *
2707 * Return: QDF Status
2708 */
2709QDF_STATUS
2710ucfg_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
2711 uint32_t *periodic_display_time);
2712
2713/**
2714 * ucfg_mlme_stats_get_cfg_values() - get stats cfg values
2715 * @psoc: pointer to psoc object
2716 * @link_speed_rssi_high: link speed high limit
2717 * @link_speed_rssi_mid: link speed high mid
2718 * @link_speed_rssi_low: link speed high low
2719 * @link_speed_rssi_report: link speed report limit
2720 *
2721 * Return: QDF Status
2722 */
2723QDF_STATUS
2724ucfg_mlme_stats_get_cfg_values(struct wlan_objmgr_psoc *psoc,
2725 int *link_speed_rssi_high,
2726 int *link_speed_rssi_mid,
2727 int *link_speed_rssi_low,
2728 uint32_t *link_speed_rssi_report);
2729
2730/**
2731 * ucfg_mlme_stats_is_link_speed_report_actual() - is link speed report set
2732 * actual
2733 * @psoc: pointer to psoc object
2734 *
2735 * Return: True is report set to actual
2736 */
2737bool
2738ucfg_mlme_stats_is_link_speed_report_actual(struct wlan_objmgr_psoc *psoc);
2739
2740/**
2741 * ucfg_mlme_stats_is_link_speed_report_max() - is link speed report set
2742 * max
2743 * @psoc: pointer to psoc object
2744 *
2745 * Return: True is report set to max
2746 */
2747bool
2748ucfg_mlme_stats_is_link_speed_report_max(struct wlan_objmgr_psoc *psoc);
2749
2750/**
2751 * ucfg_mlme_stats_is_link_speed_report_max_scaled() - is link speed report set
2752 * max scaled
2753 * @psoc: pointer to psoc object
2754 *
2755 * Return: True is report set to max scaled
2756 */
2757bool
2758ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc);
2759
2760/**
Manikandan Mohan2bd09772018-11-28 18:27:32 -08002761 * ucfg_mlme_get_ibss_cfg() - Get IBSS config params data structure
2762 * @psoc: pointer to psoc object
2763 * @auto_bssid: Pointer to return the IBSS config data structure
2764 *
2765 * Return: QDF Status
2766 */
2767QDF_STATUS ucfg_mlme_get_ibss_cfg(struct wlan_objmgr_psoc *psoc,
2768 struct wlan_mlme_ibss_cfg *ibss_cfg);
2769
2770/**
2771 * ucfg_mlme_set_ibss_auto_bssid() - Set IBSS Auto BSSID config
2772 * @psoc: pointer to psoc object
2773 * @auto_bssid: IBSS Auto BSSID config value
2774 *
2775 * Return: QDF Status
2776 */
2777QDF_STATUS ucfg_mlme_set_ibss_auto_bssid(struct wlan_objmgr_psoc *psoc,
2778 uint32_t auto_bssid);
2779
2780/**
2781 * ucfg_mlme_ibss_power_save_setup() - Set IBSS power save params
2782 * @psoc: pointer to psoc object
2783 * @vdev_id: IBSS Vdev ID
2784 *
2785 * Return: QDF Status
2786 */
2787static inline
2788QDF_STATUS ucfg_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
2789 uint32_t vdev_id)
2790{
2791 return wlan_mlme_ibss_power_save_setup(psoc, vdev_id);
2792}
2793
2794/**
Abhinav Kumarc8c21502018-12-05 15:17:39 +05302795 * ucfg_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
2796 * of UAPSD auto trigger.
2797 * @psoc: pointer to psoc object
2798 * @value: Value that needs to be set from the caller
2799 *
2800 * Inline UCFG API to be used by HDD/OSIF callers
2801 *
2802 * Return: None
2803 */
2804static inline
2805void ucfg_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
2806 uint32_t *value)
2807{
2808 wlan_mlme_get_tl_delayed_trgr_frm_int(psoc, value);
2809}
2810
2811/**
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302812 * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
2813 * for VI
2814 * @psoc: pointer to psoc object
2815 * @value: Value that needs to be set from the caller
2816 *
2817 * Inline UCFG API to be used by HDD/OSIF callers
2818 *
2819 * Return: QDF Status
2820 */
2821static inline QDF_STATUS
Abhinav Kumarc1059382018-12-04 14:40:07 +05302822ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value)
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302823{
2824 return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
2825}
2826
2827/**
2828 * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
2829 * MSDU size for VI
2830 * @psoc: pointer to psoc object
2831 * @value: Value that needs to be set from the caller
2832 *
2833 * Inline UCFG API to be used by HDD/OSIF callers
2834 *
2835 * Return: QDF Status
2836 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302837static inline
2838QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
2839 uint16_t *value)
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302840{
2841 return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
2842}
2843
2844/**
2845 * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
2846 * rate for VI
2847 * @psoc: pointer to psoc object
2848 * @value: Value that needs to be set from the caller
2849 *
2850 * Inline UCFG API to be used by HDD/OSIF callers
2851 *
2852 * Return: QDF Status
2853 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302854static inline
2855QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
2856 uint32_t *value)
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302857{
2858 return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
2859}
2860
2861/**
2862 * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
2863 * rate for VI
2864 * @psoc: pointer to psoc object
2865 * @value: Value that needs to be set from the caller
2866 *
2867 * Inline UCFG API to be used by HDD/OSIF callers
2868 *
2869 * Return: QDF Status
2870 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302871static inline
2872QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
2873 uint32_t *value)
Abhinav Kumar4c8e0262018-10-06 16:50:27 +05302874{
2875 return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
2876}
2877
2878/**
2879 * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
2880 * allowance for VI
2881 * @psoc: pointer to psoc object
2882 * @value: Value that needs to be set from the caller
2883 *
2884 * Inline UCFG API to be used by HDD/OSIF callers
2885 *
2886 * Return: QDF Status
2887 */
2888static inline QDF_STATUS
2889ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
2890{
2891 return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
2892}
2893
2894/**
2895 * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
2896 * interval for video
2897 * @psoc: pointer to psoc object
2898 * @value: pointer to the value which will be filled for the caller
2899 *
2900 * Inline UCFG API to be used by HDD/OSIF callers
2901 *
2902 * Return: QDF Status
2903 */
2904static inline QDF_STATUS
2905ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
2906 uint32_t *value)
2907{
2908 return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
2909}
2910
2911/**
2912 * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
2913 * interval for video
2914 * @psoc: pointer to psoc object
2915 * @value: Value that needs to be set from the caller
2916 *
2917 * Inline UCFG API to be used by HDD/OSIF callers
2918 *
2919 * Return: QDF Status
2920 */
2921static inline QDF_STATUS
2922ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
2923 uint32_t *value)
2924{
2925 return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
2926}
2927
Abhinav Kumare94f2482018-08-19 12:37:36 +05302928/**
2929 * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
2930 * for BE
2931 * @psoc: pointer to psoc object
2932 * @value: Value that needs to be set from the caller
2933 *
2934 * Inline UCFG API to be used by HDD/OSIF callers
2935 *
2936 * Return: QDF Status
2937 */
2938static inline QDF_STATUS
2939ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
2940{
2941 return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
2942}
2943
2944/**
2945 * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
2946 * MSDU size for BE
2947 * @psoc: pointer to psoc object
2948 * @value: Value that needs to be set from the caller
2949 *
2950 * Inline UCFG API to be used by HDD/OSIF callers
2951 *
2952 * Return: QDF Status
2953 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302954static inline
2955QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
2956 uint16_t *value)
Abhinav Kumare94f2482018-08-19 12:37:36 +05302957{
2958 return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
2959}
2960
2961/**
2962 * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
2963 * rate for BE
2964 * @psoc: pointer to psoc object
2965 * @value: Value that needs to be set from the caller
2966 *
2967 * Inline UCFG API to be used by HDD/OSIF callers
2968 *
2969 * Return: QDF Status
2970 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302971static inline
2972QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
2973 uint32_t *value)
Abhinav Kumare94f2482018-08-19 12:37:36 +05302974{
2975 return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
2976}
2977
2978/**
2979 * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
2980 * rate for BE
2981 * @psoc: pointer to psoc object
2982 * @value: Value that needs to be set from the caller
2983 *
2984 * Inline UCFG API to be used by HDD/OSIF callers
2985 *
2986 * Return: QDF Status
2987 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05302988static inline
2989QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
2990 uint32_t *value)
Abhinav Kumare94f2482018-08-19 12:37:36 +05302991{
2992 return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
2993}
2994
2995/**
2996 * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
2997 * allowance for BE
2998 * @psoc: pointer to psoc object
2999 * @value: Value that needs to be set from the caller
3000 *
3001 * Inline UCFG API to be used by HDD/OSIF callers
3002 *
3003 * Return: QDF Status
3004 */
3005static inline QDF_STATUS
3006ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
3007{
3008 return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
3009}
3010
3011/**
3012 * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
3013 * interval for BE
3014 * @psoc: pointer to psoc object
3015 * @value: pointer to the value which will be filled for the caller
3016 *
3017 * Inline UCFG API to be used by HDD/OSIF callers
3018 *
3019 * Return: QDF Status
3020 */
3021static inline QDF_STATUS
3022ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
3023 uint32_t *value)
3024{
3025 return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
3026}
3027
3028/**
3029 * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
3030 * interval for BE
3031 * @psoc: pointer to psoc object
3032 * @value: Value that needs to be set from the caller
3033 *
3034 * Inline UCFG API to be used by HDD/OSIF callers
3035 *
3036 * Return: QDF Status
3037 */
3038static inline QDF_STATUS
3039ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
3040 uint32_t *value)
3041{
3042 return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
3043}
3044
Abhinav Kumar2af8c122018-08-19 13:49:52 +05303045/**
3046 * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
3047 * for BK
3048 * @psoc: pointer to psoc object
3049 * @value: Value that needs to be set from the caller
3050 *
3051 * Inline UCFG API to be used by HDD/OSIF callers
3052 *
3053 * Return: QDF Status
3054 */
3055static inline QDF_STATUS
3056ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
3057{
3058 return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
3059}
3060
3061/**
3062 * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
3063 * MSDU size for BE
3064 * @psoc: pointer to psoc object
3065 * @value: Value that needs to be set from the caller
3066 *
3067 * Inline UCFG API to be used by HDD/OSIF callers
3068 *
3069 * Return: QDF Status
3070 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303071static inline
3072QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
3073 uint16_t *value)
Abhinav Kumar2af8c122018-08-19 13:49:52 +05303074{
3075 return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
3076}
3077
3078/**
3079 * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
3080 * rate for BK
3081 * @psoc: pointer to psoc object
3082 * @value: Value that needs to be set from the caller
3083 *
3084 * Inline UCFG API to be used by HDD/OSIF callers
3085 *
3086 * Return: QDF Status
3087 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303088static inline
3089QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
3090 uint32_t *value)
Abhinav Kumar2af8c122018-08-19 13:49:52 +05303091{
3092 return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
3093}
3094
3095/**
3096 * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
3097 * rate for BE
3098 * @psoc: pointer to psoc object
3099 * @value: Value that needs to be set from the caller
3100 *
3101 * Inline UCFG API to be used by HDD/OSIF callers
3102 *
3103 * Return: QDF Status
3104 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303105static inline
3106QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
3107 uint32_t *value)
Abhinav Kumar2af8c122018-08-19 13:49:52 +05303108{
3109 return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
3110}
3111
3112/**
3113 * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
3114 * allowance for BE
3115 * @psoc: pointer to psoc object
3116 * @value: Value that needs to be set from the caller
3117 *
3118 * Inline UCFG API to be used by HDD/OSIF callers
3119 *
3120 * Return: QDF Status
3121 */
3122static inline QDF_STATUS
3123ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
3124{
3125 return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
3126}
3127
3128/**
3129 * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
3130 * interval for BK
3131 * @psoc: pointer to psoc object
3132 * @value: pointer to the value which will be filled for the caller
3133 *
3134 * Inline UCFG API to be used by HDD/OSIF callers
3135 *
3136 * Return: QDF Status
3137 */
3138static inline QDF_STATUS
3139ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
3140 uint32_t *value)
3141{
3142 return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
3143}
3144
3145/**
3146 * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
3147 * interval for BK
3148 * @psoc: pointer to psoc object
3149 * @value: Value that needs to be set from the caller
3150 *
3151 * Inline UCFG API to be used by HDD/OSIF callers
3152 *
3153 * Return: QDF Status
3154 */
3155static inline QDF_STATUS
3156ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
3157 uint32_t *value)
3158{
3159 return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
3160}
3161
Abhinav Kumar7d6f1ac2018-09-01 18:33:56 +05303162/**
3163 * ucfg_mlme_get_wmm_mode() - Enable WMM feature
3164 * @psoc: pointer to psoc object
3165 * @value: Value that needs to be set from the caller
3166 *
3167 * Inline UCFG API to be used by HDD/OSIF callers
3168 *
3169 * Return: QDF Status
3170 */
3171static inline QDF_STATUS
3172ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
3173{
3174 return wlan_mlme_get_wmm_mode(psoc, value);
3175}
3176
Bala Venkatesh6d537092018-09-25 10:38:36 +05303177#ifdef WLAN_FEATURE_11AX
3178/**
3179 * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
3180 *
3181 * @psoc: pointer to psoc object
3182 * @cfg: pointer to config params from target
3183 *
3184 * Inline UCFG API to be used by HDD/OSIF callers to update
3185 * he caps in mlme.
3186 *
3187 * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
3188 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303189static inline QDF_STATUS
3190ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
3191 struct wma_tgt_cfg *cfg)
Bala Venkatesh6d537092018-09-25 10:38:36 +05303192{
3193 return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
3194}
3195
3196/**
3197 * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
3198 * @psoc: pointer to psoc object
3199 * @value: Value that needs to be set from the caller
3200 *
3201 * Return: QDF Status
3202 */
3203static inline
3204QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
3205 uint32_t *value)
3206{
3207 return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
3208}
3209
3210/**
3211 * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
3212 * @psoc: pointer to psoc object
3213 * @value: Value that needs to be set from the caller
3214 *
3215 * Return: QDF Status
3216 */
3217static inline
3218QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
3219 uint32_t value)
3220{
3221 return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
3222}
3223
3224/**
3225 * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
3226 * @psoc: pointer to psoc object
3227 * @value: Value that needs to be set from the caller
3228 *
3229 * Return: QDF Status
3230 */
3231static inline
3232QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
3233 uint8_t *value)
3234{
3235 return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
3236}
3237
3238/**
3239 * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
3240 * @psoc: pointer to psoc object
3241 * @value: Value that needs to be set from the caller
3242 *
3243 * Return: QDF Status
3244 */
3245static inline
3246QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
3247 uint8_t *value)
3248{
3249 return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
3250}
3251#endif
3252
Abhinav Kumar7d6f1ac2018-09-01 18:33:56 +05303253/**
3254 * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
3255 * @psoc: pointer to psoc object
3256 * @value: Value that needs to be set from the caller
3257 *
3258 * Inline UCFG API to be used by HDD/OSIF callers
3259 *
3260 * Return: QDF Status
3261 */
3262static inline QDF_STATUS
3263ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
3264{
3265 return wlan_mlme_get_80211e_is_enabled(psoc, value);
3266}
3267
3268/**
3269 * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
3270 * @psoc: pointer to psoc object
3271 * @value: Value that needs to be set from the caller
3272 *
3273 * Inline UCFG API to be used by HDD/OSIF callers
3274 *
3275 * Return: QDF Status
3276 */
3277static inline QDF_STATUS
3278ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
3279{
3280 return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
3281}
3282
3283/**
3284 * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
3285 * @psoc: pointer to psoc object
3286 * @value: Value that needs to be set from the caller
3287 *
3288 * Inline UCFG API to be used by HDD/OSIF callers
3289 *
3290 * Return: QDF Status
3291 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303292static inline
3293QDF_STATUS ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
3294 bool *value)
Abhinav Kumar7d6f1ac2018-09-01 18:33:56 +05303295{
3296 return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
3297}
3298
Abhinav Kumarab576712018-11-05 14:32:49 +05303299#ifdef FEATURE_WLAN_ESE
3300/**
3301 * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
3302 * @psoc: pointer to psoc object
3303 * @value: Value that needs to be get from the caller
3304 *
3305 * Inline UCFG API to be used by HDD/OSIF callers
3306 *
3307 * Return: None
3308 */
3309static inline void
3310ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
3311 uint32_t *value)
3312{
3313 wlan_mlme_get_inactivity_interval(psoc, value);
3314}
Wu Gao5d23d782018-11-08 16:09:47 +08003315
3316/**
3317 * ucfg_mlme_is_ese_enabled() - ese feature enable or not
3318 * @psoc: pointer to psoc object
3319 * @val: Pointer to the value which will be filled for the caller
3320 *
3321 * Return: QDF Status
3322 */
3323QDF_STATUS
3324ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
3325#endif /* FEATURE_WLAN_ESE */
Abhinav Kumarab576712018-11-05 14:32:49 +05303326
3327/**
3328 * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
3329 * @psoc: pointer to psoc object
3330 * @value: Value that needs to be get from the caller
3331 *
3332 * Inline UCFG API to be used by HDD/OSIF callers
3333 *
3334 * Return: None
3335 */
Abhinav Kumarc1059382018-12-04 14:40:07 +05303336static inline
3337void ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
3338 bool *value)
Abhinav Kumarab576712018-11-05 14:32:49 +05303339{
3340 wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
3341}
3342
3343/**
3344 * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
3345 * @psoc: pointer to psoc object
3346 * @value: Value that needs to be get from the caller
3347 *
3348 * Inline UCFG API to be used by HDD/OSIF callers
3349 *
3350 * Return: None
3351 */
3352static inline void
3353ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
3354 enum mlme_ts_info_ack_policy *value)
3355{
3356 wlan_mlme_get_ts_info_ack_policy(psoc, value);
3357}
3358
3359/**
3360 * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
3361 * @psoc: pointer to psoc object
3362 * @value: Value that needs to be get from the caller
3363 *
Pragaspathi Thilagaraj4b5c0602018-11-14 22:35:23 +05303364 *
Abhinav Kumarab576712018-11-05 14:32:49 +05303365 * Inline UCFG API to be used by HDD/OSIF callers
3366 *
3367 * Return: QDF Status
3368 */
3369static inline QDF_STATUS
3370ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
3371{
3372 return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
3373}
3374
Pragaspathi Thilagaraj4b5c0602018-11-14 22:35:23 +05303375/*
3376 * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
3377 * @psoc: pointer to psoc object
3378 * @value: sap uapsd enabled flag value requested from the caller
3379 *
3380 * Inline UCFG API to be used by HDD/OSIF callers
3381 *
3382 * Return: QDF Status
3383 */
3384static inline QDF_STATUS
3385ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
3386{
3387 return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
3388}
3389
3390/*
3391 * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
3392 * @psoc: pointer to psoc object
3393 * @value: Value that needs to be set from the caller
3394 *
3395 * Inline UCFG API to be used by HDD/OSIF callers
3396 *
3397 * Return: QDF Status
3398 */
3399static inline QDF_STATUS
3400ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
3401{
3402 return wlan_mlme_set_sap_uapsd_flag(psoc, value);
3403}
3404
Sourav Mohapatra0dfe5552018-11-16 11:29:54 +05303405/**
3406 * ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map
3407 * @psoc: pointer to psoc object
3408 * @value: Value that needs to be set from the caller
3409 *
3410 * UCFG API to be used by HDD/OSIF callers
3411 *
3412 * Return: QDF Status
3413 */
3414QDF_STATUS
3415ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
3416 bool *value);
3417
3418/**
3419 * ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid
3420 * @psoc: pointer to psoc object
3421 * @value: Value that needs to be set from the caller
3422 *
3423 * UCFG API to be used by HDD/OSIF callers
3424 *
3425 * Return: QDF Status
3426 */
3427QDF_STATUS
3428ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
3429 bool *value);
3430
Krunal Sonid2c33e12018-12-06 15:02:37 -08003431/**
3432 * ucfg_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
3433 *
3434 * @psoc: pointer to psoc object
3435 * @value: value which needs to filled by API
3436 *
3437 * This API gives rest time to be used when STA and MIRACAST MCC conc happens
3438 *
3439 * Return: QDF_STATUS
3440 */
3441static inline QDF_STATUS
3442ucfg_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
3443 uint32_t *value)
3444{
3445 return wlan_mlme_get_sta_miracast_mcc_rest_time(psoc, value);
3446}
3447
3448/**
3449 * ucfg_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
3450 *
3451 * @psoc: pointer to psoc object
3452 * @value: value which needs to filled by API
3453 *
3454 * This API fetches the user setting to determine if SAP MCC with other persona
3455 * to be avoided.
3456 *
3457 * Return: QDF_STATUS
3458 */
3459static inline QDF_STATUS
3460ucfg_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
3461 uint8_t *value)
3462{
3463 return wlan_mlme_get_sap_mcc_chnl_avoid(psoc, value);
3464}
3465
3466/**
3467 * ucfg_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
3468 *
3469 * @psoc: pointer to psoc object
3470 * @value: value which needs to filled by API
3471 *
3472 * To get INI value which helps to determe whether to enable/disable use of
3473 * broadcast probe response to increase the detectability of SAP in MCC mode.
3474 *
3475 *
3476 * Return: QDF_STATUS
3477 */
3478static inline QDF_STATUS
3479ucfg_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
3480 uint8_t *value)
3481{
3482 return wlan_mlme_get_mcc_bcast_prob_resp(psoc, value);
3483}
3484
3485/**
3486 * ucfg_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
3487 *
3488 * @psoc: pointer to psoc object
3489 * @value: value which needs to filled by API
3490 *
3491 * To get INI value which helps to determine whether to enable/disable
3492 * use of long duration RTS-CTS protection when SAP goes off
3493 * channel in MCC mode.
3494 *
3495 * Return: QDF_STATUS
3496 */
3497static inline QDF_STATUS
3498ucfg_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
3499 uint8_t *value)
3500{
3501 return wlan_mlme_get_mcc_rts_cts_prot(psoc, value);
3502}
3503
3504/**
3505 * ucfg_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
3506 *
3507 * @psoc: pointer to psoc object
3508 * @value: value which needs to filled by API
3509 *
3510 * To get INI value which helps to determine whether to enable MCC feature
3511 *
3512 * Return: QDF_STATUS
3513 */
3514static inline QDF_STATUS
3515ucfg_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
3516 uint8_t *value)
3517{
3518 return wlan_mlme_get_mcc_feature(psoc, value);
3519}
Yeshwanth Sriram Guntuka334aa8d2018-08-20 16:49:15 +05303520
3521/**
3522 * ucfg_wlan_mlme_get_rrm_enabled() - Get the rrm enabled
3523 * @psoc: pointer to psoc object
3524 * @value: Value that needs to be get from the caller
3525 *
3526 * Return: QDF Status
3527 */
3528static inline
3529QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
3530 bool *value)
3531{
3532 return wlan_mlme_get_rrm_enabled(psoc, value);
3533}
Sourav Mohapatrac457ae62018-12-06 15:19:41 +05303534
3535/**
3536 * ucfg_mlme_get_latency_enable() - Get the latency_enable
3537 * @psoc: pointer to psoc object
3538 * @value: Value that needs to be get from the caller
3539 *
3540 * Return: QDF Status
3541 */
3542QDF_STATUS
3543ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value);
3544
Pragaspathi Thilagaraj784c4922018-12-02 22:47:29 +05303545/**
3546 * ucfg_mlme_get_dtim_selection_diversity() - get dtim selection diversity
3547 * bitmap
3548 * @psoc: pointer to psoc object
3549 * @dtim_selection_div: value that is requested by the caller
3550 *
3551 * Inline UCFG API to be used by HDD/OSIF callers
3552 *
3553 * Return: QDF_STATUS_SUCCESS - in case of success
3554 */
3555static inline QDF_STATUS
3556ucfg_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
3557 uint32_t *dtim_selection_div)
3558{
3559 return wlan_mlme_get_dtim_selection_diversity(psoc, dtim_selection_div);
3560}
3561
3562/**
3563 * ucfg_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
3564 * minimum listen interval value
3565 * @psoc: pointer to psoc object
3566 * @value: value that is requested by the caller
3567 *
3568 * Inline UCFG API to be used by HDD/OSIF callers
3569 *
3570 * Return: QDF_STATUS_SUCCESS - in case of success
3571 */
3572static inline QDF_STATUS
3573ucfg_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
3574 uint32_t *value)
3575{
3576 return wlan_mlme_get_bmps_min_listen_interval(psoc, value);
3577}
3578
3579/**
3580 * ucfg_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
3581 * maximum listen interval value
3582 * @psoc: pointer to psoc object
3583 * @value: value that is requested by the caller
3584 *
3585 * Inline UCFG API to be used by HDD/OSIF callers
3586 *
3587 * Return: QDF_STATUS_SUCCESS - in case of success
3588 */
3589static inline QDF_STATUS
3590ucfg_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
3591 uint32_t *value)
3592{
3593 return wlan_mlme_get_bmps_max_listen_interval(psoc, value);
3594}
3595
3596/**
3597 * ucfg_mlme_get_auto_bmps_timer_value() - get bmps timer value
3598 * minimum listen interval value
3599 * @psoc: pointer to psoc object
3600 * @value: value that is requested by the caller
3601 *
3602 * Inline UCFG API to be used by HDD/OSIF callers
3603 *
3604 * Return: QDF_STATUS_SUCCESS - in case of success
3605 */
3606static inline QDF_STATUS
3607ucfg_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
3608 uint32_t *value)
3609{
3610 return wlan_mlme_get_auto_bmps_timer_value(psoc, value);
3611}
3612
3613/**
3614 * ucfg_mlme_is_bmps_enabled() - check if beacon mode powersave is
3615 * enabled/disabled
3616 * @psoc: pointer to psoc object
3617 * @value: value that is requested by the caller
3618 *
3619 * Inline UCFG API to be used by HDD/OSIF callers
3620 *
3621 * Return: QDF_STATUS_SUCCESS - in case of success
3622 */
3623static inline QDF_STATUS
3624ucfg_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
3625{
3626 return wlan_mlme_is_bmps_enabled(psoc, value);
3627}
3628
3629/**
3630 * ucfg_mlme_is_imps_enabled() - check if idle mode powersave is
3631 * enabled/disabled
3632 * @psoc: pointer to psoc object
3633 * @value: value that is requested by the caller
3634 *
3635 * Inline UCFG API to be used by HDD/OSIF callers
3636 *
3637 * Return: QDF_STATUS_SUCCESS - in case of success
3638 */
3639static inline QDF_STATUS
3640ucfg_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
3641{
3642 return wlan_mlme_is_imps_enabled(psoc, value);
3643}
3644
3645/**
3646 * ucfg_mlme_override_bmps_imps() - disable imps/bmps as part of
3647 * override to disable all ps features
3648 * @psoc: pointer to psoc object
3649 * Inline UCFG API to be used by HDD/OSIF callers
3650 *
3651 * Return: QDF_STATUS_SUCCESS - in case of success
3652 */
3653static inline QDF_STATUS
3654ucfg_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc)
3655{
3656 return wlan_mlme_override_bmps_imps(psoc);
3657}
3658
lifengdb340e72018-11-20 00:50:20 +08003659#ifdef MWS_COEX
3660/**
3661 * ucfg_mlme_get_mws_coex_4g_quick_tdm() - Get mws coex 4g quick tdm
3662 * @psoc: pointer to psoc object
3663 * @val: Pointer to the value which will be filled for the caller
3664 *
3665 * Return: QDF Status
3666 */
3667QDF_STATUS
3668ucfg_mlme_get_mws_coex_4g_quick_tdm(struct wlan_objmgr_psoc *psoc,
3669 uint32_t *val);
3670
3671/**
3672 * ucfg_mlme_get_mws_coex_5g_nr_pwr_limit() - Get mws coex 5g nr pwr limit
3673 * @psoc: pointer to psoc object
3674 * @val: Pointer to the value which will be filled for the caller
3675 *
3676 * Return: QDF Status
3677 */
3678QDF_STATUS
3679ucfg_mlme_get_mws_coex_5g_nr_pwr_limit(struct wlan_objmgr_psoc *psoc,
3680 uint32_t *val);
3681#endif
3682
lifeng0b46ae52018-12-13 09:42:27 +08003683/**
3684 * ucfg_mlme_get_etsi13_srd_chan_in_master_mode - get etsi13 srd chan
3685 * in master mode
Wu Gao2255ea22019-01-04 15:44:35 +08003686 * @psoc: pointer to psoc object
3687 * @value: pointer to the value which will be filled for the caller
lifeng0b46ae52018-12-13 09:42:27 +08003688 *
3689 * Return: QDF Status
3690 */
3691QDF_STATUS
3692ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
3693 bool *value);
3694
3695/**
gaurank kathpaliaba22ef22019-02-05 17:04:08 +05303696 * ucfg_mlme_get_11d_in_world_mode - get whether 11d is enabled in world mode
3697 * in master mode
3698 * @psoc: pointer to psoc object
3699 * @value: pointer to the value which will be filled for the caller
3700 *
3701 * Return: QDF Status
3702 */
3703QDF_STATUS
3704ucfg_mlme_get_11d_in_world_mode(struct wlan_objmgr_psoc *psoc,
3705 bool *value);
3706
3707/**
lifeng0b46ae52018-12-13 09:42:27 +08003708 * ucfg_mlme_restart_beaconing_on_ch_avoid() - get restart beaconing on ch avoid
Wu Gao2255ea22019-01-04 15:44:35 +08003709 * @psoc: pointer to psoc object
3710 * @value: pointer to the value which will be filled for the caller
lifeng0b46ae52018-12-13 09:42:27 +08003711 *
3712 * Return: QDF Status
3713 */
3714QDF_STATUS
3715ucfg_mlme_get_restart_beaconing_on_ch_avoid(struct wlan_objmgr_psoc *psoc,
3716 uint32_t *value);
3717
3718/**
3719 * ucfg_mlme_get_indoor_channel_support() - get indoor channel support
Wu Gao2255ea22019-01-04 15:44:35 +08003720 * @psoc: pointer to psoc object
3721 * @value: pointer to the value which will be filled for the caller
lifeng0b46ae52018-12-13 09:42:27 +08003722 *
3723 * Return: QDF Status
3724 */
3725QDF_STATUS
3726ucfg_mlme_get_indoor_channel_support(struct wlan_objmgr_psoc *psoc,
3727 bool *value);
3728
3729/**
3730 * ucfg_mlme_get_scan_11d_interval() - get scan 11d interval
3731 * @psoc: pointer to psoc object
Wu Gao2255ea22019-01-04 15:44:35 +08003732 * @value: Pointer to the value which will be filled for the caller
lifeng0b46ae52018-12-13 09:42:27 +08003733 *
3734 * Return: QDF Status
3735 */
3736QDF_STATUS
3737ucfg_mlme_get_scan_11d_interval(struct wlan_objmgr_psoc *psoc,
3738 uint32_t *value);
3739
Wu Gaof3cbeaf2019-01-15 18:26:25 +08003740/**
3741 * ucfg_mlme_get_valid_channel_list() - get valid channel list
3742 * @psoc: pointer to psoc object
3743 * @channel_list: pointer to return channel list
3744 * @channel_list_num: pointer to return channel list number
3745 *
3746 * Return: QDF Status
3747 */
3748QDF_STATUS
3749ucfg_mlme_get_valid_channel_list(struct wlan_objmgr_psoc *psoc,
3750 uint8_t *channel_list,
3751 uint32_t *channel_list_num);
3752
Wu Gao6294afc2019-01-05 00:00:58 +08003753#ifdef FEATURE_LFR_SUBNET_DETECTION
3754/**
3755 * ucfg_mlme_is_subnet_detection_enabled() - check if sub net detection is
3756 * enabled/disabled
3757 * @psoc: pointer to psoc object
3758 * @value: value that is requested by the caller
3759 *
3760 * Inline UCFG API to be used by HDD/OSIF callers
3761 *
3762 * Return: QDF_STATUS_SUCCESS - in case of success
3763 */
3764QDF_STATUS
3765ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
3766#else
3767static QDF_STATUS
3768ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val)
3769{
3770 *val = false;
3771
3772 return QDF_STATUS_SUCCESS;
3773}
3774#endif /* FEATURE_LFR_SUBNET_DETECTION */
Wu Gao2255ea22019-01-04 15:44:35 +08003775
3776/**
3777 * ucfg_mlme_set_current_tx_power_level() - set current tx power level
3778 * @psoc: pointer to psoc object
3779 * @value: data to be set
3780 *
3781 * Return: QDF Status
3782 */
3783QDF_STATUS
3784ucfg_mlme_set_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
3785 uint8_t value);
3786
3787/**
3788 * ucfg_mlme_get_current_tx_power_level() - get current tx power level
3789 * @psoc: pointer to psoc object
3790 * @value: pointer to the value which will be filled for the caller
3791 *
3792 * Return: QDF Status
3793 */
3794QDF_STATUS
3795ucfg_mlme_get_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
3796 uint8_t *value);
3797
3798/**
3799 * ucfg_mlme_set_obss_detection_offload_enabled() - Enable obss offload
3800 * @psoc: pointer to psoc object
3801 * @value: enable or disable
3802 *
3803 * Return: QDF Status
3804 */
3805QDF_STATUS
3806ucfg_mlme_set_obss_detection_offload_enabled(struct wlan_objmgr_psoc *psoc,
3807 uint8_t value);
3808
3809/**
3810 * ucfg_mlme_set_obss_color_collision_offload_enabled() - Enable obss color
3811 * collision offload
3812 * @psoc: pointer to psoc object
3813 * @value: enable or disable
3814 *
3815 * Return: QDF Status
3816 */
3817QDF_STATUS
3818ucfg_mlme_set_obss_color_collision_offload_enabled(
3819 struct wlan_objmgr_psoc *psoc, uint8_t value);
Wu Gaoed616a12019-01-16 15:19:21 +08003820
3821/**
3822 * ucfg_mlme_get_channel_bonding_24ghz() - get channel bonding mode of 24ghz
3823 * @psoc: pointer to psoc object
3824 * @value: pointer to the value which will be filled for the caller
3825 *
3826 * Return: QDF Status
3827 */
3828QDF_STATUS
3829ucfg_mlme_get_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
3830 uint32_t *value);
3831
3832/**
3833 * ucfg_mlme_set_channel_bonding_24ghz() - set channel bonding mode for 24ghz
3834 * @psoc: pointer to psoc object
3835 * @value: channel bonding mode
3836 *
3837 * Return: QDF Status
3838 */
3839QDF_STATUS
3840ucfg_mlme_set_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
3841 uint32_t value);
3842/**
3843 * ucfg_mlme_get_channel_bonding_5ghz() - get channel bonding mode of 5ghz
3844 * @psoc: pointer to psoc object
3845 * @value: pointer to the value which will be filled for the caller
3846 *
3847 * Return: QDF Status
3848 */
3849QDF_STATUS
3850ucfg_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
3851 uint32_t *value);
3852
3853/**
3854 * ucfg_mlme_set_channel_bonding_5ghz() - set channel bonding mode for 5ghz
3855 * @psoc: pointer to psoc object
3856 * @value: channel bonding mode
3857 *
3858 * Return: QDF Status
3859 */
3860QDF_STATUS
3861ucfg_mlme_set_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
3862 uint32_t value);
Vignesh Viswanathan21c58cb2018-05-24 15:53:58 +05303863#endif /* _WLAN_MLME_UCFG_API_H_ */