wlan_mlme_ucfg_api.h 60 KB

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