wlan_mlme_ucfg_api.h 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262
  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. #include <wlan_mlme_main.h>
  29. /**
  30. * ucfg_mlme_init() - initialize mlme_ctx context.
  31. *
  32. * This function initializes the mlme context.
  33. *
  34. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  35. */
  36. QDF_STATUS ucfg_mlme_init(void);
  37. /**
  38. * ucfg_mlme_deinit() - De initialize mlme_ctx context.
  39. *
  40. * This function De initializes mlme contex.
  41. *
  42. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  43. */
  44. QDF_STATUS ucfg_mlme_deinit(void);
  45. /**
  46. * ucfg_mlme_psoc_open() - MLME component Open
  47. * @psoc: pointer to psoc object
  48. *
  49. * Open the MLME component and initialize the MLME strucutre
  50. *
  51. * Return: QDF Status
  52. */
  53. QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
  54. /**
  55. * ucfg_mlme_psoc_close() - MLME component close
  56. * @psoc: pointer to psoc object
  57. *
  58. * Close the MLME component and clear the MLME structures
  59. *
  60. * Return: None
  61. */
  62. void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
  63. #ifdef CONFIG_VDEV_SM
  64. /**
  65. * ucfg_mlme_pdev_open() - MLME component pdev Open
  66. * @pdev: pointer to pdev object
  67. *
  68. * Open the MLME component and initialize the MLME pdev strucutre
  69. *
  70. * Return: QDF Status
  71. */
  72. QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev);
  73. /**
  74. * ucfg_mlme_pdev_close() - MLME component pdev close
  75. * @pdev: pointer to pdev object
  76. *
  77. * close the MLME pdev information
  78. *
  79. * Return: QDF Status
  80. */
  81. QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev);
  82. #else
  83. /**
  84. * ucfg_mlme_pdev_open() - MLME component pdev Open
  85. * @pdev: pointer to pdev object
  86. *
  87. * Open the MLME component and initialize the MLME pdev strucutre
  88. *
  89. * Return: QDF Status
  90. */
  91. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  92. {
  93. return QDF_STATUS_SUCCESS;
  94. }
  95. /**
  96. * ucfg_mlme_pdev_close() - MLME component pdev close
  97. * @pdev: pointer to pdev object
  98. *
  99. * close the MLME pdev information
  100. *
  101. * Return: QDF Status
  102. */
  103. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  104. {
  105. return QDF_STATUS_SUCCESS;
  106. }
  107. #endif
  108. /**
  109. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  110. * @psoc: pointer to psoc object
  111. * @value: pointer to the value which will be filled for the caller
  112. *
  113. * Inline UCFG API to be used by HDD/OSIF callers
  114. *
  115. * Return: QDF Status
  116. */
  117. static inline
  118. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  119. struct mlme_ht_capabilities_info
  120. *ht_cap_info)
  121. {
  122. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  123. }
  124. /**
  125. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  126. * @psoc: pointer to psoc object
  127. * @value: Value that needs to be set from the caller
  128. *
  129. * Inline UCFG API to be used by HDD/OSIF callers
  130. *
  131. * Return: QDF Status
  132. */
  133. static inline
  134. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  135. struct mlme_ht_capabilities_info
  136. ht_cap_info)
  137. {
  138. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  139. }
  140. /**
  141. * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num
  142. * @psoc: pointer to psoc object
  143. * @value: pointer to the value where the max_amsdu num is to be filled
  144. *
  145. * Return: QDF_STATUS
  146. */
  147. static inline
  148. QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  149. uint8_t *value)
  150. {
  151. return wlan_mlme_get_max_amsdu_num(psoc, value);
  152. }
  153. /**
  154. * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
  155. * @psoc: pointer to psoc object
  156. * @value: value to be set for max_amsdu_num
  157. *
  158. * Return: QDF_STATUS
  159. */
  160. static inline
  161. QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  162. uint8_t value)
  163. {
  164. return wlan_mlme_set_max_amsdu_num(psoc, value);
  165. }
  166. /**
  167. * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
  168. * @psoc: pointer to psoc object
  169. * @value: pointer to the value where the ht mpdu density is to be filled
  170. *
  171. * Return: QDF_STATUS
  172. */
  173. static inline
  174. QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  175. uint8_t *value)
  176. {
  177. return wlan_mlme_get_ht_mpdu_density(psoc, value);
  178. }
  179. /**
  180. * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
  181. * @psoc: pointer to psoc object
  182. * @value: value to be set for ht mpdu density
  183. *
  184. * Return: QDF_STATUS
  185. */
  186. static inline
  187. QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  188. uint8_t value)
  189. {
  190. return wlan_mlme_set_ht_mpdu_density(psoc, value);
  191. }
  192. /**
  193. * ucfg_mlme_get_band_capability() - Get the Band capability config
  194. * @psoc: pointer to psoc object
  195. * @band_capability: Pointer to the variable from caller
  196. *
  197. * Return: QDF Status
  198. */
  199. static inline
  200. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  201. uint8_t *band_capability)
  202. {
  203. return wlan_mlme_get_band_capability(psoc, band_capability);
  204. }
  205. /**
  206. * ucfg_mlme_set_band_capability() - Set the Band capability config
  207. * @psoc: pointer to psoc object
  208. * @band_capability: Value to be set from the caller
  209. *
  210. * Return: QDF Status
  211. */
  212. static inline
  213. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  214. uint8_t band_capability)
  215. {
  216. return wlan_mlme_set_band_capability(psoc, band_capability);
  217. }
  218. /**
  219. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  220. * @psoc: pointer to psoc object
  221. * @prevent_link_down: Pointer to the variable from caller
  222. *
  223. * Return: QDF Status
  224. */
  225. static inline
  226. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  227. bool *prevent_link_down)
  228. {
  229. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  230. }
  231. /**
  232. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  233. * @psoc: pointer to psoc object
  234. * @select_5ghz_margin: Pointer to the variable from caller
  235. *
  236. * Return: QDF Status
  237. */
  238. static inline
  239. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  240. uint8_t *select_5ghz_margin)
  241. {
  242. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  243. }
  244. /**
  245. * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  246. * @psoc: pointer to psoc object
  247. * @rtt_mac_randomization: Pointer to the variable from caller
  248. *
  249. * Return: QDF Status
  250. */
  251. static inline
  252. QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  253. bool *rtt_mac_randomization)
  254. {
  255. return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
  256. }
  257. /**
  258. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  259. * @psoc: pointer to psoc object
  260. * @crash_inject: Pointer to the variable from caller
  261. *
  262. * Return: QDF Status
  263. */
  264. static inline
  265. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  266. bool *crash_inject)
  267. {
  268. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  269. }
  270. /**
  271. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  272. * @psoc: pointer to psoc object
  273. * @lpass_support: Pointer to the variable from caller
  274. *
  275. * Return: QDF Status
  276. */
  277. static inline
  278. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  279. bool *lpass_support)
  280. {
  281. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  282. }
  283. /**
  284. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  285. * @psoc: pointer to psoc object
  286. * @self_recovery: Pointer to the variable from caller
  287. *
  288. * Return: QDF Status
  289. */
  290. static inline
  291. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  292. bool *self_recovery)
  293. {
  294. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  295. }
  296. /**
  297. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  298. * @psoc: pointer to psoc object
  299. * @sub_20_chan_width: Pointer to the variable from caller
  300. *
  301. * Return: QDF Status
  302. */
  303. static inline
  304. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  305. uint8_t *sub_20_chan_width)
  306. {
  307. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  308. }
  309. /**
  310. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  311. * @psoc: pointer to psoc object
  312. * @fw_timeout_crash: Pointer to the variable from caller
  313. *
  314. * Return: QDF Status
  315. */
  316. static inline
  317. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  318. bool *fw_timeout_crash)
  319. {
  320. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  321. }
  322. /**
  323. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  324. * @psoc: pointer to psoc object
  325. * @ito_repeat_count: Pointer to the variable from caller
  326. *
  327. * Return: QDF Status
  328. */
  329. static inline
  330. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  331. uint8_t *ito_repeat_count)
  332. {
  333. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  334. }
  335. /**
  336. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  337. * more param
  338. * @psoc: pointer to psoc object
  339. * @value: Value that needs to be set from the caller
  340. *
  341. * Inline UCFG API to be used by HDD/OSIF callers
  342. *
  343. * Return: QDF Status
  344. */
  345. static inline
  346. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  347. bool *value)
  348. {
  349. return wlan_mlme_get_acs_with_more_param(psoc, value);
  350. }
  351. /**
  352. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  353. * @psoc: pointer to psoc object
  354. * @value: Value that needs to be set from the caller
  355. *
  356. * Inline UCFG API to be used by HDD/OSIF callers
  357. *
  358. * Return: QDF Status
  359. */
  360. static inline
  361. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  362. uint32_t *value)
  363. {
  364. return wlan_mlme_get_auto_channel_weight(psoc, value);
  365. }
  366. /**
  367. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  368. * vendor acs support
  369. * @psoc: pointer to psoc object
  370. * @value: Value that needs to be set from the caller
  371. *
  372. * Inline UCFG API to be used by HDD/OSIF callers
  373. *
  374. * Return: QDF Status
  375. */
  376. static inline
  377. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  378. bool *value)
  379. {
  380. return wlan_mlme_get_vendor_acs_support(psoc, value);
  381. }
  382. /**
  383. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  384. * acs policy
  385. * @psoc: pointer to psoc object
  386. * @value: Value that needs to be set from the caller
  387. *
  388. * Inline UCFG API to be used by HDD/OSIF callers
  389. *
  390. * Return: QDF Status
  391. */
  392. static inline QDF_STATUS
  393. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  394. bool *value)
  395. {
  396. return wlan_mlme_get_external_acs_policy(psoc, value);
  397. }
  398. /**
  399. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  400. * @psoc: pointer to psoc object
  401. * @value: Value that needs to be set from the caller
  402. *
  403. * Inline UCFG API to be used by HDD/OSIF callers
  404. *
  405. * Return: QDF Status
  406. */
  407. static inline
  408. QDF_STATUS
  409. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  410. bool *value)
  411. {
  412. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  413. }
  414. /**
  415. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  416. * @psoc: pointer to psoc object
  417. * @value: Value that needs to be set from the caller
  418. *
  419. * Inline UCFG API to be used by HDD/OSIF callers
  420. *
  421. * Return: QDF Status
  422. */
  423. static inline QDF_STATUS
  424. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  425. uint8_t *value)
  426. {
  427. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  428. }
  429. /**
  430. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  431. * MSDU size for VO
  432. * @psoc: pointer to psoc object
  433. * @value: Value that needs to be set from the caller
  434. *
  435. * Inline UCFG API to be used by HDD/OSIF callers
  436. *
  437. * Return: QDF Status
  438. */
  439. static inline QDF_STATUS
  440. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  441. uint16_t *value)
  442. {
  443. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  444. }
  445. /**
  446. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  447. * @psoc: pointer to psoc object
  448. * @value: Value that needs to be set from the caller
  449. *
  450. * Inline UCFG API to be used by HDD/OSIF callers
  451. *
  452. * Return: QDF Status
  453. */
  454. static inline QDF_STATUS
  455. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  456. uint32_t *value)
  457. {
  458. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  459. }
  460. /**
  461. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  462. * rate for VO
  463. * @psoc: pointer to psoc object
  464. * @value: Value that needs to be set from the caller
  465. *
  466. * Inline UCFG API to be used by HDD/OSIF callers
  467. *
  468. * Return: QDF Status
  469. */
  470. static inline QDF_STATUS
  471. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  472. uint32_t *value)
  473. {
  474. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  475. }
  476. /**
  477. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  478. * allowance for VO
  479. * @psoc: pointer to psoc object
  480. * @value: Value that needs to be set from the caller
  481. *
  482. * Inline UCFG API to be used by HDD/OSIF callers
  483. *
  484. * Return: QDF Status
  485. */
  486. static inline QDF_STATUS
  487. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  488. uint16_t *value)
  489. {
  490. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  491. }
  492. /**
  493. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  494. * interval for voice
  495. * @psoc: pointer to psoc object
  496. * @value: pointer to the value which will be filled for the caller
  497. *
  498. * Inline UCFG API to be used by HDD/OSIF callers
  499. *
  500. * Return: QDF Status
  501. */
  502. static inline QDF_STATUS
  503. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  504. uint32_t *value)
  505. {
  506. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  507. }
  508. /**
  509. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  510. * interval for voice
  511. * @psoc: pointer to psoc object
  512. * @value: Value that needs to be set from the caller
  513. *
  514. * Inline UCFG API to be used by HDD/OSIF callers
  515. *
  516. * Return: QDF Status
  517. */
  518. static inline QDF_STATUS
  519. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  520. uint32_t *value)
  521. {
  522. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  523. }
  524. /**
  525. *
  526. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  527. * override flag is set.
  528. * @psoc: pointer to psoc object
  529. * @sme_config - Sme config struct
  530. *
  531. * Inline UCFG API to be used by HDD/OSIF callers to call
  532. * the mlme function wlan_mlme_get_sap_inactivity_override
  533. *
  534. * Return: QDF Status
  535. */
  536. static inline
  537. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  538. bool *value)
  539. {
  540. wlan_mlme_get_sap_inactivity_override(psoc, value);
  541. }
  542. /**
  543. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  544. *
  545. * @psoc: pointer to psoc object
  546. * @value: Value that needs to be set from the caller
  547. *
  548. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  549. */
  550. static inline
  551. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  552. uint8_t *value)
  553. {
  554. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  555. }
  556. /**
  557. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  558. *
  559. * @psoc: pointer to psoc object
  560. * @value: Value that needs to be set from the caller
  561. *
  562. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  563. */
  564. static inline
  565. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  566. uint16_t *value)
  567. {
  568. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  569. }
  570. /**
  571. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  572. *
  573. * @psoc: pointer to psoc object
  574. * @value: Value that needs to be set from the caller
  575. *
  576. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  577. */
  578. static inline
  579. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  580. uint16_t *value)
  581. {
  582. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  583. }
  584. /**
  585. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  586. *
  587. * @psoc: pointer to psoc object
  588. * @session_id: vdev_id
  589. *
  590. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  591. */
  592. static inline
  593. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  594. uint8_t session_id)
  595. {
  596. return wlan_mlme_configure_chain_mask(psoc, session_id);
  597. }
  598. /*
  599. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  600. * @psoc: pointer to psoc object
  601. * @val: Pointer to the value which will be filled for the caller
  602. *
  603. * Return: QDF Status
  604. */
  605. QDF_STATUS
  606. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  607. uint32_t *val);
  608. /*
  609. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  610. * @psoc: pointer to psoc object
  611. * @val: Pointer to the value which will be filled for the caller
  612. *
  613. * Return: QDF Status
  614. */
  615. QDF_STATUS
  616. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  617. bool *val);
  618. /**
  619. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  620. * @psoc: pointer to psoc object
  621. * @val: Pointer to the value which will be filled for the caller
  622. *
  623. * Return: QDF Status
  624. */
  625. QDF_STATUS
  626. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  627. uint32_t *val);
  628. /**
  629. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  630. * @psoc: pointer to psoc object
  631. * @val: Pointer to the value which will be filled for the caller
  632. *
  633. * Return: QDF Status
  634. */
  635. QDF_STATUS
  636. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  637. uint32_t val);
  638. /**
  639. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  640. * @psoc: pointer to psoc object
  641. * @out_mode: Pointer to the mode which will be filled for the caller
  642. *
  643. * Return: QDF Status
  644. */
  645. QDF_STATUS
  646. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  647. enum dot11p_mode *out_mode);
  648. /**
  649. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  650. * @psoc: pointer to psoc object
  651. * @val: Pointer to the value which will be filled for the caller
  652. *
  653. * Return: QDF Status
  654. */
  655. QDF_STATUS
  656. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  657. bool *val);
  658. /**
  659. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  660. * @psoc: pointer to psoc object
  661. * @val: Pointer to the value which will be filled for the caller
  662. *
  663. * Return: QDF Status
  664. */
  665. QDF_STATUS
  666. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  667. bool *val);
  668. /**
  669. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  670. * @psoc: pointer to psoc object
  671. * @val: Pointer to the value which will be filled for the caller
  672. *
  673. * Return: QDF Status
  674. */
  675. QDF_STATUS
  676. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  677. bool *val);
  678. /**
  679. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  680. * @psoc: pointer to psoc object
  681. * @val: Pointer to the value which will be filled for the caller
  682. *
  683. * Return: QDF Status
  684. */
  685. QDF_STATUS
  686. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  687. uint32_t *val);
  688. /**
  689. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  690. * @psoc: pointer to psoc object
  691. * @val: Pointer to enable/disable roaming offload
  692. *
  693. * Return: QDF Status
  694. */
  695. QDF_STATUS
  696. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  697. bool *val);
  698. /**
  699. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  700. * @psoc: pointer to psoc object
  701. * @val: enable/disable roaming offload
  702. *
  703. * Return: QDF Status
  704. */
  705. QDF_STATUS
  706. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  707. bool val);
  708. /**
  709. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  710. * @psoc: pointer to psoc object
  711. * @val: first scan bucket threshold
  712. *
  713. * Return: QDF Status
  714. */
  715. QDF_STATUS
  716. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  717. uint8_t *val);
  718. /**
  719. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  720. * @psoc: pointer to psoc object
  721. * @value: Value that needs to be set from the caller
  722. *
  723. * Inline UCFG API to be used by HDD/OSIF callers
  724. *
  725. * Return: QDF Status
  726. */
  727. static inline
  728. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  729. int value)
  730. {
  731. return wlan_mlme_set_sap_listen_interval(psoc, value);
  732. }
  733. /**
  734. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  735. * @psoc: pointer to psoc object
  736. * @value: Value that needs to be set from the caller
  737. *
  738. * Inline UCFG API to be used by HDD/OSIF callers
  739. *
  740. * Return: QDF Status
  741. */
  742. static inline
  743. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  744. int value)
  745. {
  746. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  747. }
  748. /**
  749. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  750. * @psoc: pointer to psoc object
  751. * @value: Value that needs to be set from the caller
  752. *
  753. * Inline UCFG API to be used by HDD/OSIF callers
  754. *
  755. * Return: QDF Status
  756. */
  757. static inline
  758. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  759. int value)
  760. {
  761. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  762. }
  763. /**
  764. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  765. * @psoc: pointer to psoc object
  766. * @value: Value that needs to be set from the caller
  767. *
  768. * Inline UCFG API to be used by HDD/OSIF callers
  769. *
  770. * Return: QDF Status
  771. */
  772. static inline
  773. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  774. bool *value)
  775. {
  776. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  777. }
  778. /**
  779. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  780. * @psoc: pointer to psoc object
  781. * @value: Value that needs to be set from the caller
  782. *
  783. * Inline UCFG API to be used by HDD/OSIF callers
  784. *
  785. * Return: QDF Status
  786. */
  787. static inline
  788. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  789. bool *value)
  790. {
  791. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  792. }
  793. /**
  794. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  795. * @psoc: pointer to psoc object
  796. * @value: Value that needs to be set from the caller
  797. *
  798. * Inline UCFG API to be used by HDD/OSIF callers
  799. *
  800. * Return: QDF Status
  801. */
  802. static inline
  803. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  804. int *value)
  805. {
  806. return wlan_mlme_get_sap_max_peers(psoc, value);
  807. }
  808. /**
  809. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  810. * @psoc: pointer to psoc object
  811. * @value: Value that needs to be set from the caller
  812. *
  813. * Inline UCFG API to be used by HDD/OSIF callers
  814. *
  815. * Return: QDF Status
  816. */
  817. static inline
  818. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  819. {
  820. return wlan_mlme_set_sap_max_peers(psoc, value);
  821. }
  822. /**
  823. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  824. * @psoc: pointer to psoc object
  825. * @value: Value that needs to be set from the caller
  826. *
  827. * Inline UCFG API to be used by HDD/OSIF callers
  828. *
  829. * Return: QDF Status
  830. */
  831. static inline
  832. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  833. int *value)
  834. {
  835. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  836. }
  837. /**
  838. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  839. * reorder buffs
  840. * @psoc: pointer to psoc object
  841. * @value: Value that needs to be set from the caller
  842. *
  843. * Inline UCFG API to be used by HDD/OSIF callers
  844. *
  845. * Return: QDF Status
  846. */
  847. static inline
  848. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  849. *psoc, int *value)
  850. {
  851. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  852. }
  853. /**
  854. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  855. * switch beacon count
  856. * @psoc: pointer to psoc object
  857. * @value: Value that needs to be set from the caller
  858. *
  859. * Inline UCFG API to be used by HDD/OSIF callers
  860. *
  861. * Return: QDF Status
  862. */
  863. static inline
  864. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  865. int *value)
  866. {
  867. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  868. }
  869. /**
  870. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  871. * @psoc: pointer to psoc object
  872. * @value: Value that needs to be set from the caller
  873. *
  874. * Inline UCFG API to be used by HDD/OSIF callers
  875. *
  876. * Return: QDF Status
  877. */
  878. static inline
  879. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  880. bool *value)
  881. {
  882. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  883. }
  884. /**
  885. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  886. * @psoc: pointer to psoc object
  887. * @value: Value that needs to be set from the caller
  888. *
  889. * Inline UCFG API to be used by HDD/OSIF callers
  890. *
  891. * Return: QDF Status
  892. */
  893. static inline
  894. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  895. bool *value)
  896. {
  897. return wlan_mlme_get_sap_internal_restart(psoc, value);
  898. }
  899. /**
  900. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  901. * @psoc: pointer to psoc object
  902. * @value: Value that needs to be set from the caller
  903. *
  904. * Inline UCFG API to be used by HDD/OSIF callers
  905. *
  906. * Return: QDF Status
  907. */
  908. static inline
  909. QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  910. uint8_t *value)
  911. {
  912. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  913. }
  914. /**
  915. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  916. * @psoc: pointer to psoc object
  917. * @value: Value that needs to be set from the caller
  918. *
  919. * Inline UCFG API to be used by HDD/OSIF callers
  920. *
  921. * Return: QDF Status
  922. */
  923. static inline
  924. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  925. uint8_t *value)
  926. {
  927. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  928. }
  929. /**
  930. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  931. * @psoc: pointer to psoc object
  932. * @value: Value that needs to be set from the caller
  933. *
  934. * Inline UCFG API to be used by HDD/OSIF callers
  935. *
  936. * Return: QDF Status
  937. */
  938. static inline
  939. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  940. bool *value)
  941. {
  942. return wlan_mlme_get_sap_country_priority(psoc, value);
  943. }
  944. /**
  945. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  946. * interval
  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
  951. *
  952. * Return: QDF Status
  953. */
  954. static inline
  955. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  956. *psoc, int *value)
  957. {
  958. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  959. }
  960. /**
  961. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  962. * switch rate enabled.
  963. * @psoc: pointer to psoc object
  964. * @value: Value that needs to be set from the caller
  965. *
  966. * Inline UCFG API to be used by HDD/OSIF callers
  967. *
  968. * Return: QDF Status
  969. */
  970. static inline
  971. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  972. *psoc, bool *value)
  973. {
  974. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  975. }
  976. /**
  977. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  978. * info for STA
  979. *
  980. * @psoc: pointer to psoc object
  981. * @value: pointer to the value which will be filled for the caller
  982. *
  983. * Inline UCFG API to be used by HDD/OSIF callers to get the
  984. * OCE STA feature enable value
  985. *
  986. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  987. */
  988. static inline
  989. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  990. bool *value)
  991. {
  992. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  993. }
  994. /**
  995. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  996. * info for SAP
  997. *
  998. * @psoc: pointer to psoc object
  999. * @value: pointer to the value which will be filled for the caller
  1000. *
  1001. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1002. * OCE SAP feature enable value
  1003. *
  1004. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1005. */
  1006. static inline
  1007. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1008. bool *value)
  1009. {
  1010. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1011. }
  1012. /**
  1013. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1014. * @psoc: pointer to psoc object
  1015. * @value: pointer to the value which will be filled for the caller
  1016. *
  1017. * Inline UCFG API to be used by HDD/OSIF callers
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. static inline
  1022. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1023. uint32_t *value)
  1024. {
  1025. return wlan_mlme_get_rts_threshold(psoc, value);
  1026. }
  1027. /**
  1028. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1029. * @psoc: pointer to psoc object
  1030. * @value: pointer to the value which will be filled for the caller
  1031. *
  1032. * Inline UCFG API to be used by HDD/OSIF callers
  1033. *
  1034. * Return: QDF Status
  1035. */
  1036. static inline
  1037. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1038. uint32_t value)
  1039. {
  1040. return wlan_mlme_set_rts_threshold(psoc, value);
  1041. }
  1042. /**
  1043. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1044. * config
  1045. * @psoc: pointer to psoc object
  1046. * @value: Value that needs to be set from the caller
  1047. *
  1048. * Inline UCFG API to be used by HDD/OSIF callers
  1049. *
  1050. * Return: QDF Status
  1051. */
  1052. static inline
  1053. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1054. uint32_t *value)
  1055. {
  1056. return wlan_mlme_get_frag_threshold(psoc, value);
  1057. }
  1058. /**
  1059. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1060. * @psoc: pointer to psoc object
  1061. * @value: pointer to the value which will be filled for the caller
  1062. *
  1063. * Inline UCFG API to be used by HDD/OSIF callers
  1064. *
  1065. * Return: QDF Status
  1066. */
  1067. static inline
  1068. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1069. uint32_t value)
  1070. {
  1071. return wlan_mlme_set_frag_threshold(psoc, value);
  1072. }
  1073. /**
  1074. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1075. *
  1076. * @psoc: pointer to psoc object
  1077. * @value: pointer to the value which will be filled for the caller
  1078. *
  1079. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1080. * fils enable value
  1081. *
  1082. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1083. */
  1084. static inline
  1085. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1086. bool *value)
  1087. {
  1088. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1089. }
  1090. /**
  1091. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1092. *
  1093. * @psoc: pointer to psoc object
  1094. * @value: value that needs to be set from the caller
  1095. *
  1096. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1097. * fils enable value
  1098. *
  1099. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1100. */
  1101. static inline
  1102. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1103. bool value)
  1104. {
  1105. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1106. }
  1107. /**
  1108. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1109. * @psoc: pointer to psoc object
  1110. * @value: value that needs to be set from the caller
  1111. *
  1112. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1113. * enable bcast probe resp info
  1114. *
  1115. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1116. */
  1117. static inline
  1118. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1119. bool value)
  1120. {
  1121. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1122. }
  1123. /**
  1124. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1125. * @psoc: psoc context
  1126. * @value: data to be set
  1127. *
  1128. * Inline UCFG API to be used by HDD/OSIF callers
  1129. *
  1130. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1131. */
  1132. static inline
  1133. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1134. uint8_t value)
  1135. {
  1136. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1137. }
  1138. /**
  1139. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1140. * cfg item
  1141. * @psoc: psoc context
  1142. * @value: data to be set
  1143. *
  1144. * Inline UCFG API to be used by HDD/OSIF callers
  1145. *
  1146. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1147. */
  1148. static inline
  1149. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1150. uint8_t *value)
  1151. {
  1152. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1153. }
  1154. /**
  1155. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1156. * cfg item
  1157. * @psoc: psoc context
  1158. * @value: data to be set
  1159. *
  1160. * Inline UCFG API to be used by HDD/OSIF callers
  1161. *
  1162. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1163. */
  1164. static inline QDF_STATUS
  1165. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1166. bool value)
  1167. {
  1168. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1169. }
  1170. /**
  1171. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1172. * @psoc: psoc context
  1173. * @value: data to be set
  1174. *
  1175. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1176. * ignore_peer_ht_opmode flag value
  1177. *
  1178. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1179. */
  1180. static inline QDF_STATUS
  1181. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1182. bool *value)
  1183. {
  1184. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1185. }
  1186. /**
  1187. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1188. * cfg item
  1189. * @psoc: psoc context
  1190. * @value: data to be set
  1191. *
  1192. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1193. * ignore_peer_ht_opmode flag value
  1194. *
  1195. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1196. */
  1197. static inline QDF_STATUS
  1198. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1199. bool value)
  1200. {
  1201. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1202. }
  1203. /**
  1204. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1205. * cfg item
  1206. * @psoc: psoc context
  1207. * @value: pointer to get required data
  1208. *
  1209. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1210. * ignore_peer_ht_opmode flag value
  1211. *
  1212. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1213. */
  1214. static inline QDF_STATUS
  1215. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1216. bool *value)
  1217. {
  1218. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1219. }
  1220. /**
  1221. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1222. * cfg item
  1223. * @psoc: psoc context
  1224. * @value: pointer to get required data
  1225. *
  1226. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1227. * ignore_peer_ht_opmode flag value
  1228. *
  1229. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1230. */
  1231. static inline QDF_STATUS
  1232. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1233. bool *value)
  1234. {
  1235. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1236. }
  1237. /**
  1238. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1239. * support cap into cfg item
  1240. * @psoc: psoc context
  1241. * @value: data to be set
  1242. *
  1243. * Inline UCFG API to be used by HDD/OSIF callers
  1244. *
  1245. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1246. */
  1247. static inline QDF_STATUS
  1248. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1249. uint8_t value)
  1250. {
  1251. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1252. }
  1253. /**
  1254. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1255. * support cap into cfg item
  1256. * @psoc: psoc context
  1257. * @value: data to be set
  1258. *
  1259. * Inline UCFG API to be used by HDD/OSIF callers
  1260. *
  1261. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1262. */
  1263. static inline QDF_STATUS
  1264. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1265. uint8_t *value)
  1266. {
  1267. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1268. }
  1269. /**
  1270. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1271. * cfg item
  1272. * @psoc: psoc context
  1273. * @value: pointer to get required data
  1274. *
  1275. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1276. * ignore_peer_ht_opmode flag value
  1277. *
  1278. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1279. */
  1280. static inline QDF_STATUS
  1281. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1282. uint32_t *value)
  1283. {
  1284. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1285. }
  1286. /**
  1287. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1288. * cfg item
  1289. * @psoc: psoc context
  1290. * @value: data to be set
  1291. *
  1292. * Inline UCFG API to be used by HDD/OSIF callers
  1293. *
  1294. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1295. */
  1296. static inline QDF_STATUS
  1297. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1298. uint32_t value)
  1299. {
  1300. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1301. }
  1302. /**
  1303. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1304. * cfg item
  1305. * @psoc: psoc context
  1306. * @value: pointer to get required data
  1307. *
  1308. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1309. * ignore_peer_ht_opmode flag value
  1310. *
  1311. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1312. */
  1313. static inline QDF_STATUS
  1314. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1315. uint32_t *value)
  1316. {
  1317. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1318. }
  1319. /**
  1320. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1321. * cfg item
  1322. * @psoc: psoc context
  1323. * @value: data to be set
  1324. *
  1325. * Inline UCFG API to be used by HDD/OSIF callers
  1326. *
  1327. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1328. */
  1329. static inline QDF_STATUS
  1330. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1331. uint32_t value)
  1332. {
  1333. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1334. }
  1335. /**
  1336. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1337. * rate into cfg item
  1338. * @psoc: psoc context
  1339. * @value: data to be set
  1340. *
  1341. * Inline UCFG API to be used by HDD/OSIF callers
  1342. *
  1343. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1344. */
  1345. static inline QDF_STATUS
  1346. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1347. uint32_t value)
  1348. {
  1349. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1350. }
  1351. /**
  1352. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1353. * cfg item
  1354. * @psoc: psoc context
  1355. * @value: data to be set
  1356. *
  1357. * Inline UCFG API to be used by HDD/OSIF callers
  1358. *
  1359. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1360. */
  1361. static inline QDF_STATUS
  1362. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1363. uint32_t value)
  1364. {
  1365. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1366. }
  1367. /**
  1368. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1369. * cfg item
  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_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1380. uint32_t *value)
  1381. {
  1382. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1383. }
  1384. /**
  1385. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1386. * cfg item
  1387. * @psoc: psoc context
  1388. * @value: data to be set
  1389. *
  1390. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1391. * ignore_peer_ht_opmode flag value
  1392. *
  1393. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1394. */
  1395. static inline QDF_STATUS
  1396. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1397. uint32_t value)
  1398. {
  1399. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1400. }
  1401. /**
  1402. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1403. * for 11ac
  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_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1414. {
  1415. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1416. }
  1417. /**
  1418. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1419. * for 11ac
  1420. * @psoc: psoc context
  1421. * @value: data to be set
  1422. *
  1423. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1424. * ignore_peer_ht_opmode flag value
  1425. *
  1426. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1427. */
  1428. static inline QDF_STATUS
  1429. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1430. {
  1431. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1432. }
  1433. /**
  1434. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1435. * for 11ac
  1436. * @psoc: psoc context
  1437. * @value: data to be set
  1438. *
  1439. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1440. * ignore_peer_ht_opmode flag value
  1441. *
  1442. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1443. */
  1444. static inline QDF_STATUS
  1445. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1446. {
  1447. return wlan_mlme_get_vht_channel_width(psoc, value);
  1448. }
  1449. /**
  1450. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1451. * for 11ac
  1452. * @psoc: psoc context
  1453. * @value: data to be set
  1454. *
  1455. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1456. * ignore_peer_ht_opmode flag value
  1457. *
  1458. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1459. */
  1460. static inline QDF_STATUS
  1461. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1462. {
  1463. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1464. }
  1465. /**
  1466. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1467. * for 11ac
  1468. * @psoc: psoc context
  1469. * @value: data to be set
  1470. *
  1471. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1472. * ignore_peer_ht_opmode flag value
  1473. *
  1474. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1475. */
  1476. static inline QDF_STATUS
  1477. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1478. {
  1479. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1480. }
  1481. /**
  1482. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1483. * for 11ac
  1484. * @psoc: psoc context
  1485. * @value: data to be set
  1486. *
  1487. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1488. * ignore_peer_ht_opmode flag value
  1489. *
  1490. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1491. */
  1492. static inline QDF_STATUS
  1493. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1494. {
  1495. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1496. }
  1497. /**
  1498. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1499. * for 11ac
  1500. * @psoc: psoc context
  1501. * @value: data to be set
  1502. *
  1503. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1504. * ignore_peer_ht_opmode flag value
  1505. *
  1506. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1507. */
  1508. static inline QDF_STATUS
  1509. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1510. {
  1511. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1512. }
  1513. /**
  1514. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  1515. * @vdev: pointer to the vdev obj
  1516. *
  1517. * This API will get the ini config of the vdev related to
  1518. * the nss, chains params
  1519. *
  1520. * Return: pointer to the nss, chain param ini cfg structure
  1521. */
  1522. static inline struct wlan_mlme_nss_chains *
  1523. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  1524. {
  1525. return mlme_get_ini_vdev_config(vdev);
  1526. }
  1527. /**
  1528. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  1529. * @vdev: pointer to the vdev obj
  1530. *
  1531. * This API will get the dynamic config of the vdev related to nss,
  1532. * chains params
  1533. *
  1534. * Return: pointer to the nss, chain param dynamic cfg structure
  1535. */
  1536. static inline struct wlan_mlme_nss_chains *
  1537. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  1538. {
  1539. return mlme_get_dynamic_vdev_config(vdev);
  1540. }
  1541. /**
  1542. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1543. * @psoc: psoc context
  1544. * @value: data to be set
  1545. *
  1546. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1547. * ignore_peer_ht_opmode flag value
  1548. *
  1549. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1550. */
  1551. static inline QDF_STATUS
  1552. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1553. {
  1554. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1555. }
  1556. /**
  1557. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1558. * @psoc: psoc context
  1559. * @value: data to be set
  1560. *
  1561. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1562. * ignore_peer_ht_opmode flag value
  1563. *
  1564. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1565. */
  1566. static inline QDF_STATUS
  1567. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1568. {
  1569. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1570. }
  1571. /**
  1572. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1573. * @psoc: psoc context
  1574. * @value: data to be set
  1575. *
  1576. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1577. * ignore_peer_ht_opmode flag value
  1578. *
  1579. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1580. */
  1581. static inline QDF_STATUS
  1582. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1583. {
  1584. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1585. }
  1586. /**
  1587. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1588. * @psoc: psoc context
  1589. * @value: data to be set
  1590. *
  1591. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1592. * ignore_peer_ht_opmode flag value
  1593. *
  1594. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1595. */
  1596. static inline QDF_STATUS
  1597. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1598. {
  1599. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1600. }
  1601. /**
  1602. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1603. * @psoc: psoc context
  1604. * @value: data to be set
  1605. *
  1606. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1607. * ignore_peer_ht_opmode flag value
  1608. *
  1609. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1610. */
  1611. static inline QDF_STATUS
  1612. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1613. {
  1614. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1615. }
  1616. /**
  1617. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1618. * @psoc: psoc context
  1619. * @value: data to be set
  1620. *
  1621. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1622. * ignore_peer_ht_opmode flag value
  1623. *
  1624. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1625. */
  1626. static inline QDF_STATUS
  1627. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1628. {
  1629. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1630. }
  1631. /**
  1632. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1633. * @psoc: psoc context
  1634. * @value: data to be set
  1635. *
  1636. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1637. * ignore_peer_ht_opmode flag value
  1638. *
  1639. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1640. */
  1641. static inline QDF_STATUS
  1642. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1643. {
  1644. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1645. }
  1646. /**
  1647. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1648. * @psoc: psoc context
  1649. * @value: data to be set
  1650. *
  1651. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1652. * ignore_peer_ht_opmode flag value
  1653. *
  1654. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1655. */
  1656. static inline QDF_STATUS
  1657. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1658. struct wma_tgt_vht_cap *cfg)
  1659. {
  1660. return mlme_update_vht_cap(psoc, cfg);
  1661. }
  1662. /**
  1663. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1664. * streams supported for vht
  1665. * @psoc: psoc context
  1666. * @value: data to be set
  1667. *
  1668. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1669. * ignore_peer_ht_opmode flag value
  1670. *
  1671. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1672. */
  1673. static inline QDF_STATUS
  1674. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1675. {
  1676. return mlme_update_nss_vht_cap(psoc);
  1677. }
  1678. /**
  1679. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1680. * @psoc: pointer to psoc object
  1681. * @buf: buffer to get rates set
  1682. * @len: length of the buffer
  1683. * Return: QDF Status
  1684. */
  1685. QDF_STATUS
  1686. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1687. qdf_size_t *len);
  1688. /**
  1689. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1690. * @psoc: pointer to psoc object
  1691. * @buf: buffer to get rates set
  1692. * @len: length of the buffer
  1693. * Return: QDF Status
  1694. */
  1695. QDF_STATUS
  1696. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1697. qdf_size_t *len);
  1698. /**
  1699. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1700. * @psoc: pointer to psoc object
  1701. * @buf: caller buffer to copy mcs set info
  1702. * @len: length of the buffer
  1703. * Return: QDF Status
  1704. */
  1705. QDF_STATUS
  1706. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1707. qdf_size_t *len);
  1708. /**
  1709. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1710. * @psoc: pointer to psoc object
  1711. * @buf: caller buffer having mcs set info
  1712. * @len: length of the buffer
  1713. * Return: QDF Status
  1714. */
  1715. QDF_STATUS
  1716. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1717. qdf_size_t len);
  1718. /**
  1719. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1720. * @psoc: pointer to psoc object
  1721. * @buf: caller buffer to copy mcs set info
  1722. * @len: length of the buffer
  1723. * Return: QDF Status
  1724. */
  1725. QDF_STATUS
  1726. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1727. qdf_size_t *len);
  1728. /**
  1729. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1730. * for VI
  1731. * @psoc: pointer to psoc object
  1732. * @value: Value that needs to be set from the caller
  1733. *
  1734. * Inline UCFG API to be used by HDD/OSIF callers
  1735. *
  1736. * Return: QDF Status
  1737. */
  1738. static inline QDF_STATUS
  1739. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  1740. uint8_t *value)
  1741. {
  1742. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  1743. }
  1744. /**
  1745. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1746. * MSDU size for VI
  1747. * @psoc: pointer to psoc object
  1748. * @value: Value that needs to be set from the caller
  1749. *
  1750. * Inline UCFG API to be used by HDD/OSIF callers
  1751. *
  1752. * Return: QDF Status
  1753. */
  1754. static inline QDF_STATUS
  1755. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1756. uint16_t *value)
  1757. {
  1758. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  1759. }
  1760. /**
  1761. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1762. * rate for VI
  1763. * @psoc: pointer to psoc object
  1764. * @value: Value that needs to be set from the caller
  1765. *
  1766. * Inline UCFG API to be used by HDD/OSIF callers
  1767. *
  1768. * Return: QDF Status
  1769. */
  1770. static inline QDF_STATUS
  1771. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1772. uint32_t *value)
  1773. {
  1774. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  1775. }
  1776. /**
  1777. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1778. * rate for VI
  1779. * @psoc: pointer to psoc object
  1780. * @value: Value that needs to be set from the caller
  1781. *
  1782. * Inline UCFG API to be used by HDD/OSIF callers
  1783. *
  1784. * Return: QDF Status
  1785. */
  1786. static inline QDF_STATUS
  1787. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1788. uint32_t *value)
  1789. {
  1790. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  1791. }
  1792. /**
  1793. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1794. * allowance for VI
  1795. * @psoc: pointer to psoc object
  1796. * @value: Value that needs to be set from the caller
  1797. *
  1798. * Inline UCFG API to be used by HDD/OSIF callers
  1799. *
  1800. * Return: QDF Status
  1801. */
  1802. static inline QDF_STATUS
  1803. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1804. {
  1805. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  1806. }
  1807. /**
  1808. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1809. * interval for video
  1810. * @psoc: pointer to psoc object
  1811. * @value: pointer to the value which will be filled for the caller
  1812. *
  1813. * Inline UCFG API to be used by HDD/OSIF callers
  1814. *
  1815. * Return: QDF Status
  1816. */
  1817. static inline QDF_STATUS
  1818. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1819. uint32_t *value)
  1820. {
  1821. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  1822. }
  1823. /**
  1824. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1825. * interval for video
  1826. * @psoc: pointer to psoc object
  1827. * @value: Value that needs to be set from the caller
  1828. *
  1829. * Inline UCFG API to be used by HDD/OSIF callers
  1830. *
  1831. * Return: QDF Status
  1832. */
  1833. static inline QDF_STATUS
  1834. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1835. uint32_t *value)
  1836. {
  1837. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  1838. }
  1839. /**
  1840. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1841. * for BE
  1842. * @psoc: pointer to psoc object
  1843. * @value: Value that needs to be set from the caller
  1844. *
  1845. * Inline UCFG API to be used by HDD/OSIF callers
  1846. *
  1847. * Return: QDF Status
  1848. */
  1849. static inline QDF_STATUS
  1850. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1851. {
  1852. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  1853. }
  1854. /**
  1855. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1856. * MSDU size for BE
  1857. * @psoc: pointer to psoc object
  1858. * @value: Value that needs to be set from the caller
  1859. *
  1860. * Inline UCFG API to be used by HDD/OSIF callers
  1861. *
  1862. * Return: QDF Status
  1863. */
  1864. static inline QDF_STATUS
  1865. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1866. uint16_t *value)
  1867. {
  1868. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  1869. }
  1870. /**
  1871. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1872. * rate for BE
  1873. * @psoc: pointer to psoc object
  1874. * @value: Value that needs to be set from the caller
  1875. *
  1876. * Inline UCFG API to be used by HDD/OSIF callers
  1877. *
  1878. * Return: QDF Status
  1879. */
  1880. static inline QDF_STATUS
  1881. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1882. uint32_t *value)
  1883. {
  1884. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  1885. }
  1886. /**
  1887. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1888. * rate for BE
  1889. * @psoc: pointer to psoc object
  1890. * @value: Value that needs to be set from the caller
  1891. *
  1892. * Inline UCFG API to be used by HDD/OSIF callers
  1893. *
  1894. * Return: QDF Status
  1895. */
  1896. static inline QDF_STATUS
  1897. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1898. uint32_t *value)
  1899. {
  1900. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  1901. }
  1902. /**
  1903. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1904. * allowance for BE
  1905. * @psoc: pointer to psoc object
  1906. * @value: Value that needs to be set from the caller
  1907. *
  1908. * Inline UCFG API to be used by HDD/OSIF callers
  1909. *
  1910. * Return: QDF Status
  1911. */
  1912. static inline QDF_STATUS
  1913. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1914. {
  1915. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  1916. }
  1917. /**
  1918. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1919. * interval for BE
  1920. * @psoc: pointer to psoc object
  1921. * @value: pointer to the value which will be filled for the caller
  1922. *
  1923. * Inline UCFG API to be used by HDD/OSIF callers
  1924. *
  1925. * Return: QDF Status
  1926. */
  1927. static inline QDF_STATUS
  1928. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1929. uint32_t *value)
  1930. {
  1931. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  1932. }
  1933. /**
  1934. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1935. * interval for BE
  1936. * @psoc: pointer to psoc object
  1937. * @value: Value that needs to be set from the caller
  1938. *
  1939. * Inline UCFG API to be used by HDD/OSIF callers
  1940. *
  1941. * Return: QDF Status
  1942. */
  1943. static inline QDF_STATUS
  1944. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1945. uint32_t *value)
  1946. {
  1947. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  1948. }
  1949. /**
  1950. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1951. * for BK
  1952. * @psoc: pointer to psoc object
  1953. * @value: Value that needs to be set from the caller
  1954. *
  1955. * Inline UCFG API to be used by HDD/OSIF callers
  1956. *
  1957. * Return: QDF Status
  1958. */
  1959. static inline QDF_STATUS
  1960. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1961. {
  1962. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  1963. }
  1964. /**
  1965. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1966. * MSDU size for BE
  1967. * @psoc: pointer to psoc object
  1968. * @value: Value that needs to be set from the caller
  1969. *
  1970. * Inline UCFG API to be used by HDD/OSIF callers
  1971. *
  1972. * Return: QDF Status
  1973. */
  1974. static inline QDF_STATUS
  1975. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1976. uint16_t *value)
  1977. {
  1978. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  1979. }
  1980. /**
  1981. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1982. * rate for BK
  1983. * @psoc: pointer to psoc object
  1984. * @value: Value that needs to be set from the caller
  1985. *
  1986. * Inline UCFG API to be used by HDD/OSIF callers
  1987. *
  1988. * Return: QDF Status
  1989. */
  1990. static inline QDF_STATUS
  1991. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1992. uint32_t *value)
  1993. {
  1994. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  1995. }
  1996. /**
  1997. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1998. * rate for BE
  1999. * @psoc: pointer to psoc object
  2000. * @value: Value that needs to be set from the caller
  2001. *
  2002. * Inline UCFG API to be used by HDD/OSIF callers
  2003. *
  2004. * Return: QDF Status
  2005. */
  2006. static inline QDF_STATUS
  2007. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2008. uint32_t *value)
  2009. {
  2010. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2011. }
  2012. /**
  2013. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2014. * allowance for BE
  2015. * @psoc: pointer to psoc object
  2016. * @value: Value that needs to be set from the caller
  2017. *
  2018. * Inline UCFG API to be used by HDD/OSIF callers
  2019. *
  2020. * Return: QDF Status
  2021. */
  2022. static inline QDF_STATUS
  2023. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2024. {
  2025. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2026. }
  2027. /**
  2028. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2029. * interval for BK
  2030. * @psoc: pointer to psoc object
  2031. * @value: pointer to the value which will be filled for the caller
  2032. *
  2033. * Inline UCFG API to be used by HDD/OSIF callers
  2034. *
  2035. * Return: QDF Status
  2036. */
  2037. static inline QDF_STATUS
  2038. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2039. uint32_t *value)
  2040. {
  2041. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2042. }
  2043. /**
  2044. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2045. * interval for BK
  2046. * @psoc: pointer to psoc object
  2047. * @value: Value that needs to be set from the caller
  2048. *
  2049. * Inline UCFG API to be used by HDD/OSIF callers
  2050. *
  2051. * Return: QDF Status
  2052. */
  2053. static inline QDF_STATUS
  2054. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2055. uint32_t *value)
  2056. {
  2057. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2058. }
  2059. /**
  2060. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2061. * @psoc: pointer to psoc object
  2062. * @value: Value that needs to be set from the caller
  2063. *
  2064. * Inline UCFG API to be used by HDD/OSIF callers
  2065. *
  2066. * Return: QDF Status
  2067. */
  2068. static inline QDF_STATUS
  2069. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2070. {
  2071. return wlan_mlme_get_wmm_mode(psoc, value);
  2072. }
  2073. /**
  2074. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2075. * @psoc: pointer to psoc object
  2076. * @value: Value that needs to be set from the caller
  2077. *
  2078. * Inline UCFG API to be used by HDD/OSIF callers
  2079. *
  2080. * Return: QDF Status
  2081. */
  2082. static inline QDF_STATUS
  2083. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2084. {
  2085. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2086. }
  2087. /**
  2088. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2089. * @psoc: pointer to psoc object
  2090. * @value: Value that needs to be set from the caller
  2091. *
  2092. * Inline UCFG API to be used by HDD/OSIF callers
  2093. *
  2094. * Return: QDF Status
  2095. */
  2096. static inline QDF_STATUS
  2097. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2098. {
  2099. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2100. }
  2101. /**
  2102. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2103. * @psoc: pointer to psoc object
  2104. * @value: Value that needs to be set from the caller
  2105. *
  2106. * Inline UCFG API to be used by HDD/OSIF callers
  2107. *
  2108. * Return: QDF Status
  2109. */
  2110. static inline QDF_STATUS
  2111. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2112. bool *value)
  2113. {
  2114. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2115. }
  2116. #endif /* _WLAN_MLME_UCFG_API_H_ */