wlan_mlme_ucfg_api.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  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_band_capability() - Get the Band capability config
  141. * @psoc: pointer to psoc object
  142. * @band_capability: Pointer to the variable from caller
  143. *
  144. * Return: QDF Status
  145. */
  146. static inline
  147. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  148. uint8_t *band_capability)
  149. {
  150. return wlan_mlme_get_band_capability(psoc, band_capability);
  151. }
  152. /**
  153. * ucfg_mlme_set_band_capability() - Set the Band capability config
  154. * @psoc: pointer to psoc object
  155. * @band_capability: Value to be set from the caller
  156. *
  157. * Return: QDF Status
  158. */
  159. static inline
  160. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  161. uint8_t band_capability)
  162. {
  163. return wlan_mlme_set_band_capability(psoc, band_capability);
  164. }
  165. /**
  166. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  167. * more param
  168. * @psoc: pointer to psoc object
  169. * @value: Value that needs to be set from the caller
  170. *
  171. * Inline UCFG API to be used by HDD/OSIF callers
  172. *
  173. * Return: QDF Status
  174. */
  175. static inline
  176. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  177. bool *value)
  178. {
  179. return wlan_mlme_get_acs_with_more_param(psoc, value);
  180. }
  181. /**
  182. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  183. * @psoc: pointer to psoc object
  184. * @value: Value that needs to be set from the caller
  185. *
  186. * Inline UCFG API to be used by HDD/OSIF callers
  187. *
  188. * Return: QDF Status
  189. */
  190. static inline
  191. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  192. uint32_t *value)
  193. {
  194. return wlan_mlme_get_auto_channel_weight(psoc, value);
  195. }
  196. /**
  197. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  198. * vendor acs support
  199. * @psoc: pointer to psoc object
  200. * @value: Value that needs to be set from the caller
  201. *
  202. * Inline UCFG API to be used by HDD/OSIF callers
  203. *
  204. * Return: QDF Status
  205. */
  206. static inline
  207. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  208. bool *value)
  209. {
  210. return wlan_mlme_get_vendor_acs_support(psoc, value);
  211. }
  212. /**
  213. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  214. * acs policy
  215. * @psoc: pointer to psoc object
  216. * @value: Value that needs to be set from the caller
  217. *
  218. * Inline UCFG API to be used by HDD/OSIF callers
  219. *
  220. * Return: QDF Status
  221. */
  222. static inline QDF_STATUS
  223. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  224. bool *value)
  225. {
  226. return wlan_mlme_get_external_acs_policy(psoc, value);
  227. }
  228. /**
  229. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  230. * @psoc: pointer to psoc object
  231. * @value: Value that needs to be set from the caller
  232. *
  233. * Inline UCFG API to be used by HDD/OSIF callers
  234. *
  235. * Return: QDF Status
  236. */
  237. static inline
  238. QDF_STATUS
  239. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  240. bool *value)
  241. {
  242. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  243. }
  244. /**
  245. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  246. * @psoc: pointer to psoc object
  247. * @value: Value that needs to be set from the caller
  248. *
  249. * Inline UCFG API to be used by HDD/OSIF callers
  250. *
  251. * Return: QDF Status
  252. */
  253. static inline QDF_STATUS
  254. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *value)
  256. {
  257. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  258. }
  259. /**
  260. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  261. * MSDU size for VO
  262. * @psoc: pointer to psoc object
  263. * @value: Value that needs to be set from the caller
  264. *
  265. * Inline UCFG API to be used by HDD/OSIF callers
  266. *
  267. * Return: QDF Status
  268. */
  269. static inline QDF_STATUS
  270. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  271. uint16_t *value)
  272. {
  273. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  274. }
  275. /**
  276. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  277. * @psoc: pointer to psoc object
  278. * @value: Value that needs to be set from the caller
  279. *
  280. * Inline UCFG API to be used by HDD/OSIF callers
  281. *
  282. * Return: QDF Status
  283. */
  284. static inline QDF_STATUS
  285. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  286. uint32_t *value)
  287. {
  288. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  289. }
  290. /**
  291. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  292. * rate for VO
  293. * @psoc: pointer to psoc object
  294. * @value: Value that needs to be set from the caller
  295. *
  296. * Inline UCFG API to be used by HDD/OSIF callers
  297. *
  298. * Return: QDF Status
  299. */
  300. static inline QDF_STATUS
  301. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  302. uint32_t *value)
  303. {
  304. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  305. }
  306. /**
  307. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  308. * allowance for VO
  309. * @psoc: pointer to psoc object
  310. * @value: Value that needs to be set from the caller
  311. *
  312. * Inline UCFG API to be used by HDD/OSIF callers
  313. *
  314. * Return: QDF Status
  315. */
  316. static inline QDF_STATUS
  317. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  318. uint16_t *value)
  319. {
  320. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  321. }
  322. /**
  323. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  324. * interval for voice
  325. * @psoc: pointer to psoc object
  326. * @value: pointer to the value which will be filled for the caller
  327. *
  328. * Inline UCFG API to be used by HDD/OSIF callers
  329. *
  330. * Return: QDF Status
  331. */
  332. static inline QDF_STATUS
  333. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  334. uint32_t *value)
  335. {
  336. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  337. }
  338. /**
  339. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  340. * interval for voice
  341. * @psoc: pointer to psoc object
  342. * @value: Value that needs to be set from the caller
  343. *
  344. * Inline UCFG API to be used by HDD/OSIF callers
  345. *
  346. * Return: QDF Status
  347. */
  348. static inline QDF_STATUS
  349. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  350. uint32_t *value)
  351. {
  352. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  353. }
  354. /**
  355. *
  356. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  357. * override flag is set.
  358. * @psoc: pointer to psoc object
  359. * @sme_config - Sme config struct
  360. *
  361. * Inline UCFG API to be used by HDD/OSIF callers to call
  362. * the mlme function wlan_mlme_get_sap_inactivity_override
  363. *
  364. * Return: QDF Status
  365. */
  366. static inline
  367. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  368. bool *value)
  369. {
  370. wlan_mlme_get_sap_inactivity_override(psoc, value);
  371. }
  372. /**
  373. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  374. *
  375. * @psoc: pointer to psoc object
  376. * @value: Value that needs to be set from the caller
  377. *
  378. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  379. */
  380. static inline
  381. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  382. uint8_t *value)
  383. {
  384. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  385. }
  386. /**
  387. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  388. *
  389. * @psoc: pointer to psoc object
  390. * @value: Value that needs to be set from the caller
  391. *
  392. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  393. */
  394. static inline
  395. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  396. uint16_t *value)
  397. {
  398. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  399. }
  400. /**
  401. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  402. *
  403. * @psoc: pointer to psoc object
  404. * @value: Value that needs to be set from the caller
  405. *
  406. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  407. */
  408. static inline
  409. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  410. uint16_t *value)
  411. {
  412. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  413. }
  414. /**
  415. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  416. *
  417. * @psoc: pointer to psoc object
  418. * @session_id: vdev_id
  419. *
  420. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  421. */
  422. static inline
  423. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  424. uint8_t session_id)
  425. {
  426. return wlan_mlme_configure_chain_mask(psoc, session_id);
  427. }
  428. /*
  429. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  430. * @psoc: pointer to psoc object
  431. * @val: Pointer to the value which will be filled for the caller
  432. *
  433. * Return: QDF Status
  434. */
  435. QDF_STATUS
  436. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  437. uint32_t *val);
  438. /**
  439. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  440. * @psoc: pointer to psoc object
  441. * @val: Pointer to the value which will be filled for the caller
  442. *
  443. * Return: QDF Status
  444. */
  445. QDF_STATUS
  446. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  447. uint32_t *val);
  448. /**
  449. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  450. * @psoc: pointer to psoc object
  451. * @val: Pointer to the value which will be filled for the caller
  452. *
  453. * Return: QDF Status
  454. */
  455. QDF_STATUS
  456. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  457. uint32_t val);
  458. /**
  459. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  460. * @psoc: pointer to psoc object
  461. * @val: Pointer to the value which will be filled for the caller
  462. *
  463. * Return: QDF Status
  464. */
  465. QDF_STATUS
  466. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  467. uint8_t *val);
  468. /**
  469. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  470. * @psoc: pointer to psoc object
  471. * @val: Pointer to the value which will be filled for the caller
  472. *
  473. * Return: QDF Status
  474. */
  475. QDF_STATUS
  476. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  477. bool *val);
  478. /**
  479. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  480. * @psoc: pointer to psoc object
  481. * @val: Pointer to the value which will be filled for the caller
  482. *
  483. * Return: QDF Status
  484. */
  485. QDF_STATUS
  486. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  487. bool *val);
  488. /**
  489. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  490. * @psoc: pointer to psoc object
  491. * @val: Pointer to the value which will be filled for the caller
  492. *
  493. * Return: QDF Status
  494. */
  495. QDF_STATUS
  496. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  497. bool *val);
  498. /**
  499. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  500. * @psoc: pointer to psoc object
  501. * @val: Pointer to the value which will be filled for the caller
  502. *
  503. * Return: QDF Status
  504. */
  505. QDF_STATUS
  506. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  507. uint32_t *val);
  508. /**
  509. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  510. * @psoc: pointer to psoc object
  511. * @val: Pointer to enable/disable roaming offload
  512. *
  513. * Return: QDF Status
  514. */
  515. QDF_STATUS
  516. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  517. bool *val);
  518. /**
  519. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  520. * @psoc: pointer to psoc object
  521. * @val: enable/disable roaming offload
  522. *
  523. * Return: QDF Status
  524. */
  525. QDF_STATUS
  526. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  527. bool val);
  528. /**
  529. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  530. * @psoc: pointer to psoc object
  531. * @val: first scan bucket threshold
  532. *
  533. * Return: QDF Status
  534. */
  535. QDF_STATUS
  536. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  537. uint8_t *val);
  538. /**
  539. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  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. */
  547. static inline
  548. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  549. int value)
  550. {
  551. return wlan_mlme_set_sap_listen_interval(psoc, value);
  552. }
  553. /**
  554. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  555. * @psoc: pointer to psoc object
  556. * @value: Value that needs to be set from the caller
  557. *
  558. * Inline UCFG API to be used by HDD/OSIF callers
  559. *
  560. * Return: QDF Status
  561. */
  562. static inline
  563. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  564. int value)
  565. {
  566. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  567. }
  568. /**
  569. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  570. * @psoc: pointer to psoc object
  571. * @value: Value that needs to be set from the caller
  572. *
  573. * Inline UCFG API to be used by HDD/OSIF callers
  574. *
  575. * Return: QDF Status
  576. */
  577. static inline
  578. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  579. int value)
  580. {
  581. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  582. }
  583. /**
  584. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  585. * @psoc: pointer to psoc object
  586. * @value: Value that needs to be set from the caller
  587. *
  588. * Inline UCFG API to be used by HDD/OSIF callers
  589. *
  590. * Return: QDF Status
  591. */
  592. static inline
  593. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  594. bool *value)
  595. {
  596. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  597. }
  598. /**
  599. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  600. * @psoc: pointer to psoc object
  601. * @value: Value that needs to be set from the caller
  602. *
  603. * Inline UCFG API to be used by HDD/OSIF callers
  604. *
  605. * Return: QDF Status
  606. */
  607. static inline
  608. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  609. bool *value)
  610. {
  611. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  612. }
  613. /**
  614. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  615. * @psoc: pointer to psoc object
  616. * @value: Value that needs to be set from the caller
  617. *
  618. * Inline UCFG API to be used by HDD/OSIF callers
  619. *
  620. * Return: QDF Status
  621. */
  622. static inline
  623. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  624. int *value)
  625. {
  626. return wlan_mlme_get_sap_max_peers(psoc, value);
  627. }
  628. /**
  629. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  630. * @psoc: pointer to psoc object
  631. * @value: Value that needs to be set from the caller
  632. *
  633. * Inline UCFG API to be used by HDD/OSIF callers
  634. *
  635. * Return: QDF Status
  636. */
  637. static inline
  638. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  639. {
  640. return wlan_mlme_set_sap_max_peers(psoc, value);
  641. }
  642. /**
  643. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  644. * @psoc: pointer to psoc object
  645. * @value: Value that needs to be set from the caller
  646. *
  647. * Inline UCFG API to be used by HDD/OSIF callers
  648. *
  649. * Return: QDF Status
  650. */
  651. static inline
  652. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  653. int *value)
  654. {
  655. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  656. }
  657. /**
  658. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  659. * reorder buffs
  660. * @psoc: pointer to psoc object
  661. * @value: Value that needs to be set from the caller
  662. *
  663. * Inline UCFG API to be used by HDD/OSIF callers
  664. *
  665. * Return: QDF Status
  666. */
  667. static inline
  668. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  669. *psoc, int *value)
  670. {
  671. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  672. }
  673. /**
  674. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  675. * switch beacon count
  676. * @psoc: pointer to psoc object
  677. * @value: Value that needs to be set from the caller
  678. *
  679. * Inline UCFG API to be used by HDD/OSIF callers
  680. *
  681. * Return: QDF Status
  682. */
  683. static inline
  684. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  685. int *value)
  686. {
  687. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  688. }
  689. /**
  690. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  691. * @psoc: pointer to psoc object
  692. * @value: Value that needs to be set from the caller
  693. *
  694. * Inline UCFG API to be used by HDD/OSIF callers
  695. *
  696. * Return: QDF Status
  697. */
  698. static inline
  699. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  700. bool *value)
  701. {
  702. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  703. }
  704. /**
  705. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  706. * @psoc: pointer to psoc object
  707. * @value: Value that needs to be set from the caller
  708. *
  709. * Inline UCFG API to be used by HDD/OSIF callers
  710. *
  711. * Return: QDF Status
  712. */
  713. static inline
  714. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  715. bool *value)
  716. {
  717. return wlan_mlme_get_sap_internal_restart(psoc, value);
  718. }
  719. /**
  720. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  721. * interval
  722. * @psoc: pointer to psoc object
  723. * @value: Value that needs to be set from the caller
  724. *
  725. * Inline UCFG API to be used by HDD/OSIF callers
  726. *
  727. * Return: QDF Status
  728. */
  729. static inline
  730. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  731. *psoc, int *value)
  732. {
  733. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  734. }
  735. /**
  736. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  737. * switch rate enabled.
  738. * @psoc: pointer to psoc object
  739. * @value: Value that needs to be set from the caller
  740. *
  741. * Inline UCFG API to be used by HDD/OSIF callers
  742. *
  743. * Return: QDF Status
  744. */
  745. static inline
  746. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  747. *psoc, bool *value)
  748. {
  749. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  750. }
  751. /**
  752. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  753. * info for STA
  754. *
  755. * @psoc: pointer to psoc object
  756. * @value: pointer to the value which will be filled for the caller
  757. *
  758. * Inline UCFG API to be used by HDD/OSIF callers to get the
  759. * OCE STA feature enable value
  760. *
  761. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  762. */
  763. static inline
  764. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  765. bool *value)
  766. {
  767. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  768. }
  769. /**
  770. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  771. * info for SAP
  772. *
  773. * @psoc: pointer to psoc object
  774. * @value: pointer to the value which will be filled for the caller
  775. *
  776. * Inline UCFG API to be used by HDD/OSIF callers to get the
  777. * OCE SAP feature enable value
  778. *
  779. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  780. */
  781. static inline
  782. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  783. bool *value)
  784. {
  785. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  786. }
  787. /**
  788. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  789. * @psoc: pointer to psoc object
  790. * @value: pointer to the value which will be filled for the caller
  791. *
  792. * Inline UCFG API to be used by HDD/OSIF callers
  793. *
  794. * Return: QDF Status
  795. */
  796. static inline
  797. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  798. uint32_t *value)
  799. {
  800. return wlan_mlme_get_rts_threshold(psoc, value);
  801. }
  802. /**
  803. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  804. * @psoc: pointer to psoc object
  805. * @value: pointer to the value which will be filled for the caller
  806. *
  807. * Inline UCFG API to be used by HDD/OSIF callers
  808. *
  809. * Return: QDF Status
  810. */
  811. static inline
  812. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  813. uint32_t value)
  814. {
  815. return wlan_mlme_set_rts_threshold(psoc, value);
  816. }
  817. /**
  818. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  819. * config
  820. * @psoc: pointer to psoc object
  821. * @value: Value that needs to be set from the caller
  822. *
  823. * Inline UCFG API to be used by HDD/OSIF callers
  824. *
  825. * Return: QDF Status
  826. */
  827. static inline
  828. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  829. uint32_t *value)
  830. {
  831. return wlan_mlme_get_frag_threshold(psoc, value);
  832. }
  833. /**
  834. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  835. * @psoc: pointer to psoc object
  836. * @value: pointer to the value which will be filled for the caller
  837. *
  838. * Inline UCFG API to be used by HDD/OSIF callers
  839. *
  840. * Return: QDF Status
  841. */
  842. static inline
  843. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  844. uint32_t value)
  845. {
  846. return wlan_mlme_set_frag_threshold(psoc, value);
  847. }
  848. /**
  849. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  850. *
  851. * @psoc: pointer to psoc object
  852. * @value: pointer to the value which will be filled for the caller
  853. *
  854. * Inline UCFG API to be used by HDD/OSIF callers to get the
  855. * fils enable value
  856. *
  857. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  858. */
  859. static inline
  860. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  861. bool *value)
  862. {
  863. return wlan_mlme_get_fils_enabled_info(psoc, value);
  864. }
  865. /**
  866. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  867. *
  868. * @psoc: pointer to psoc object
  869. * @value: value that needs to be set from the caller
  870. *
  871. * Inline UCFG API to be used by HDD/OSIF callers to set the
  872. * fils enable value
  873. *
  874. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  875. */
  876. static inline
  877. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  878. bool value)
  879. {
  880. return wlan_mlme_set_fils_enabled_info(psoc, value);
  881. }
  882. /**
  883. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  884. *
  885. * @psoc: pointer to psoc object
  886. * @value: value that needs to be set from the caller
  887. *
  888. * Inline UCFG API to be used by HDD/OSIF callers to set the
  889. * enable bcast probe resp info
  890. *
  891. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  892. */
  893. static inline
  894. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  895. bool value)
  896. {
  897. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  898. }
  899. #endif /* _WLAN_MLME_UCFG_API_H_ */