wlan_mlme_ucfg_api.h 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425
  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. /**
  952. * ucfg_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  953. * cfg item
  954. * @psoc: psoc context
  955. * @value: data to be set
  956. *
  957. * Inline UCFG API to be used by HDD/OSIF callers
  958. *
  959. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  960. */
  961. static inline
  962. QDF_STATUS ucfg_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  963. uint8_t value)
  964. {
  965. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  966. }
  967. /**
  968. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  969. * cfg item
  970. * @psoc: psoc context
  971. * @value: data to be set
  972. *
  973. * Inline UCFG API to be used by HDD/OSIF callers
  974. *
  975. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  976. */
  977. static inline QDF_STATUS
  978. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  979. bool value)
  980. {
  981. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  982. }
  983. /**
  984. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  985. * cfg item
  986. * @psoc: psoc context
  987. * @value: pointer to get required data
  988. *
  989. * Inline UCFG API to be used by HDD/OSIF callers to get the
  990. * ignore_peer_ht_opmode flag value
  991. *
  992. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  993. */
  994. static inline QDF_STATUS
  995. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  996. bool *value)
  997. {
  998. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  999. }
  1000. /**
  1001. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1002. * support cap into cfg item
  1003. * @psoc: psoc context
  1004. * @value: data to be set
  1005. *
  1006. * Inline UCFG API to be used by HDD/OSIF callers
  1007. *
  1008. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1009. */
  1010. static inline QDF_STATUS
  1011. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1012. uint8_t value)
  1013. {
  1014. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1015. }
  1016. /**
  1017. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1018. * cfg item
  1019. * @psoc: psoc context
  1020. * @value: pointer to get required data
  1021. *
  1022. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1023. * ignore_peer_ht_opmode flag value
  1024. *
  1025. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1026. */
  1027. static inline QDF_STATUS
  1028. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1029. uint32_t *value)
  1030. {
  1031. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1032. }
  1033. /**
  1034. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1035. * cfg item
  1036. * @psoc: psoc context
  1037. * @value: data to be set
  1038. *
  1039. * Inline UCFG API to be used by HDD/OSIF callers
  1040. *
  1041. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1042. */
  1043. static inline QDF_STATUS
  1044. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1045. uint32_t value)
  1046. {
  1047. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1048. }
  1049. /**
  1050. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1051. * cfg item
  1052. * @psoc: psoc context
  1053. * @value: pointer to get required data
  1054. *
  1055. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1056. * ignore_peer_ht_opmode flag value
  1057. *
  1058. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1059. */
  1060. static inline QDF_STATUS
  1061. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1062. uint32_t *value)
  1063. {
  1064. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1065. }
  1066. /**
  1067. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1068. * cfg item
  1069. * @psoc: psoc context
  1070. * @value: data to be set
  1071. *
  1072. * Inline UCFG API to be used by HDD/OSIF callers
  1073. *
  1074. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1075. */
  1076. static inline QDF_STATUS
  1077. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1078. uint32_t value)
  1079. {
  1080. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1081. }
  1082. /**
  1083. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1084. * rate into cfg item
  1085. * @psoc: psoc context
  1086. * @value: data to be set
  1087. *
  1088. * Inline UCFG API to be used by HDD/OSIF callers
  1089. *
  1090. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1091. */
  1092. static inline QDF_STATUS
  1093. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1094. uint32_t value)
  1095. {
  1096. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1097. }
  1098. /**
  1099. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1100. * cfg item
  1101. * @psoc: psoc context
  1102. * @value: data to be set
  1103. *
  1104. * Inline UCFG API to be used by HDD/OSIF callers
  1105. *
  1106. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1107. */
  1108. static inline QDF_STATUS
  1109. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1110. uint32_t value)
  1111. {
  1112. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1113. }
  1114. /**
  1115. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1116. * cfg item
  1117. * @psoc: psoc context
  1118. * @value: data to be set
  1119. *
  1120. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1121. * ignore_peer_ht_opmode flag value
  1122. *
  1123. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1124. */
  1125. static inline QDF_STATUS
  1126. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1127. uint32_t *value)
  1128. {
  1129. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1130. }
  1131. /**
  1132. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1133. * cfg item
  1134. * @psoc: psoc context
  1135. * @value: data to be set
  1136. *
  1137. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1138. * ignore_peer_ht_opmode flag value
  1139. *
  1140. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1141. */
  1142. static inline QDF_STATUS
  1143. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1144. uint32_t value)
  1145. {
  1146. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1147. }
  1148. /**
  1149. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1150. * for 11ac
  1151. * @psoc: psoc context
  1152. * @value: data to be set
  1153. *
  1154. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1155. * ignore_peer_ht_opmode flag value
  1156. *
  1157. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1158. */
  1159. static inline QDF_STATUS
  1160. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1161. {
  1162. return wlan_mlme_get_vht_channel_width(psoc, value);
  1163. }
  1164. /**
  1165. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1166. * for 11ac
  1167. * @psoc: psoc context
  1168. * @value: data to be set
  1169. *
  1170. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1171. * ignore_peer_ht_opmode flag value
  1172. *
  1173. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1174. */
  1175. static inline QDF_STATUS
  1176. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1177. {
  1178. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1179. }
  1180. /**
  1181. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1182. * for 11ac
  1183. * @psoc: psoc context
  1184. * @value: data to be set
  1185. *
  1186. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1187. * ignore_peer_ht_opmode flag value
  1188. *
  1189. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1190. */
  1191. static inline QDF_STATUS
  1192. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1193. {
  1194. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1195. }
  1196. /**
  1197. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1198. * for 11ac
  1199. * @psoc: psoc context
  1200. * @value: data to be set
  1201. *
  1202. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1203. * ignore_peer_ht_opmode flag value
  1204. *
  1205. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1206. */
  1207. static inline QDF_STATUS
  1208. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1209. {
  1210. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1211. }
  1212. /**
  1213. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1214. * for 11ac
  1215. * @psoc: psoc context
  1216. * @value: data to be set
  1217. *
  1218. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1219. * ignore_peer_ht_opmode flag value
  1220. *
  1221. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1222. */
  1223. static inline QDF_STATUS
  1224. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1225. {
  1226. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1227. }
  1228. /**
  1229. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1230. * @psoc: psoc context
  1231. * @value: data to be set
  1232. *
  1233. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1234. * ignore_peer_ht_opmode flag value
  1235. *
  1236. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1237. */
  1238. static inline QDF_STATUS
  1239. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1240. {
  1241. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1242. }
  1243. /**
  1244. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1245. * @psoc: psoc context
  1246. * @value: data to be set
  1247. *
  1248. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1249. * ignore_peer_ht_opmode flag value
  1250. *
  1251. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1252. */
  1253. static inline QDF_STATUS
  1254. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1255. {
  1256. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1257. }
  1258. /**
  1259. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1260. * @psoc: psoc context
  1261. * @value: data to be set
  1262. *
  1263. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1264. * ignore_peer_ht_opmode flag value
  1265. *
  1266. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1267. */
  1268. static inline QDF_STATUS
  1269. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1270. {
  1271. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1272. }
  1273. /**
  1274. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1275. * @psoc: psoc context
  1276. * @value: data to be set
  1277. *
  1278. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1279. * ignore_peer_ht_opmode flag value
  1280. *
  1281. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1282. */
  1283. static inline QDF_STATUS
  1284. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1285. {
  1286. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1287. }
  1288. /**
  1289. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1290. * @psoc: psoc context
  1291. * @value: data to be set
  1292. *
  1293. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1294. * ignore_peer_ht_opmode flag value
  1295. *
  1296. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1297. */
  1298. static inline QDF_STATUS
  1299. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1300. {
  1301. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1302. }
  1303. /**
  1304. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1305. * @psoc: psoc context
  1306. * @value: data to be set
  1307. *
  1308. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1309. * ignore_peer_ht_opmode flag value
  1310. *
  1311. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1312. */
  1313. static inline QDF_STATUS
  1314. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1315. {
  1316. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1317. }
  1318. /**
  1319. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1320. * @psoc: psoc context
  1321. * @value: data to be set
  1322. *
  1323. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1324. * ignore_peer_ht_opmode flag value
  1325. *
  1326. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1327. */
  1328. static inline QDF_STATUS
  1329. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1330. {
  1331. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1332. }
  1333. #endif /* _WLAN_MLME_UCFG_API_H_ */