wlan_mlme_ucfg_api.h 26 KB

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