wlan_mlme_ucfg_api.h 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647
  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_dfs_master_capability() - Get the dfs master capability
  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_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  499. bool *val);
  500. /**
  501. * ucfg_mlme_get_pmkid_modes() - Get 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_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  509. uint32_t *val);
  510. /**
  511. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  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_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  519. uint32_t val);
  520. /**
  521. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  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_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  529. uint8_t *val);
  530. /**
  531. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  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_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  539. bool *val);
  540. /**
  541. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  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_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  549. bool *val);
  550. /**
  551. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  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_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  559. bool *val);
  560. /**
  561. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  562. * @psoc: pointer to psoc object
  563. * @val: Pointer to the value which will be filled for the caller
  564. *
  565. * Return: QDF Status
  566. */
  567. QDF_STATUS
  568. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  569. uint32_t *val);
  570. /**
  571. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  572. * @psoc: pointer to psoc object
  573. * @val: Pointer to enable/disable roaming offload
  574. *
  575. * Return: QDF Status
  576. */
  577. QDF_STATUS
  578. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  579. bool *val);
  580. /**
  581. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  582. * @psoc: pointer to psoc object
  583. * @val: enable/disable roaming offload
  584. *
  585. * Return: QDF Status
  586. */
  587. QDF_STATUS
  588. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  589. bool val);
  590. /**
  591. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  592. * @psoc: pointer to psoc object
  593. * @val: first scan bucket threshold
  594. *
  595. * Return: QDF Status
  596. */
  597. QDF_STATUS
  598. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  599. uint8_t *val);
  600. /**
  601. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  602. * @psoc: pointer to psoc object
  603. * @value: Value that needs to be set from the caller
  604. *
  605. * Inline UCFG API to be used by HDD/OSIF callers
  606. *
  607. * Return: QDF Status
  608. */
  609. static inline
  610. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  611. int value)
  612. {
  613. return wlan_mlme_set_sap_listen_interval(psoc, value);
  614. }
  615. /**
  616. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  617. * @psoc: pointer to psoc object
  618. * @value: Value that needs to be set from the caller
  619. *
  620. * Inline UCFG API to be used by HDD/OSIF callers
  621. *
  622. * Return: QDF Status
  623. */
  624. static inline
  625. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  626. int value)
  627. {
  628. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  629. }
  630. /**
  631. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  632. * @psoc: pointer to psoc object
  633. * @value: Value that needs to be set from the caller
  634. *
  635. * Inline UCFG API to be used by HDD/OSIF callers
  636. *
  637. * Return: QDF Status
  638. */
  639. static inline
  640. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  641. int value)
  642. {
  643. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  644. }
  645. /**
  646. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  647. * @psoc: pointer to psoc object
  648. * @value: Value that needs to be set from the caller
  649. *
  650. * Inline UCFG API to be used by HDD/OSIF callers
  651. *
  652. * Return: QDF Status
  653. */
  654. static inline
  655. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  656. bool *value)
  657. {
  658. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  659. }
  660. /**
  661. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  662. * @psoc: pointer to psoc object
  663. * @value: Value that needs to be set from the caller
  664. *
  665. * Inline UCFG API to be used by HDD/OSIF callers
  666. *
  667. * Return: QDF Status
  668. */
  669. static inline
  670. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  671. bool *value)
  672. {
  673. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  674. }
  675. /**
  676. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  677. * @psoc: pointer to psoc object
  678. * @value: Value that needs to be set from the caller
  679. *
  680. * Inline UCFG API to be used by HDD/OSIF callers
  681. *
  682. * Return: QDF Status
  683. */
  684. static inline
  685. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  686. int *value)
  687. {
  688. return wlan_mlme_get_sap_max_peers(psoc, value);
  689. }
  690. /**
  691. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  692. * @psoc: pointer to psoc object
  693. * @value: Value that needs to be set from the caller
  694. *
  695. * Inline UCFG API to be used by HDD/OSIF callers
  696. *
  697. * Return: QDF Status
  698. */
  699. static inline
  700. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  701. {
  702. return wlan_mlme_set_sap_max_peers(psoc, value);
  703. }
  704. /**
  705. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  706. * @psoc: pointer to psoc object
  707. * @value: Value that needs to be set from the caller
  708. *
  709. * Inline UCFG API to be used by HDD/OSIF callers
  710. *
  711. * Return: QDF Status
  712. */
  713. static inline
  714. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  715. int *value)
  716. {
  717. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  718. }
  719. /**
  720. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  721. * reorder buffs
  722. * @psoc: pointer to psoc object
  723. * @value: Value that needs to be set from the caller
  724. *
  725. * Inline UCFG API to be used by HDD/OSIF callers
  726. *
  727. * Return: QDF Status
  728. */
  729. static inline
  730. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  731. *psoc, int *value)
  732. {
  733. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  734. }
  735. /**
  736. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  737. * switch beacon count
  738. * @psoc: pointer to psoc object
  739. * @value: Value that needs to be set from the caller
  740. *
  741. * Inline UCFG API to be used by HDD/OSIF callers
  742. *
  743. * Return: QDF Status
  744. */
  745. static inline
  746. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  747. int *value)
  748. {
  749. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  750. }
  751. /**
  752. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  753. * @psoc: pointer to psoc object
  754. * @value: Value that needs to be set from the caller
  755. *
  756. * Inline UCFG API to be used by HDD/OSIF callers
  757. *
  758. * Return: QDF Status
  759. */
  760. static inline
  761. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  762. bool *value)
  763. {
  764. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  765. }
  766. /**
  767. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  768. * @psoc: pointer to psoc object
  769. * @value: Value that needs to be set from the caller
  770. *
  771. * Inline UCFG API to be used by HDD/OSIF callers
  772. *
  773. * Return: QDF Status
  774. */
  775. static inline
  776. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  777. bool *value)
  778. {
  779. return wlan_mlme_get_sap_internal_restart(psoc, value);
  780. }
  781. /**
  782. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  783. * interval
  784. * @psoc: pointer to psoc object
  785. * @value: Value that needs to be set from the caller
  786. *
  787. * Inline UCFG API to be used by HDD/OSIF callers
  788. *
  789. * Return: QDF Status
  790. */
  791. static inline
  792. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  793. *psoc, int *value)
  794. {
  795. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  796. }
  797. /**
  798. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  799. * switch rate enabled.
  800. * @psoc: pointer to psoc object
  801. * @value: Value that needs to be set from the caller
  802. *
  803. * Inline UCFG API to be used by HDD/OSIF callers
  804. *
  805. * Return: QDF Status
  806. */
  807. static inline
  808. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  809. *psoc, bool *value)
  810. {
  811. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  812. }
  813. /**
  814. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  815. * info for STA
  816. *
  817. * @psoc: pointer to psoc object
  818. * @value: pointer to the value which will be filled for the caller
  819. *
  820. * Inline UCFG API to be used by HDD/OSIF callers to get the
  821. * OCE STA feature enable value
  822. *
  823. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  824. */
  825. static inline
  826. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  827. bool *value)
  828. {
  829. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  830. }
  831. /**
  832. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  833. * info for SAP
  834. *
  835. * @psoc: pointer to psoc object
  836. * @value: pointer to the value which will be filled for the caller
  837. *
  838. * Inline UCFG API to be used by HDD/OSIF callers to get the
  839. * OCE SAP feature enable value
  840. *
  841. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  842. */
  843. static inline
  844. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  845. bool *value)
  846. {
  847. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  848. }
  849. /**
  850. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  851. * @psoc: pointer to psoc object
  852. * @value: pointer to the value which will be filled for the caller
  853. *
  854. * Inline UCFG API to be used by HDD/OSIF callers
  855. *
  856. * Return: QDF Status
  857. */
  858. static inline
  859. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  860. uint32_t *value)
  861. {
  862. return wlan_mlme_get_rts_threshold(psoc, value);
  863. }
  864. /**
  865. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  866. * @psoc: pointer to psoc object
  867. * @value: pointer to the value which will be filled for the caller
  868. *
  869. * Inline UCFG API to be used by HDD/OSIF callers
  870. *
  871. * Return: QDF Status
  872. */
  873. static inline
  874. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  875. uint32_t value)
  876. {
  877. return wlan_mlme_set_rts_threshold(psoc, value);
  878. }
  879. /**
  880. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  881. * config
  882. * @psoc: pointer to psoc object
  883. * @value: Value that needs to be set from the caller
  884. *
  885. * Inline UCFG API to be used by HDD/OSIF callers
  886. *
  887. * Return: QDF Status
  888. */
  889. static inline
  890. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  891. uint32_t *value)
  892. {
  893. return wlan_mlme_get_frag_threshold(psoc, value);
  894. }
  895. /**
  896. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  897. * @psoc: pointer to psoc object
  898. * @value: pointer to the value which will be filled for the caller
  899. *
  900. * Inline UCFG API to be used by HDD/OSIF callers
  901. *
  902. * Return: QDF Status
  903. */
  904. static inline
  905. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  906. uint32_t value)
  907. {
  908. return wlan_mlme_set_frag_threshold(psoc, value);
  909. }
  910. /**
  911. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  912. *
  913. * @psoc: pointer to psoc object
  914. * @value: pointer to the value which will be filled for the caller
  915. *
  916. * Inline UCFG API to be used by HDD/OSIF callers to get the
  917. * fils enable value
  918. *
  919. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  920. */
  921. static inline
  922. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  923. bool *value)
  924. {
  925. return wlan_mlme_get_fils_enabled_info(psoc, value);
  926. }
  927. /**
  928. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  929. *
  930. * @psoc: pointer to psoc object
  931. * @value: value that needs to be set from the caller
  932. *
  933. * Inline UCFG API to be used by HDD/OSIF callers to set the
  934. * fils enable value
  935. *
  936. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  937. */
  938. static inline
  939. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  940. bool value)
  941. {
  942. return wlan_mlme_set_fils_enabled_info(psoc, value);
  943. }
  944. /**
  945. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  946. *
  947. * @psoc: pointer to psoc object
  948. * @value: value that needs to be set from the caller
  949. *
  950. * Inline UCFG API to be used by HDD/OSIF callers to set the
  951. * enable bcast probe resp info
  952. *
  953. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  954. */
  955. static inline
  956. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  957. bool value)
  958. {
  959. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  960. }
  961. /**
  962. * ucfg_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  963. * cfg item
  964. * @psoc: psoc context
  965. * @value: data to be set
  966. *
  967. * Inline UCFG API to be used by HDD/OSIF callers
  968. *
  969. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  970. */
  971. static inline
  972. QDF_STATUS ucfg_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  973. uint8_t value)
  974. {
  975. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  976. }
  977. /**
  978. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  979. * cfg item
  980. * @psoc: psoc context
  981. * @value: data to be set
  982. *
  983. * Inline UCFG API to be used by HDD/OSIF callers
  984. *
  985. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  986. */
  987. static inline
  988. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  989. uint8_t *value)
  990. {
  991. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  992. }
  993. /**
  994. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  995. * cfg item
  996. * @psoc: psoc context
  997. * @value: data to be set
  998. *
  999. * Inline UCFG API to be used by HDD/OSIF callers
  1000. *
  1001. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1002. */
  1003. static inline QDF_STATUS
  1004. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1005. bool value)
  1006. {
  1007. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1008. }
  1009. /**
  1010. * ucfg_mlme_cfg_get_short_gi_160_mhz() - gets basic set SHORT GI 160MHZ from
  1011. * cfg item
  1012. * @psoc: psoc context
  1013. * @value: data to be set
  1014. *
  1015. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1016. * ignore_peer_ht_opmode flag value
  1017. *
  1018. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1019. */
  1020. static inline QDF_STATUS
  1021. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1022. bool *value)
  1023. {
  1024. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1025. }
  1026. /**
  1027. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1028. * cfg item
  1029. * @psoc: psoc context
  1030. * @value: data to be set
  1031. *
  1032. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1033. * ignore_peer_ht_opmode flag value
  1034. *
  1035. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1036. */
  1037. static inline QDF_STATUS
  1038. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1039. bool value)
  1040. {
  1041. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1042. }
  1043. /**
  1044. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1045. * cfg item
  1046. * @psoc: psoc context
  1047. * @value: pointer to get required data
  1048. *
  1049. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1050. * ignore_peer_ht_opmode flag value
  1051. *
  1052. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1053. */
  1054. static inline QDF_STATUS
  1055. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1056. bool *value)
  1057. {
  1058. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1059. }
  1060. /**
  1061. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht tx stbc from
  1062. * cfg item
  1063. * @psoc: psoc context
  1064. * @value: pointer to get required data
  1065. *
  1066. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1067. * ignore_peer_ht_opmode flag value
  1068. *
  1069. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1070. */
  1071. static inline QDF_STATUS
  1072. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1073. bool *value)
  1074. {
  1075. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1076. }
  1077. /**
  1078. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1079. * support cap into cfg item
  1080. * @psoc: psoc context
  1081. * @value: data to be set
  1082. *
  1083. * Inline UCFG API to be used by HDD/OSIF callers
  1084. *
  1085. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1086. */
  1087. static inline QDF_STATUS
  1088. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1089. uint8_t value)
  1090. {
  1091. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1092. }
  1093. /**
  1094. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1095. * support cap into cfg item
  1096. * @psoc: psoc context
  1097. * @value: data to be set
  1098. *
  1099. * Inline UCFG API to be used by HDD/OSIF callers
  1100. *
  1101. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1102. */
  1103. static inline QDF_STATUS
  1104. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1105. uint8_t *value)
  1106. {
  1107. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1108. }
  1109. /**
  1110. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1111. * cfg item
  1112. * @psoc: psoc context
  1113. * @value: pointer to get required data
  1114. *
  1115. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1116. * ignore_peer_ht_opmode flag value
  1117. *
  1118. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1119. */
  1120. static inline QDF_STATUS
  1121. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1122. uint32_t *value)
  1123. {
  1124. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1125. }
  1126. /**
  1127. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1128. * cfg item
  1129. * @psoc: psoc context
  1130. * @value: data to be set
  1131. *
  1132. * Inline UCFG API to be used by HDD/OSIF callers
  1133. *
  1134. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1135. */
  1136. static inline QDF_STATUS
  1137. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1138. uint32_t value)
  1139. {
  1140. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1141. }
  1142. /**
  1143. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1144. * cfg item
  1145. * @psoc: psoc context
  1146. * @value: pointer to get required data
  1147. *
  1148. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1149. * ignore_peer_ht_opmode flag value
  1150. *
  1151. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1152. */
  1153. static inline QDF_STATUS
  1154. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1155. uint32_t *value)
  1156. {
  1157. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1158. }
  1159. /**
  1160. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1161. * cfg item
  1162. * @psoc: psoc context
  1163. * @value: data to be set
  1164. *
  1165. * Inline UCFG API to be used by HDD/OSIF callers
  1166. *
  1167. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1168. */
  1169. static inline QDF_STATUS
  1170. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1171. uint32_t value)
  1172. {
  1173. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1174. }
  1175. /**
  1176. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1177. * rate into cfg item
  1178. * @psoc: psoc context
  1179. * @value: data to be set
  1180. *
  1181. * Inline UCFG API to be used by HDD/OSIF callers
  1182. *
  1183. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1184. */
  1185. static inline QDF_STATUS
  1186. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1187. uint32_t value)
  1188. {
  1189. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1190. }
  1191. /**
  1192. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1193. * cfg item
  1194. * @psoc: psoc context
  1195. * @value: data to be set
  1196. *
  1197. * Inline UCFG API to be used by HDD/OSIF callers
  1198. *
  1199. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1200. */
  1201. static inline QDF_STATUS
  1202. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1203. uint32_t value)
  1204. {
  1205. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1206. }
  1207. /**
  1208. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1209. * cfg item
  1210. * @psoc: psoc context
  1211. * @value: data to be set
  1212. *
  1213. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1214. * ignore_peer_ht_opmode flag value
  1215. *
  1216. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1217. */
  1218. static inline QDF_STATUS
  1219. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1220. uint32_t *value)
  1221. {
  1222. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1223. }
  1224. /**
  1225. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1226. * cfg item
  1227. * @psoc: psoc context
  1228. * @value: data to be set
  1229. *
  1230. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1231. * ignore_peer_ht_opmode flag value
  1232. *
  1233. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1234. */
  1235. static inline QDF_STATUS
  1236. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1237. uint32_t value)
  1238. {
  1239. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1240. }
  1241. /**
  1242. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1243. * for 11ac
  1244. * @psoc: psoc context
  1245. * @value: data to be set
  1246. *
  1247. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1248. * ignore_peer_ht_opmode flag value
  1249. *
  1250. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1251. */
  1252. static inline QDF_STATUS
  1253. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1254. {
  1255. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1256. }
  1257. /**
  1258. * ucfg_mlme_get_vht_enable_tx_su_beam() - gets enable enable_tx_su_beam
  1259. * for 11ac
  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_get_vht_enable_tx_su_beam(struct wlan_objmgr_psoc *psoc, bool *value)
  1270. {
  1271. return wlan_mlme_get_vht_enable_tx_su_beam(psoc, value);
  1272. }
  1273. /**
  1274. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1275. * for 11ac
  1276. * @psoc: psoc context
  1277. * @value: data to be set
  1278. *
  1279. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1280. * ignore_peer_ht_opmode flag value
  1281. *
  1282. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1283. */
  1284. static inline QDF_STATUS
  1285. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1286. {
  1287. return wlan_mlme_get_vht_channel_width(psoc, value);
  1288. }
  1289. /**
  1290. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1291. * for 11ac
  1292. * @psoc: psoc context
  1293. * @value: data to be set
  1294. *
  1295. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1296. * ignore_peer_ht_opmode flag value
  1297. *
  1298. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1299. */
  1300. static inline QDF_STATUS
  1301. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1302. {
  1303. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1304. }
  1305. /**
  1306. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1307. * for 11ac
  1308. * @psoc: psoc context
  1309. * @value: data to be set
  1310. *
  1311. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1312. * ignore_peer_ht_opmode flag value
  1313. *
  1314. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1315. */
  1316. static inline QDF_STATUS
  1317. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1318. {
  1319. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1320. }
  1321. /**
  1322. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1323. * for 11ac
  1324. * @psoc: psoc context
  1325. * @value: data to be set
  1326. *
  1327. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1328. * ignore_peer_ht_opmode flag value
  1329. *
  1330. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1331. */
  1332. static inline QDF_STATUS
  1333. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1334. {
  1335. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1336. }
  1337. /**
  1338. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1339. * for 11ac
  1340. * @psoc: psoc context
  1341. * @value: data to be set
  1342. *
  1343. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1344. * ignore_peer_ht_opmode flag value
  1345. *
  1346. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1347. */
  1348. static inline QDF_STATUS
  1349. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1350. {
  1351. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1352. }
  1353. /**
  1354. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1355. * @psoc: psoc context
  1356. * @value: data to be set
  1357. *
  1358. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1359. * ignore_peer_ht_opmode flag value
  1360. *
  1361. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1362. */
  1363. static inline QDF_STATUS
  1364. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1365. {
  1366. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1367. }
  1368. /**
  1369. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1370. * @psoc: psoc context
  1371. * @value: data to be set
  1372. *
  1373. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1374. * ignore_peer_ht_opmode flag value
  1375. *
  1376. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1377. */
  1378. static inline QDF_STATUS
  1379. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1380. {
  1381. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1382. }
  1383. /**
  1384. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1385. * @psoc: psoc context
  1386. * @value: data to be set
  1387. *
  1388. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1389. * ignore_peer_ht_opmode flag value
  1390. *
  1391. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1392. */
  1393. static inline QDF_STATUS
  1394. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1395. {
  1396. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1397. }
  1398. /**
  1399. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1400. * @psoc: psoc context
  1401. * @value: data to be set
  1402. *
  1403. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1404. * ignore_peer_ht_opmode flag value
  1405. *
  1406. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1407. */
  1408. static inline QDF_STATUS
  1409. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1410. {
  1411. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1412. }
  1413. /**
  1414. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1415. * @psoc: psoc context
  1416. * @value: data to be set
  1417. *
  1418. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1419. * ignore_peer_ht_opmode flag value
  1420. *
  1421. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1422. */
  1423. static inline QDF_STATUS
  1424. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1425. {
  1426. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1427. }
  1428. /**
  1429. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1430. * @psoc: psoc context
  1431. * @value: data to be set
  1432. *
  1433. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1434. * ignore_peer_ht_opmode flag value
  1435. *
  1436. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1437. */
  1438. static inline QDF_STATUS
  1439. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1440. {
  1441. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1442. }
  1443. /**
  1444. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1445. * @psoc: psoc context
  1446. * @value: data to be set
  1447. *
  1448. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1449. * ignore_peer_ht_opmode flag value
  1450. *
  1451. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1452. */
  1453. static inline QDF_STATUS
  1454. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1455. {
  1456. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1457. }
  1458. /**
  1459. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1460. * @psoc: psoc context
  1461. * @value: data to be set
  1462. *
  1463. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1464. * ignore_peer_ht_opmode flag value
  1465. *
  1466. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1467. */
  1468. static inline QDF_STATUS
  1469. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1470. struct wma_tgt_vht_cap *cfg)
  1471. {
  1472. return mlme_update_vht_cap(psoc, cfg);
  1473. }
  1474. /**
  1475. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1476. * streams supported for vht
  1477. * @psoc: psoc context
  1478. * @value: data to be set
  1479. *
  1480. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1481. * ignore_peer_ht_opmode flag value
  1482. *
  1483. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1484. */
  1485. static inline QDF_STATUS
  1486. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1487. {
  1488. return mlme_update_nss_vht_cap(psoc);
  1489. }
  1490. /**
  1491. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1492. * @psoc: pointer to psoc object
  1493. * @buf: buffer to get rates set
  1494. * @len: length of the buffer
  1495. * Return: QDF Status
  1496. */
  1497. QDF_STATUS
  1498. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1499. qdf_size_t *len);
  1500. /**
  1501. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1502. * @psoc: pointer to psoc object
  1503. * @buf: buffer to get rates set
  1504. * @len: length of the buffer
  1505. * Return: QDF Status
  1506. */
  1507. QDF_STATUS
  1508. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1509. qdf_size_t *len);
  1510. /**
  1511. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1512. * @psoc: pointer to psoc object
  1513. * @buf: caller buffer to copy mcs set info
  1514. * @len: length of the buffer
  1515. * Return: QDF Status
  1516. */
  1517. QDF_STATUS
  1518. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1519. qdf_size_t *len);
  1520. /**
  1521. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1522. * @psoc: pointer to psoc object
  1523. * @buf: caller buffer having mcs set info
  1524. * @len: length of the buffer
  1525. * Return: QDF Status
  1526. */
  1527. QDF_STATUS
  1528. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1529. qdf_size_t len);
  1530. /**
  1531. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1532. * @psoc: pointer to psoc object
  1533. * @buf: caller buffer to copy mcs set info
  1534. * @len: length of the buffer
  1535. * Return: QDF Status
  1536. */
  1537. QDF_STATUS
  1538. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1539. qdf_size_t *len);
  1540. #endif /* _WLAN_MLME_UCFG_API_H_ */