wlan_mlme_ucfg_api.h 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052
  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() - 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(struct wlan_objmgr_psoc *psoc,
  174. bool *prevent_link_down)
  175. {
  176. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  177. }
  178. /**
  179. * ucfg_mlme_get_select_5ghz_margin() - 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(struct wlan_objmgr_psoc *psoc,
  187. uint8_t *select_5ghz_margin)
  188. {
  189. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  190. }
  191. /**
  192. * ucfg_mlme_get_crash_inject() - 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(struct wlan_objmgr_psoc *psoc,
  200. bool *crash_inject)
  201. {
  202. return wlan_mlme_get_crash_inject(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_self_recovery() - Get the self recovery config
  219. * @psoc: pointer to psoc object
  220. * @self_recovery: Pointer to the variable from caller
  221. *
  222. * Return: QDF Status
  223. */
  224. static inline
  225. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  226. bool *self_recovery)
  227. {
  228. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  229. }
  230. /**
  231. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  232. * @psoc: pointer to psoc object
  233. * @sub_20_chan_width: Pointer to the variable from caller
  234. *
  235. * Return: QDF Status
  236. */
  237. static inline
  238. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  239. uint8_t *sub_20_chan_width)
  240. {
  241. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  242. }
  243. /**
  244. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  245. * @psoc: pointer to psoc object
  246. * @fw_timeout_crash: Pointer to the variable from caller
  247. *
  248. * Return: QDF Status
  249. */
  250. static inline
  251. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  252. bool *fw_timeout_crash)
  253. {
  254. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  255. }
  256. /**
  257. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  258. * @psoc: pointer to psoc object
  259. * @ito_repeat_count: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. static inline
  264. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  265. uint8_t *ito_repeat_count)
  266. {
  267. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  268. }
  269. /**
  270. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  271. * more param
  272. * @psoc: pointer to psoc object
  273. * @value: Value that needs to be set from the caller
  274. *
  275. * Inline UCFG API to be used by HDD/OSIF callers
  276. *
  277. * Return: QDF Status
  278. */
  279. static inline
  280. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  281. bool *value)
  282. {
  283. return wlan_mlme_get_acs_with_more_param(psoc, value);
  284. }
  285. /**
  286. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  287. * @psoc: pointer to psoc object
  288. * @value: Value that needs to be set from the caller
  289. *
  290. * Inline UCFG API to be used by HDD/OSIF callers
  291. *
  292. * Return: QDF Status
  293. */
  294. static inline
  295. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  296. uint32_t *value)
  297. {
  298. return wlan_mlme_get_auto_channel_weight(psoc, value);
  299. }
  300. /**
  301. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  302. * vendor acs support
  303. * @psoc: pointer to psoc object
  304. * @value: Value that needs to be set from the caller
  305. *
  306. * Inline UCFG API to be used by HDD/OSIF callers
  307. *
  308. * Return: QDF Status
  309. */
  310. static inline
  311. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  312. bool *value)
  313. {
  314. return wlan_mlme_get_vendor_acs_support(psoc, value);
  315. }
  316. /**
  317. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  318. * acs policy
  319. * @psoc: pointer to psoc object
  320. * @value: Value that needs to be set from the caller
  321. *
  322. * Inline UCFG API to be used by HDD/OSIF callers
  323. *
  324. * Return: QDF Status
  325. */
  326. static inline QDF_STATUS
  327. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  328. bool *value)
  329. {
  330. return wlan_mlme_get_external_acs_policy(psoc, value);
  331. }
  332. /**
  333. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  334. * @psoc: pointer to psoc object
  335. * @value: Value that needs to be set from the caller
  336. *
  337. * Inline UCFG API to be used by HDD/OSIF callers
  338. *
  339. * Return: QDF Status
  340. */
  341. static inline
  342. QDF_STATUS
  343. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  344. bool *value)
  345. {
  346. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  347. }
  348. /**
  349. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  350. * @psoc: pointer to psoc object
  351. * @value: Value that needs to be set from the caller
  352. *
  353. * Inline UCFG API to be used by HDD/OSIF callers
  354. *
  355. * Return: QDF Status
  356. */
  357. static inline QDF_STATUS
  358. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  359. uint8_t *value)
  360. {
  361. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  362. }
  363. /**
  364. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  365. * MSDU size for VO
  366. * @psoc: pointer to psoc object
  367. * @value: Value that needs to be set from the caller
  368. *
  369. * Inline UCFG API to be used by HDD/OSIF callers
  370. *
  371. * Return: QDF Status
  372. */
  373. static inline QDF_STATUS
  374. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  375. uint16_t *value)
  376. {
  377. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  378. }
  379. /**
  380. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  381. * @psoc: pointer to psoc object
  382. * @value: Value that needs to be set from the caller
  383. *
  384. * Inline UCFG API to be used by HDD/OSIF callers
  385. *
  386. * Return: QDF Status
  387. */
  388. static inline QDF_STATUS
  389. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  390. uint32_t *value)
  391. {
  392. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  393. }
  394. /**
  395. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  396. * rate for VO
  397. * @psoc: pointer to psoc object
  398. * @value: Value that needs to be set from the caller
  399. *
  400. * Inline UCFG API to be used by HDD/OSIF callers
  401. *
  402. * Return: QDF Status
  403. */
  404. static inline QDF_STATUS
  405. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  406. uint32_t *value)
  407. {
  408. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  409. }
  410. /**
  411. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  412. * allowance for VO
  413. * @psoc: pointer to psoc object
  414. * @value: Value that needs to be set from the caller
  415. *
  416. * Inline UCFG API to be used by HDD/OSIF callers
  417. *
  418. * Return: QDF Status
  419. */
  420. static inline QDF_STATUS
  421. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  422. uint16_t *value)
  423. {
  424. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  425. }
  426. /**
  427. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  428. * interval for voice
  429. * @psoc: pointer to psoc object
  430. * @value: pointer to the value which will be filled for the caller
  431. *
  432. * Inline UCFG API to be used by HDD/OSIF callers
  433. *
  434. * Return: QDF Status
  435. */
  436. static inline QDF_STATUS
  437. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  438. uint32_t *value)
  439. {
  440. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  441. }
  442. /**
  443. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  444. * interval for voice
  445. * @psoc: pointer to psoc object
  446. * @value: Value that needs to be set from the caller
  447. *
  448. * Inline UCFG API to be used by HDD/OSIF callers
  449. *
  450. * Return: QDF Status
  451. */
  452. static inline QDF_STATUS
  453. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  454. uint32_t *value)
  455. {
  456. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  457. }
  458. /**
  459. *
  460. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  461. * override flag is set.
  462. * @psoc: pointer to psoc object
  463. * @sme_config - Sme config struct
  464. *
  465. * Inline UCFG API to be used by HDD/OSIF callers to call
  466. * the mlme function wlan_mlme_get_sap_inactivity_override
  467. *
  468. * Return: QDF Status
  469. */
  470. static inline
  471. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  472. bool *value)
  473. {
  474. wlan_mlme_get_sap_inactivity_override(psoc, value);
  475. }
  476. /**
  477. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  478. *
  479. * @psoc: pointer to psoc object
  480. * @value: Value that needs to be set from the caller
  481. *
  482. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  483. */
  484. static inline
  485. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  486. uint8_t *value)
  487. {
  488. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  489. }
  490. /**
  491. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  492. *
  493. * @psoc: pointer to psoc object
  494. * @value: Value that needs to be set from the caller
  495. *
  496. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  497. */
  498. static inline
  499. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  500. uint16_t *value)
  501. {
  502. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  503. }
  504. /**
  505. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  506. *
  507. * @psoc: pointer to psoc object
  508. * @value: Value that needs to be set from the caller
  509. *
  510. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  511. */
  512. static inline
  513. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  514. uint16_t *value)
  515. {
  516. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  517. }
  518. /**
  519. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  520. *
  521. * @psoc: pointer to psoc object
  522. * @session_id: vdev_id
  523. *
  524. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  525. */
  526. static inline
  527. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  528. uint8_t session_id)
  529. {
  530. return wlan_mlme_configure_chain_mask(psoc, session_id);
  531. }
  532. /*
  533. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  534. * @psoc: pointer to psoc object
  535. * @val: Pointer to the value which will be filled for the caller
  536. *
  537. * Return: QDF Status
  538. */
  539. QDF_STATUS
  540. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  541. uint32_t *val);
  542. /*
  543. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  544. * @psoc: pointer to psoc object
  545. * @val: Pointer to the value which will be filled for the caller
  546. *
  547. * Return: QDF Status
  548. */
  549. QDF_STATUS
  550. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  551. bool *val);
  552. /**
  553. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  554. * @psoc: pointer to psoc object
  555. * @val: Pointer to the value which will be filled for the caller
  556. *
  557. * Return: QDF Status
  558. */
  559. QDF_STATUS
  560. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  561. uint32_t *val);
  562. /**
  563. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  564. * @psoc: pointer to psoc object
  565. * @val: Pointer to the value which will be filled for the caller
  566. *
  567. * Return: QDF Status
  568. */
  569. QDF_STATUS
  570. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  571. uint32_t val);
  572. /**
  573. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  574. * @psoc: pointer to psoc object
  575. * @out_mode: Pointer to the mode which will be filled for the caller
  576. *
  577. * Return: QDF Status
  578. */
  579. QDF_STATUS
  580. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  581. enum dot11p_mode *out_mode);
  582. /**
  583. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  584. * @psoc: pointer to psoc object
  585. * @val: Pointer to the value which will be filled for the caller
  586. *
  587. * Return: QDF Status
  588. */
  589. QDF_STATUS
  590. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  591. bool *val);
  592. /**
  593. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  594. * @psoc: pointer to psoc object
  595. * @val: Pointer to the value which will be filled for the caller
  596. *
  597. * Return: QDF Status
  598. */
  599. QDF_STATUS
  600. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  601. bool *val);
  602. /**
  603. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  604. * @psoc: pointer to psoc object
  605. * @val: Pointer to the value which will be filled for the caller
  606. *
  607. * Return: QDF Status
  608. */
  609. QDF_STATUS
  610. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  611. bool *val);
  612. /**
  613. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  614. * @psoc: pointer to psoc object
  615. * @val: Pointer to the value which will be filled for the caller
  616. *
  617. * Return: QDF Status
  618. */
  619. QDF_STATUS
  620. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  621. uint32_t *val);
  622. /**
  623. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  624. * @psoc: pointer to psoc object
  625. * @val: Pointer to enable/disable roaming offload
  626. *
  627. * Return: QDF Status
  628. */
  629. QDF_STATUS
  630. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  631. bool *val);
  632. /**
  633. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  634. * @psoc: pointer to psoc object
  635. * @val: enable/disable roaming offload
  636. *
  637. * Return: QDF Status
  638. */
  639. QDF_STATUS
  640. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  641. bool val);
  642. /**
  643. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  644. * @psoc: pointer to psoc object
  645. * @val: first scan bucket threshold
  646. *
  647. * Return: QDF Status
  648. */
  649. QDF_STATUS
  650. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  651. uint8_t *val);
  652. /**
  653. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  654. * @psoc: pointer to psoc object
  655. * @value: Value that needs to be set from the caller
  656. *
  657. * Inline UCFG API to be used by HDD/OSIF callers
  658. *
  659. * Return: QDF Status
  660. */
  661. static inline
  662. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  663. int value)
  664. {
  665. return wlan_mlme_set_sap_listen_interval(psoc, value);
  666. }
  667. /**
  668. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  669. * @psoc: pointer to psoc object
  670. * @value: Value that needs to be set from the caller
  671. *
  672. * Inline UCFG API to be used by HDD/OSIF callers
  673. *
  674. * Return: QDF Status
  675. */
  676. static inline
  677. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  678. int value)
  679. {
  680. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  681. }
  682. /**
  683. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  684. * @psoc: pointer to psoc object
  685. * @value: Value that needs to be set from the caller
  686. *
  687. * Inline UCFG API to be used by HDD/OSIF callers
  688. *
  689. * Return: QDF Status
  690. */
  691. static inline
  692. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  693. int value)
  694. {
  695. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  696. }
  697. /**
  698. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  699. * @psoc: pointer to psoc object
  700. * @value: Value that needs to be set from the caller
  701. *
  702. * Inline UCFG API to be used by HDD/OSIF callers
  703. *
  704. * Return: QDF Status
  705. */
  706. static inline
  707. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  708. bool *value)
  709. {
  710. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  711. }
  712. /**
  713. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  714. * @psoc: pointer to psoc object
  715. * @value: Value that needs to be set from the caller
  716. *
  717. * Inline UCFG API to be used by HDD/OSIF callers
  718. *
  719. * Return: QDF Status
  720. */
  721. static inline
  722. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  723. bool *value)
  724. {
  725. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  726. }
  727. /**
  728. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  729. * @psoc: pointer to psoc object
  730. * @value: Value that needs to be set from the caller
  731. *
  732. * Inline UCFG API to be used by HDD/OSIF callers
  733. *
  734. * Return: QDF Status
  735. */
  736. static inline
  737. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  738. int *value)
  739. {
  740. return wlan_mlme_get_sap_max_peers(psoc, value);
  741. }
  742. /**
  743. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  744. * @psoc: pointer to psoc object
  745. * @value: Value that needs to be set from the caller
  746. *
  747. * Inline UCFG API to be used by HDD/OSIF callers
  748. *
  749. * Return: QDF Status
  750. */
  751. static inline
  752. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  753. {
  754. return wlan_mlme_set_sap_max_peers(psoc, value);
  755. }
  756. /**
  757. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  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_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  767. int *value)
  768. {
  769. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  770. }
  771. /**
  772. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  773. * reorder buffs
  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_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  783. *psoc, int *value)
  784. {
  785. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  786. }
  787. /**
  788. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  789. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  799. int *value)
  800. {
  801. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  802. }
  803. /**
  804. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  805. * @psoc: pointer to psoc object
  806. * @value: Value that needs to be set from the caller
  807. *
  808. * Inline UCFG API to be used by HDD/OSIF callers
  809. *
  810. * Return: QDF Status
  811. */
  812. static inline
  813. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  814. bool *value)
  815. {
  816. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  817. }
  818. /**
  819. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  820. * @psoc: pointer to psoc object
  821. * @value: Value that needs to be set from the caller
  822. *
  823. * Inline UCFG API to be used by HDD/OSIF callers
  824. *
  825. * Return: QDF Status
  826. */
  827. static inline
  828. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  829. bool *value)
  830. {
  831. return wlan_mlme_get_sap_internal_restart(psoc, value);
  832. }
  833. /**
  834. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  835. * interval
  836. * @psoc: pointer to psoc object
  837. * @value: Value that needs to be set from the caller
  838. *
  839. * Inline UCFG API to be used by HDD/OSIF callers
  840. *
  841. * Return: QDF Status
  842. */
  843. static inline
  844. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  845. *psoc, int *value)
  846. {
  847. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  848. }
  849. /**
  850. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  851. * switch rate enabled.
  852. * @psoc: pointer to psoc object
  853. * @value: Value that needs to be set from the caller
  854. *
  855. * Inline UCFG API to be used by HDD/OSIF callers
  856. *
  857. * Return: QDF Status
  858. */
  859. static inline
  860. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  861. *psoc, bool *value)
  862. {
  863. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  864. }
  865. /**
  866. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  867. * info for STA
  868. *
  869. * @psoc: pointer to psoc object
  870. * @value: pointer to the value which will be filled for the caller
  871. *
  872. * Inline UCFG API to be used by HDD/OSIF callers to get the
  873. * OCE STA feature enable value
  874. *
  875. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  876. */
  877. static inline
  878. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  879. bool *value)
  880. {
  881. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  882. }
  883. /**
  884. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  885. * info for SAP
  886. *
  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 to get the
  891. * OCE SAP feature enable value
  892. *
  893. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  894. */
  895. static inline
  896. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  897. bool *value)
  898. {
  899. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  900. }
  901. /**
  902. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  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
  907. *
  908. * Return: QDF Status
  909. */
  910. static inline
  911. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  912. uint32_t *value)
  913. {
  914. return wlan_mlme_get_rts_threshold(psoc, value);
  915. }
  916. /**
  917. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  918. * @psoc: pointer to psoc object
  919. * @value: pointer to the value which will be filled for the caller
  920. *
  921. * Inline UCFG API to be used by HDD/OSIF callers
  922. *
  923. * Return: QDF Status
  924. */
  925. static inline
  926. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  927. uint32_t value)
  928. {
  929. return wlan_mlme_set_rts_threshold(psoc, value);
  930. }
  931. /**
  932. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  933. * config
  934. * @psoc: pointer to psoc object
  935. * @value: Value that needs to be set from the caller
  936. *
  937. * Inline UCFG API to be used by HDD/OSIF callers
  938. *
  939. * Return: QDF Status
  940. */
  941. static inline
  942. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  943. uint32_t *value)
  944. {
  945. return wlan_mlme_get_frag_threshold(psoc, value);
  946. }
  947. /**
  948. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  949. * @psoc: pointer to psoc object
  950. * @value: pointer to the value which will be filled for the caller
  951. *
  952. * Inline UCFG API to be used by HDD/OSIF callers
  953. *
  954. * Return: QDF Status
  955. */
  956. static inline
  957. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  958. uint32_t value)
  959. {
  960. return wlan_mlme_set_frag_threshold(psoc, value);
  961. }
  962. /**
  963. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  964. *
  965. * @psoc: pointer to psoc object
  966. * @value: pointer to the value which will be filled for the caller
  967. *
  968. * Inline UCFG API to be used by HDD/OSIF callers to get the
  969. * fils enable value
  970. *
  971. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  972. */
  973. static inline
  974. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  975. bool *value)
  976. {
  977. return wlan_mlme_get_fils_enabled_info(psoc, value);
  978. }
  979. /**
  980. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  981. *
  982. * @psoc: pointer to psoc object
  983. * @value: value that needs to be set from the caller
  984. *
  985. * Inline UCFG API to be used by HDD/OSIF callers to set the
  986. * fils enable value
  987. *
  988. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  989. */
  990. static inline
  991. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  992. bool value)
  993. {
  994. return wlan_mlme_set_fils_enabled_info(psoc, value);
  995. }
  996. /**
  997. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  998. * @psoc: pointer to psoc object
  999. * @value: value that needs to be set from the caller
  1000. *
  1001. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1002. * enable bcast probe resp info
  1003. *
  1004. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1005. */
  1006. static inline
  1007. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1008. bool value)
  1009. {
  1010. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1011. }
  1012. /**
  1013. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1014. * @psoc: psoc context
  1015. * @value: data to be set
  1016. *
  1017. * Inline UCFG API to be used by HDD/OSIF callers
  1018. *
  1019. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1020. */
  1021. static inline
  1022. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1023. uint8_t value)
  1024. {
  1025. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1026. }
  1027. /**
  1028. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1029. * cfg item
  1030. * @psoc: psoc context
  1031. * @value: data to be set
  1032. *
  1033. * Inline UCFG API to be used by HDD/OSIF callers
  1034. *
  1035. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1036. */
  1037. static inline
  1038. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1039. uint8_t *value)
  1040. {
  1041. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1042. }
  1043. /**
  1044. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1045. * cfg item
  1046. * @psoc: psoc context
  1047. * @value: data to be set
  1048. *
  1049. * Inline UCFG API to be used by HDD/OSIF callers
  1050. *
  1051. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1052. */
  1053. static inline QDF_STATUS
  1054. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1055. bool value)
  1056. {
  1057. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1058. }
  1059. /**
  1060. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1061. * @psoc: psoc context
  1062. * @value: data to be set
  1063. *
  1064. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1065. * ignore_peer_ht_opmode flag value
  1066. *
  1067. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1068. */
  1069. static inline QDF_STATUS
  1070. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1071. bool *value)
  1072. {
  1073. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1074. }
  1075. /**
  1076. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1077. * cfg item
  1078. * @psoc: psoc context
  1079. * @value: data to be set
  1080. *
  1081. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1082. * ignore_peer_ht_opmode flag value
  1083. *
  1084. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1085. */
  1086. static inline QDF_STATUS
  1087. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1088. bool value)
  1089. {
  1090. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1091. }
  1092. /**
  1093. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1094. * cfg item
  1095. * @psoc: psoc context
  1096. * @value: pointer to get required data
  1097. *
  1098. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1099. * ignore_peer_ht_opmode flag value
  1100. *
  1101. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1102. */
  1103. static inline QDF_STATUS
  1104. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1105. bool *value)
  1106. {
  1107. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1108. }
  1109. /**
  1110. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc 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_stbc(struct wlan_objmgr_psoc *psoc,
  1122. bool *value)
  1123. {
  1124. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1125. }
  1126. /**
  1127. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1128. * support cap into 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_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1138. uint8_t value)
  1139. {
  1140. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1141. }
  1142. /**
  1143. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1144. * support cap into cfg item
  1145. * @psoc: psoc context
  1146. * @value: data to be set
  1147. *
  1148. * Inline UCFG API to be used by HDD/OSIF callers
  1149. *
  1150. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1151. */
  1152. static inline QDF_STATUS
  1153. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1154. uint8_t *value)
  1155. {
  1156. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1157. }
  1158. /**
  1159. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1160. * cfg item
  1161. * @psoc: psoc context
  1162. * @value: pointer to get required data
  1163. *
  1164. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1165. * ignore_peer_ht_opmode flag value
  1166. *
  1167. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1168. */
  1169. static inline QDF_STATUS
  1170. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1171. uint32_t *value)
  1172. {
  1173. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1174. }
  1175. /**
  1176. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1177. * 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_mcs_map(struct wlan_objmgr_psoc *psoc,
  1187. uint32_t value)
  1188. {
  1189. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1190. }
  1191. /**
  1192. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1193. * cfg item
  1194. * @psoc: psoc context
  1195. * @value: pointer to get required data
  1196. *
  1197. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1198. * ignore_peer_ht_opmode flag value
  1199. *
  1200. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1201. */
  1202. static inline QDF_STATUS
  1203. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1204. uint32_t *value)
  1205. {
  1206. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1207. }
  1208. /**
  1209. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1210. * cfg item
  1211. * @psoc: psoc context
  1212. * @value: data to be set
  1213. *
  1214. * Inline UCFG API to be used by HDD/OSIF callers
  1215. *
  1216. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1217. */
  1218. static inline QDF_STATUS
  1219. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1220. uint32_t value)
  1221. {
  1222. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1223. }
  1224. /**
  1225. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1226. * rate into cfg item
  1227. * @psoc: psoc context
  1228. * @value: data to be set
  1229. *
  1230. * Inline UCFG API to be used by HDD/OSIF callers
  1231. *
  1232. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1233. */
  1234. static inline QDF_STATUS
  1235. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1236. uint32_t value)
  1237. {
  1238. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1239. }
  1240. /**
  1241. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1242. * cfg item
  1243. * @psoc: psoc context
  1244. * @value: data to be set
  1245. *
  1246. * Inline UCFG API to be used by HDD/OSIF callers
  1247. *
  1248. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1249. */
  1250. static inline QDF_STATUS
  1251. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1252. uint32_t value)
  1253. {
  1254. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1255. }
  1256. /**
  1257. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1258. * cfg item
  1259. * @psoc: psoc context
  1260. * @value: data to be set
  1261. *
  1262. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1263. * ignore_peer_ht_opmode flag value
  1264. *
  1265. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1266. */
  1267. static inline QDF_STATUS
  1268. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1269. uint32_t *value)
  1270. {
  1271. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1272. }
  1273. /**
  1274. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1275. * cfg item
  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_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1286. uint32_t value)
  1287. {
  1288. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1289. }
  1290. /**
  1291. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1292. * for 11ac
  1293. * @psoc: psoc context
  1294. * @value: data to be set
  1295. *
  1296. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1297. * ignore_peer_ht_opmode flag value
  1298. *
  1299. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1300. */
  1301. static inline QDF_STATUS
  1302. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1303. {
  1304. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1305. }
  1306. /**
  1307. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1308. * for 11ac
  1309. * @psoc: psoc context
  1310. * @value: data to be set
  1311. *
  1312. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1313. * ignore_peer_ht_opmode flag value
  1314. *
  1315. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1316. */
  1317. static inline QDF_STATUS
  1318. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1319. {
  1320. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1321. }
  1322. /**
  1323. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1324. * for 11ac
  1325. * @psoc: psoc context
  1326. * @value: data to be set
  1327. *
  1328. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1329. * ignore_peer_ht_opmode flag value
  1330. *
  1331. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1332. */
  1333. static inline QDF_STATUS
  1334. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1335. {
  1336. return wlan_mlme_get_vht_channel_width(psoc, value);
  1337. }
  1338. /**
  1339. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1340. * for 11ac
  1341. * @psoc: psoc context
  1342. * @value: data to be set
  1343. *
  1344. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1345. * ignore_peer_ht_opmode flag value
  1346. *
  1347. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1348. */
  1349. static inline QDF_STATUS
  1350. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1351. {
  1352. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1353. }
  1354. /**
  1355. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1356. * for 11ac
  1357. * @psoc: psoc context
  1358. * @value: data to be set
  1359. *
  1360. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1361. * ignore_peer_ht_opmode flag value
  1362. *
  1363. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1364. */
  1365. static inline QDF_STATUS
  1366. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1367. {
  1368. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1369. }
  1370. /**
  1371. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1372. * for 11ac
  1373. * @psoc: psoc context
  1374. * @value: data to be set
  1375. *
  1376. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1377. * ignore_peer_ht_opmode flag value
  1378. *
  1379. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1380. */
  1381. static inline QDF_STATUS
  1382. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1383. {
  1384. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1385. }
  1386. /**
  1387. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1388. * for 11ac
  1389. * @psoc: psoc context
  1390. * @value: data to be set
  1391. *
  1392. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1393. * ignore_peer_ht_opmode flag value
  1394. *
  1395. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1396. */
  1397. static inline QDF_STATUS
  1398. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1399. {
  1400. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1401. }
  1402. /**
  1403. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1404. * @psoc: psoc context
  1405. * @value: data to be set
  1406. *
  1407. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1408. * ignore_peer_ht_opmode flag value
  1409. *
  1410. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1411. */
  1412. static inline QDF_STATUS
  1413. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1414. {
  1415. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1416. }
  1417. /**
  1418. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1419. * @psoc: psoc context
  1420. * @value: data to be set
  1421. *
  1422. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1423. * ignore_peer_ht_opmode flag value
  1424. *
  1425. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1426. */
  1427. static inline QDF_STATUS
  1428. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1429. {
  1430. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1431. }
  1432. /**
  1433. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1434. * @psoc: psoc context
  1435. * @value: data to be set
  1436. *
  1437. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1438. * ignore_peer_ht_opmode flag value
  1439. *
  1440. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1441. */
  1442. static inline QDF_STATUS
  1443. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1444. {
  1445. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1446. }
  1447. /**
  1448. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1449. * @psoc: psoc context
  1450. * @value: data to be set
  1451. *
  1452. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1453. * ignore_peer_ht_opmode flag value
  1454. *
  1455. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1456. */
  1457. static inline QDF_STATUS
  1458. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1459. {
  1460. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1461. }
  1462. /**
  1463. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1464. * @psoc: psoc context
  1465. * @value: data to be set
  1466. *
  1467. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1468. * ignore_peer_ht_opmode flag value
  1469. *
  1470. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1471. */
  1472. static inline QDF_STATUS
  1473. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1474. {
  1475. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1476. }
  1477. /**
  1478. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1479. * @psoc: psoc context
  1480. * @value: data to be set
  1481. *
  1482. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1483. * ignore_peer_ht_opmode flag value
  1484. *
  1485. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1486. */
  1487. static inline QDF_STATUS
  1488. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1489. {
  1490. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1491. }
  1492. /**
  1493. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1494. * @psoc: psoc context
  1495. * @value: data to be set
  1496. *
  1497. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1498. * ignore_peer_ht_opmode flag value
  1499. *
  1500. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1501. */
  1502. static inline QDF_STATUS
  1503. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1504. {
  1505. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1506. }
  1507. /**
  1508. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1509. * @psoc: psoc context
  1510. * @value: data to be set
  1511. *
  1512. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1513. * ignore_peer_ht_opmode flag value
  1514. *
  1515. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1516. */
  1517. static inline QDF_STATUS
  1518. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1519. struct wma_tgt_vht_cap *cfg)
  1520. {
  1521. return mlme_update_vht_cap(psoc, cfg);
  1522. }
  1523. /**
  1524. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1525. * streams supported for vht
  1526. * @psoc: psoc context
  1527. * @value: data to be set
  1528. *
  1529. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1530. * ignore_peer_ht_opmode flag value
  1531. *
  1532. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1533. */
  1534. static inline QDF_STATUS
  1535. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1536. {
  1537. return mlme_update_nss_vht_cap(psoc);
  1538. }
  1539. /**
  1540. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1541. * @psoc: pointer to psoc object
  1542. * @buf: buffer to get rates set
  1543. * @len: length of the buffer
  1544. * Return: QDF Status
  1545. */
  1546. QDF_STATUS
  1547. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1548. qdf_size_t *len);
  1549. /**
  1550. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1551. * @psoc: pointer to psoc object
  1552. * @buf: buffer to get rates set
  1553. * @len: length of the buffer
  1554. * Return: QDF Status
  1555. */
  1556. QDF_STATUS
  1557. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1558. qdf_size_t *len);
  1559. /**
  1560. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1561. * @psoc: pointer to psoc object
  1562. * @buf: caller buffer to copy mcs set info
  1563. * @len: length of the buffer
  1564. * Return: QDF Status
  1565. */
  1566. QDF_STATUS
  1567. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1568. qdf_size_t *len);
  1569. /**
  1570. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1571. * @psoc: pointer to psoc object
  1572. * @buf: caller buffer having mcs set info
  1573. * @len: length of the buffer
  1574. * Return: QDF Status
  1575. */
  1576. QDF_STATUS
  1577. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1578. qdf_size_t len);
  1579. /**
  1580. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1581. * @psoc: pointer to psoc object
  1582. * @buf: caller buffer to copy mcs set info
  1583. * @len: length of the buffer
  1584. * Return: QDF Status
  1585. */
  1586. QDF_STATUS
  1587. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1588. qdf_size_t *len);
  1589. /**
  1590. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1591. * for VI
  1592. * @psoc: pointer to psoc object
  1593. * @value: Value that needs to be set from the caller
  1594. *
  1595. * Inline UCFG API to be used by HDD/OSIF callers
  1596. *
  1597. * Return: QDF Status
  1598. */
  1599. static inline QDF_STATUS
  1600. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  1601. uint8_t *value)
  1602. {
  1603. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  1604. }
  1605. /**
  1606. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1607. * MSDU size for VI
  1608. * @psoc: pointer to psoc object
  1609. * @value: Value that needs to be set from the caller
  1610. *
  1611. * Inline UCFG API to be used by HDD/OSIF callers
  1612. *
  1613. * Return: QDF Status
  1614. */
  1615. static inline QDF_STATUS
  1616. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1617. uint16_t *value)
  1618. {
  1619. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  1620. }
  1621. /**
  1622. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1623. * rate for VI
  1624. * @psoc: pointer to psoc object
  1625. * @value: Value that needs to be set from the caller
  1626. *
  1627. * Inline UCFG API to be used by HDD/OSIF callers
  1628. *
  1629. * Return: QDF Status
  1630. */
  1631. static inline QDF_STATUS
  1632. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1633. uint32_t *value)
  1634. {
  1635. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  1636. }
  1637. /**
  1638. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1639. * rate for VI
  1640. * @psoc: pointer to psoc object
  1641. * @value: Value that needs to be set from the caller
  1642. *
  1643. * Inline UCFG API to be used by HDD/OSIF callers
  1644. *
  1645. * Return: QDF Status
  1646. */
  1647. static inline QDF_STATUS
  1648. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1649. uint32_t *value)
  1650. {
  1651. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  1652. }
  1653. /**
  1654. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1655. * allowance for VI
  1656. * @psoc: pointer to psoc object
  1657. * @value: Value that needs to be set from the caller
  1658. *
  1659. * Inline UCFG API to be used by HDD/OSIF callers
  1660. *
  1661. * Return: QDF Status
  1662. */
  1663. static inline QDF_STATUS
  1664. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1665. {
  1666. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  1667. }
  1668. /**
  1669. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1670. * interval for video
  1671. * @psoc: pointer to psoc object
  1672. * @value: pointer to the value which will be filled for the caller
  1673. *
  1674. * Inline UCFG API to be used by HDD/OSIF callers
  1675. *
  1676. * Return: QDF Status
  1677. */
  1678. static inline QDF_STATUS
  1679. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1680. uint32_t *value)
  1681. {
  1682. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  1683. }
  1684. /**
  1685. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1686. * interval for video
  1687. * @psoc: pointer to psoc object
  1688. * @value: Value that needs to be set from the caller
  1689. *
  1690. * Inline UCFG API to be used by HDD/OSIF callers
  1691. *
  1692. * Return: QDF Status
  1693. */
  1694. static inline QDF_STATUS
  1695. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1696. uint32_t *value)
  1697. {
  1698. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  1699. }
  1700. /**
  1701. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1702. * for BE
  1703. * @psoc: pointer to psoc object
  1704. * @value: Value that needs to be set from the caller
  1705. *
  1706. * Inline UCFG API to be used by HDD/OSIF callers
  1707. *
  1708. * Return: QDF Status
  1709. */
  1710. static inline QDF_STATUS
  1711. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1712. {
  1713. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  1714. }
  1715. /**
  1716. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1717. * MSDU size for BE
  1718. * @psoc: pointer to psoc object
  1719. * @value: Value that needs to be set from the caller
  1720. *
  1721. * Inline UCFG API to be used by HDD/OSIF callers
  1722. *
  1723. * Return: QDF Status
  1724. */
  1725. static inline QDF_STATUS
  1726. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1727. uint16_t *value)
  1728. {
  1729. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  1730. }
  1731. /**
  1732. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1733. * rate for BE
  1734. * @psoc: pointer to psoc object
  1735. * @value: Value that needs to be set from the caller
  1736. *
  1737. * Inline UCFG API to be used by HDD/OSIF callers
  1738. *
  1739. * Return: QDF Status
  1740. */
  1741. static inline QDF_STATUS
  1742. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1743. uint32_t *value)
  1744. {
  1745. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  1746. }
  1747. /**
  1748. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1749. * rate for BE
  1750. * @psoc: pointer to psoc object
  1751. * @value: Value that needs to be set from the caller
  1752. *
  1753. * Inline UCFG API to be used by HDD/OSIF callers
  1754. *
  1755. * Return: QDF Status
  1756. */
  1757. static inline QDF_STATUS
  1758. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1759. uint32_t *value)
  1760. {
  1761. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  1762. }
  1763. /**
  1764. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1765. * allowance for BE
  1766. * @psoc: pointer to psoc object
  1767. * @value: Value that needs to be set from the caller
  1768. *
  1769. * Inline UCFG API to be used by HDD/OSIF callers
  1770. *
  1771. * Return: QDF Status
  1772. */
  1773. static inline QDF_STATUS
  1774. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1775. {
  1776. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  1777. }
  1778. /**
  1779. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1780. * interval for BE
  1781. * @psoc: pointer to psoc object
  1782. * @value: pointer to the value which will be filled for the caller
  1783. *
  1784. * Inline UCFG API to be used by HDD/OSIF callers
  1785. *
  1786. * Return: QDF Status
  1787. */
  1788. static inline QDF_STATUS
  1789. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1790. uint32_t *value)
  1791. {
  1792. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  1793. }
  1794. /**
  1795. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1796. * interval for BE
  1797. * @psoc: pointer to psoc object
  1798. * @value: Value that needs to be set from the caller
  1799. *
  1800. * Inline UCFG API to be used by HDD/OSIF callers
  1801. *
  1802. * Return: QDF Status
  1803. */
  1804. static inline QDF_STATUS
  1805. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1806. uint32_t *value)
  1807. {
  1808. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  1809. }
  1810. /**
  1811. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1812. * for BK
  1813. * @psoc: pointer to psoc object
  1814. * @value: Value that needs to be set from the caller
  1815. *
  1816. * Inline UCFG API to be used by HDD/OSIF callers
  1817. *
  1818. * Return: QDF Status
  1819. */
  1820. static inline QDF_STATUS
  1821. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1822. {
  1823. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  1824. }
  1825. /**
  1826. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1827. * MSDU size for BE
  1828. * @psoc: pointer to psoc object
  1829. * @value: Value that needs to be set from the caller
  1830. *
  1831. * Inline UCFG API to be used by HDD/OSIF callers
  1832. *
  1833. * Return: QDF Status
  1834. */
  1835. static inline QDF_STATUS
  1836. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1837. uint16_t *value)
  1838. {
  1839. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  1840. }
  1841. /**
  1842. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1843. * rate for BK
  1844. * @psoc: pointer to psoc object
  1845. * @value: Value that needs to be set from the caller
  1846. *
  1847. * Inline UCFG API to be used by HDD/OSIF callers
  1848. *
  1849. * Return: QDF Status
  1850. */
  1851. static inline QDF_STATUS
  1852. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1853. uint32_t *value)
  1854. {
  1855. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  1856. }
  1857. /**
  1858. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1859. * rate for BE
  1860. * @psoc: pointer to psoc object
  1861. * @value: Value that needs to be set from the caller
  1862. *
  1863. * Inline UCFG API to be used by HDD/OSIF callers
  1864. *
  1865. * Return: QDF Status
  1866. */
  1867. static inline QDF_STATUS
  1868. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1869. uint32_t *value)
  1870. {
  1871. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  1872. }
  1873. /**
  1874. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1875. * allowance for BE
  1876. * @psoc: pointer to psoc object
  1877. * @value: Value that needs to be set from the caller
  1878. *
  1879. * Inline UCFG API to be used by HDD/OSIF callers
  1880. *
  1881. * Return: QDF Status
  1882. */
  1883. static inline QDF_STATUS
  1884. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1885. {
  1886. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  1887. }
  1888. /**
  1889. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1890. * interval for BK
  1891. * @psoc: pointer to psoc object
  1892. * @value: pointer to the value which will be filled for the caller
  1893. *
  1894. * Inline UCFG API to be used by HDD/OSIF callers
  1895. *
  1896. * Return: QDF Status
  1897. */
  1898. static inline QDF_STATUS
  1899. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1900. uint32_t *value)
  1901. {
  1902. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  1903. }
  1904. /**
  1905. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1906. * interval for BK
  1907. * @psoc: pointer to psoc object
  1908. * @value: Value that needs to be set from the caller
  1909. *
  1910. * Inline UCFG API to be used by HDD/OSIF callers
  1911. *
  1912. * Return: QDF Status
  1913. */
  1914. static inline QDF_STATUS
  1915. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1916. uint32_t *value)
  1917. {
  1918. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  1919. }
  1920. #endif /* _WLAN_MLME_UCFG_API_H_ */