wlan_mlme_ucfg_api.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. /*
  2. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  3. *
  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. /**
  19. * DOC: declare UCFG APIs exposed by the mlme component
  20. */
  21. #ifndef _WLAN_MLME_UCFG_API_H_
  22. #define _WLAN_MLME_UCFG_API_H_
  23. #include <wlan_mlme_public_struct.h>
  24. #include <wlan_objmgr_psoc_obj.h>
  25. #include <wlan_objmgr_global_obj.h>
  26. #include <wlan_cmn.h>
  27. #include <wlan_mlme_api.h>
  28. /**
  29. * ucfg_mlme_init() - initialize mlme_ctx context.
  30. *
  31. * This function initializes the mlme context.
  32. *
  33. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  34. */
  35. QDF_STATUS ucfg_mlme_init(void);
  36. /**
  37. * ucfg_mlme_deinit() - De initialize mlme_ctx context.
  38. *
  39. * This function De initializes mlme contex.
  40. *
  41. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  42. */
  43. QDF_STATUS ucfg_mlme_deinit(void);
  44. /**
  45. * ucfg_mlme_psoc_open() - MLME component Open
  46. * @psoc: pointer to psoc object
  47. *
  48. * Open the MLME component and initialize the MLME strucutre
  49. *
  50. * Return: QDF Status
  51. */
  52. QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
  53. /**
  54. * ucfg_mlme_psoc_close() - MLME component close
  55. * @psoc: pointer to psoc object
  56. *
  57. * Close the MLME component and clear the MLME structures
  58. *
  59. * Return: None
  60. */
  61. void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
  62. #ifdef CONFIG_VDEV_SM
  63. /**
  64. * ucfg_mlme_pdev_open() - MLME component pdev Open
  65. * @pdev: pointer to pdev object
  66. *
  67. * Open the MLME component and initialize the MLME pdev strucutre
  68. *
  69. * Return: QDF Status
  70. */
  71. QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev);
  72. /**
  73. * ucfg_mlme_pdev_close() - MLME component pdev close
  74. * @pdev: pointer to pdev object
  75. *
  76. * close the MLME pdev information
  77. *
  78. * Return: QDF Status
  79. */
  80. QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev);
  81. #else
  82. /**
  83. * ucfg_mlme_pdev_open() - MLME component pdev Open
  84. * @pdev: pointer to pdev object
  85. *
  86. * Open the MLME component and initialize the MLME pdev strucutre
  87. *
  88. * Return: QDF Status
  89. */
  90. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  91. {
  92. return QDF_STATUS_SUCCESS;
  93. }
  94. /**
  95. * ucfg_mlme_pdev_close() - MLME component pdev close
  96. * @pdev: pointer to pdev object
  97. *
  98. * close the MLME pdev information
  99. *
  100. * Return: QDF Status
  101. */
  102. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  103. {
  104. return QDF_STATUS_SUCCESS;
  105. }
  106. #endif
  107. /**
  108. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  109. * @psoc: pointer to psoc object
  110. * @value: pointer to the value which will be filled for the caller
  111. *
  112. * Inline UCFG API to be used by HDD/OSIF callers
  113. *
  114. * Return: QDF Status
  115. */
  116. static inline
  117. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  118. struct mlme_ht_capabilities_info
  119. *ht_cap_info)
  120. {
  121. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  122. }
  123. /**
  124. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  125. * @psoc: pointer to psoc object
  126. * @value: Value that needs to be set from the caller
  127. *
  128. * Inline UCFG API to be used by HDD/OSIF callers
  129. *
  130. * Return: QDF Status
  131. */
  132. static inline
  133. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  134. struct mlme_ht_capabilities_info
  135. ht_cap_info)
  136. {
  137. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  138. }
  139. /**
  140. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  141. * more param
  142. * @psoc: pointer to psoc object
  143. * @value: Value that needs to be set from the caller
  144. *
  145. * Inline UCFG API to be used by HDD/OSIF callers
  146. *
  147. * Return: QDF Status
  148. */
  149. static inline
  150. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  151. bool *value)
  152. {
  153. return wlan_mlme_get_acs_with_more_param(psoc, value);
  154. }
  155. /**
  156. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  157. *
  158. * @psoc: pointer to psoc object
  159. * @value: Value that needs to be set from the caller
  160. *
  161. * Inline UCFG API to be used by HDD/OSIF callers
  162. *
  163. * Return: QDF Status
  164. */
  165. static inline
  166. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  167. uint32_t *value)
  168. {
  169. return wlan_mlme_get_auto_channel_weight(psoc, value);
  170. }
  171. /**
  172. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  173. * vendor acs support
  174. * @psoc: pointer to psoc object
  175. * @value: Value that needs to be set from the caller
  176. *
  177. * Inline UCFG API to be used by HDD/OSIF callers
  178. *
  179. * Return: QDF Status
  180. */
  181. static inline
  182. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  183. bool *value)
  184. {
  185. return wlan_mlme_get_vendor_acs_support(psoc, value);
  186. }
  187. /**
  188. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  189. * acs policy
  190. * @psoc: pointer to psoc object
  191. * @value: Value that needs to be set from the caller
  192. *
  193. * Inline UCFG API to be used by HDD/OSIF callers
  194. *
  195. * Return: QDF Status
  196. */
  197. static inline QDF_STATUS
  198. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  199. bool *value)
  200. {
  201. return wlan_mlme_get_external_acs_policy(psoc, value);
  202. }
  203. /**
  204. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  205. * @psoc: pointer to psoc object
  206. * @value: Value that needs to be set from the caller
  207. *
  208. * Inline UCFG API to be used by HDD/OSIF callers
  209. *
  210. * Return: QDF Status
  211. */
  212. static inline
  213. QDF_STATUS
  214. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  215. bool *value)
  216. {
  217. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  218. }
  219. /**
  220. *
  221. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  222. * override flag is set.
  223. * @psoc: pointer to psoc object
  224. * @sme_config - Sme config struct
  225. *
  226. * Inline UCFG API to be used by HDD/OSIF callers to call
  227. * the mlme function wlan_mlme_get_sap_inactivity_override
  228. *
  229. * Return: QDF Status
  230. */
  231. static inline
  232. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  233. bool *value)
  234. {
  235. wlan_mlme_get_sap_inactivity_override(psoc, value);
  236. }
  237. /**
  238. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  239. *
  240. * @psoc: pointer to psoc object
  241. * @value: Value that needs to be set from the caller
  242. *
  243. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  244. */
  245. static inline
  246. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  247. uint8_t *value)
  248. {
  249. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  250. }
  251. /**
  252. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  253. *
  254. * @psoc: pointer to psoc object
  255. * @value: Value that needs to be set from the caller
  256. *
  257. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  258. */
  259. static inline
  260. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  261. uint16_t *value)
  262. {
  263. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  264. }
  265. /**
  266. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  267. *
  268. * @psoc: pointer to psoc object
  269. * @value: Value that needs to be set from the caller
  270. *
  271. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  272. */
  273. static inline
  274. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  275. uint16_t *value)
  276. {
  277. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  278. }
  279. /**
  280. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  281. *
  282. * @psoc: pointer to psoc object
  283. * @session_id: vdev_id
  284. *
  285. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  286. */
  287. static inline
  288. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  289. uint8_t session_id)
  290. {
  291. return wlan_mlme_configure_chain_mask(psoc, session_id);
  292. }
  293. /*
  294. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  295. * @psoc: pointer to psoc object
  296. * @val: Pointer to the value which will be filled for the caller
  297. *
  298. * Return: QDF Status
  299. */
  300. QDF_STATUS
  301. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  302. uint32_t *val);
  303. /**
  304. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  305. * @psoc: pointer to psoc object
  306. * @val: Pointer to the value which will be filled for the caller
  307. *
  308. * Return: QDF Status
  309. */
  310. QDF_STATUS
  311. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  312. uint32_t *val);
  313. /**
  314. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  315. * @psoc: pointer to psoc object
  316. * @val: Pointer to the value which will be filled for the caller
  317. *
  318. * Return: QDF Status
  319. */
  320. QDF_STATUS
  321. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  322. uint32_t val);
  323. /**
  324. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  325. * @psoc: pointer to psoc object
  326. * @val: Pointer to the value which will be filled for the caller
  327. *
  328. * Return: QDF Status
  329. */
  330. QDF_STATUS
  331. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  332. uint8_t *val);
  333. /**
  334. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  335. * @psoc: pointer to psoc object
  336. * @val: Pointer to the value which will be filled for the caller
  337. *
  338. * Return: QDF Status
  339. */
  340. QDF_STATUS
  341. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  342. bool *val);
  343. /**
  344. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  345. * @psoc: pointer to psoc object
  346. * @val: Pointer to the value which will be filled for the caller
  347. *
  348. * Return: QDF Status
  349. */
  350. QDF_STATUS
  351. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  352. bool *val);
  353. /**
  354. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  355. * @psoc: pointer to psoc object
  356. * @val: Pointer to the value which will be filled for the caller
  357. *
  358. * Return: QDF Status
  359. */
  360. QDF_STATUS
  361. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  362. bool *val);
  363. /**
  364. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  365. * @psoc: pointer to psoc object
  366. * @val: Pointer to the value which will be filled for the caller
  367. *
  368. * Return: QDF Status
  369. */
  370. QDF_STATUS
  371. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  372. uint32_t *val);
  373. /**
  374. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  375. * @psoc: pointer to psoc object
  376. * @val: Pointer to enable/disable roaming offload
  377. *
  378. * Return: QDF Status
  379. */
  380. QDF_STATUS
  381. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  382. bool *val);
  383. /**
  384. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  385. * @psoc: pointer to psoc object
  386. * @val: enable/disable roaming offload
  387. *
  388. * Return: QDF Status
  389. */
  390. QDF_STATUS
  391. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  392. bool val);
  393. /**
  394. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  395. * @psoc: pointer to psoc object
  396. * @val: first scan bucket threshold
  397. *
  398. * Return: QDF Status
  399. */
  400. QDF_STATUS
  401. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  402. uint8_t *val);
  403. /**
  404. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  405. * @psoc: pointer to psoc object
  406. * @value: Value that needs to be set from the caller
  407. *
  408. * Inline UCFG API to be used by HDD/OSIF callers
  409. *
  410. * Return: QDF Status
  411. */
  412. static inline
  413. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  414. int value)
  415. {
  416. return wlan_mlme_set_sap_listen_interval(psoc, value);
  417. }
  418. /**
  419. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  420. * @psoc: pointer to psoc object
  421. * @value: Value that needs to be set from the caller
  422. *
  423. * Inline UCFG API to be used by HDD/OSIF callers
  424. *
  425. * Return: QDF Status
  426. */
  427. static inline
  428. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  429. int value)
  430. {
  431. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  432. }
  433. /**
  434. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  435. * @psoc: pointer to psoc object
  436. * @value: Value that needs to be set from the caller
  437. *
  438. * Inline UCFG API to be used by HDD/OSIF callers
  439. *
  440. * Return: QDF Status
  441. */
  442. static inline
  443. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  444. int value)
  445. {
  446. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  447. }
  448. /**
  449. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  450. * @psoc: pointer to psoc object
  451. * @value: Value that needs to be set from the caller
  452. *
  453. * Inline UCFG API to be used by HDD/OSIF callers
  454. *
  455. * Return: QDF Status
  456. */
  457. static inline
  458. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  459. bool *value)
  460. {
  461. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  462. }
  463. /**
  464. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  465. * @psoc: pointer to psoc object
  466. * @value: Value that needs to be set from the caller
  467. *
  468. * Inline UCFG API to be used by HDD/OSIF callers
  469. *
  470. * Return: QDF Status
  471. */
  472. static inline
  473. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  474. bool *value)
  475. {
  476. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  477. }
  478. /**
  479. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  480. * @psoc: pointer to psoc object
  481. * @value: Value that needs to be set from the caller
  482. *
  483. * Inline UCFG API to be used by HDD/OSIF callers
  484. *
  485. * Return: QDF Status
  486. */
  487. static inline
  488. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  489. int *value)
  490. {
  491. return wlan_mlme_get_sap_max_peers(psoc, value);
  492. }
  493. /**
  494. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  495. * @psoc: pointer to psoc object
  496. * @value: Value that needs to be set from the caller
  497. *
  498. * Inline UCFG API to be used by HDD/OSIF callers
  499. *
  500. * Return: QDF Status
  501. */
  502. static inline
  503. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  504. {
  505. return wlan_mlme_set_sap_max_peers(psoc, value);
  506. }
  507. /**
  508. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  509. * @psoc: pointer to psoc object
  510. * @value: Value that needs to be set from the caller
  511. *
  512. * Inline UCFG API to be used by HDD/OSIF callers
  513. *
  514. * Return: QDF Status
  515. */
  516. static inline
  517. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  518. int *value)
  519. {
  520. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  521. }
  522. /**
  523. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  524. * reorder buffs
  525. * @psoc: pointer to psoc object
  526. * @value: Value that needs to be set from the caller
  527. *
  528. * Inline UCFG API to be used by HDD/OSIF callers
  529. *
  530. * Return: QDF Status
  531. */
  532. static inline
  533. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  534. *psoc, int *value)
  535. {
  536. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  537. }
  538. /**
  539. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  540. * switch beacon count
  541. * @psoc: pointer to psoc object
  542. * @value: Value that needs to be set from the caller
  543. *
  544. * Inline UCFG API to be used by HDD/OSIF callers
  545. *
  546. * Return: QDF Status
  547. */
  548. static inline
  549. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  550. int *value)
  551. {
  552. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  553. }
  554. /**
  555. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  556. * @psoc: pointer to psoc object
  557. * @value: Value that needs to be set from the caller
  558. *
  559. * Inline UCFG API to be used by HDD/OSIF callers
  560. *
  561. * Return: QDF Status
  562. */
  563. static inline
  564. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  565. bool *value)
  566. {
  567. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  568. }
  569. /**
  570. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  571. * @psoc: pointer to psoc object
  572. * @value: Value that needs to be set from the caller
  573. *
  574. * Inline UCFG API to be used by HDD/OSIF callers
  575. *
  576. * Return: QDF Status
  577. */
  578. static inline
  579. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  580. bool *value)
  581. {
  582. return wlan_mlme_get_sap_internal_restart(psoc, value);
  583. }
  584. /**
  585. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  586. * interval
  587. * @psoc: pointer to psoc object
  588. * @value: Value that needs to be set from the caller
  589. *
  590. * Inline UCFG API to be used by HDD/OSIF callers
  591. *
  592. * Return: QDF Status
  593. */
  594. static inline
  595. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  596. *psoc, int *value)
  597. {
  598. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  599. }
  600. /**
  601. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  602. * switch rate enabled.
  603. * @psoc: pointer to psoc object
  604. * @value: Value that needs to be set from the caller
  605. *
  606. * Inline UCFG API to be used by HDD/OSIF callers
  607. *
  608. * Return: QDF Status
  609. */
  610. static inline
  611. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  612. *psoc, bool *value)
  613. {
  614. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  615. }
  616. /**
  617. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  618. * info for STA
  619. *
  620. * @psoc: pointer to psoc object
  621. * @value: pointer to the value which will be filled for the caller
  622. *
  623. * Inline UCFG API to be used by HDD/OSIF callers to get the
  624. * OCE STA feature enable value
  625. *
  626. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  627. */
  628. static inline
  629. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  630. bool *value)
  631. {
  632. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  633. }
  634. /**
  635. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  636. * info for SAP
  637. *
  638. * @psoc: pointer to psoc object
  639. * @value: pointer to the value which will be filled for the caller
  640. *
  641. * Inline UCFG API to be used by HDD/OSIF callers to get the
  642. * OCE SAP feature enable value
  643. *
  644. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  645. */
  646. static inline
  647. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  648. bool *value)
  649. {
  650. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  651. }
  652. /**
  653. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  654. * @psoc: pointer to psoc object
  655. * @value: pointer to the value which will be filled for the caller
  656. *
  657. * Inline UCFG API to be used by HDD/OSIF callers
  658. *
  659. * Return: QDF Status
  660. */
  661. static inline
  662. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  663. uint32_t *value)
  664. {
  665. return wlan_mlme_get_rts_threshold(psoc, value);
  666. }
  667. /**
  668. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  669. * @psoc: pointer to psoc object
  670. * @value: pointer to the value which will be filled for the caller
  671. *
  672. * Inline UCFG API to be used by HDD/OSIF callers
  673. *
  674. * Return: QDF Status
  675. */
  676. static inline
  677. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  678. uint32_t value)
  679. {
  680. return wlan_mlme_set_rts_threshold(psoc, value);
  681. }
  682. /**
  683. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  684. * config
  685. * @psoc: pointer to psoc object
  686. * @value: Value that needs to be set from the caller
  687. *
  688. * Inline UCFG API to be used by HDD/OSIF callers
  689. *
  690. * Return: QDF Status
  691. */
  692. static inline
  693. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  694. uint32_t *value)
  695. {
  696. return wlan_mlme_get_frag_threshold(psoc, value);
  697. }
  698. /**
  699. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  700. * @psoc: pointer to psoc object
  701. * @value: pointer to the value which will be filled for the caller
  702. *
  703. * Inline UCFG API to be used by HDD/OSIF callers
  704. *
  705. * Return: QDF Status
  706. */
  707. static inline
  708. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  709. uint32_t value)
  710. {
  711. return wlan_mlme_set_frag_threshold(psoc, value);
  712. }
  713. /**
  714. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  715. *
  716. * @psoc: pointer to psoc object
  717. * @value: pointer to the value which will be filled for the caller
  718. *
  719. * Inline UCFG API to be used by HDD/OSIF callers to get the
  720. * fils enable value
  721. *
  722. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  723. */
  724. static inline
  725. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  726. bool *value)
  727. {
  728. return wlan_mlme_get_fils_enabled_info(psoc, value);
  729. }
  730. /**
  731. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  732. *
  733. * @psoc: pointer to psoc object
  734. * @value: value that needs to be set from the caller
  735. *
  736. * Inline UCFG API to be used by HDD/OSIF callers to set the
  737. * fils enable value
  738. *
  739. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  740. */
  741. static inline
  742. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  743. bool value)
  744. {
  745. return wlan_mlme_set_fils_enabled_info(psoc, value);
  746. }
  747. /**
  748. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  749. *
  750. * @psoc: pointer to psoc object
  751. * @value: value that needs to be set from the caller
  752. *
  753. * Inline UCFG API to be used by HDD/OSIF callers to set the
  754. * enable bcast probe resp info
  755. *
  756. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  757. */
  758. static inline
  759. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  760. bool value)
  761. {
  762. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  763. }
  764. #endif /* _WLAN_MLME_UCFG_API_H_ */