wlan_mlme_ucfg_api.h 24 KB

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