wlan_mlme_ucfg_api.h 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471
  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_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  691. * @psoc: pointer to psoc object
  692. * @val: Pointer to the value which will be filled for the caller
  693. *
  694. * Return: QDF Status
  695. */
  696. QDF_STATUS
  697. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  698. /**
  699. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  700. * @psoc: pointer to psoc object
  701. * @val: Pointer to enable/disable roaming offload
  702. *
  703. * Return: QDF Status
  704. */
  705. QDF_STATUS
  706. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  707. bool *val);
  708. /**
  709. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  710. * @psoc: pointer to psoc object
  711. * @val: enable/disable roaming offload
  712. *
  713. * Return: QDF Status
  714. */
  715. QDF_STATUS
  716. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  717. bool val);
  718. /**
  719. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  720. * @psoc: pointer to psoc object
  721. * @val: first scan bucket threshold
  722. *
  723. * Return: QDF Status
  724. */
  725. QDF_STATUS
  726. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  727. uint8_t *val);
  728. /**
  729. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  730. * @psoc: pointer to psoc object
  731. * @inactivity_timeout: buffer to hold value
  732. *
  733. * Return: QDF Status
  734. */
  735. QDF_STATUS
  736. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  737. uint32_t *inactivity_timeout);
  738. /**
  739. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  740. * @psoc: pointer to psoc object
  741. * @inactivity_timeout: value to be set
  742. *
  743. * Return: QDF Status
  744. */
  745. QDF_STATUS
  746. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  747. uint32_t inactivity_timeout);
  748. /**
  749. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  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_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  759. int value)
  760. {
  761. return wlan_mlme_set_sap_listen_interval(psoc, value);
  762. }
  763. /**
  764. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  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_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  774. int value)
  775. {
  776. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  777. }
  778. /**
  779. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  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_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  789. int value)
  790. {
  791. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  792. }
  793. /**
  794. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  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_get_peer_info(struct wlan_objmgr_psoc *psoc,
  804. bool *value)
  805. {
  806. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  807. }
  808. /**
  809. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  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_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  819. bool *value)
  820. {
  821. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  822. }
  823. /**
  824. * ucfg_mlme_get_sap_max_peers() - get the sap max 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_peers(struct wlan_objmgr_psoc *psoc,
  834. int *value)
  835. {
  836. return wlan_mlme_get_sap_max_peers(psoc, value);
  837. }
  838. /**
  839. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  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_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  849. {
  850. return wlan_mlme_set_sap_max_peers(psoc, value);
  851. }
  852. /**
  853. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  854. * @psoc: pointer to psoc object
  855. * @value: Value that needs to be set from the caller
  856. *
  857. * Inline UCFG API to be used by HDD/OSIF callers
  858. *
  859. * Return: QDF Status
  860. */
  861. static inline
  862. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  863. int *value)
  864. {
  865. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  866. }
  867. /**
  868. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  869. * reorder buffs
  870. * @psoc: pointer to psoc object
  871. * @value: Value that needs to be set from the caller
  872. *
  873. * Inline UCFG API to be used by HDD/OSIF callers
  874. *
  875. * Return: QDF Status
  876. */
  877. static inline
  878. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  879. *psoc, int *value)
  880. {
  881. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  882. }
  883. /**
  884. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  885. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  895. int *value)
  896. {
  897. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  898. }
  899. /**
  900. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  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_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  910. bool *value)
  911. {
  912. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  913. }
  914. /**
  915. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  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_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  925. bool *value)
  926. {
  927. return wlan_mlme_get_sap_internal_restart(psoc, value);
  928. }
  929. /**
  930. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  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_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  940. uint8_t *value)
  941. {
  942. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  943. }
  944. /**
  945. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  946. * @psoc: pointer to psoc object
  947. * @value: Value that needs to be set from the caller
  948. *
  949. * Inline UCFG API to be used by HDD/OSIF callers
  950. *
  951. * Return: QDF Status
  952. */
  953. static inline
  954. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  955. uint8_t *value)
  956. {
  957. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  958. }
  959. /**
  960. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  961. * @psoc: pointer to psoc object
  962. * @value: Value that needs to be set from the caller
  963. *
  964. * Inline UCFG API to be used by HDD/OSIF callers
  965. *
  966. * Return: QDF Status
  967. */
  968. static inline
  969. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  970. bool *value)
  971. {
  972. return wlan_mlme_get_sap_country_priority(psoc, value);
  973. }
  974. /**
  975. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  976. * interval
  977. * @psoc: pointer to psoc object
  978. * @value: Value that needs to be set from the caller
  979. *
  980. * Inline UCFG API to be used by HDD/OSIF callers
  981. *
  982. * Return: QDF Status
  983. */
  984. static inline
  985. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  986. *psoc, int *value)
  987. {
  988. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  989. }
  990. /**
  991. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  992. * switch rate enabled.
  993. * @psoc: pointer to psoc object
  994. * @value: Value that needs to be set from the caller
  995. *
  996. * Inline UCFG API to be used by HDD/OSIF callers
  997. *
  998. * Return: QDF Status
  999. */
  1000. static inline
  1001. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1002. *psoc, bool *value)
  1003. {
  1004. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1005. }
  1006. /**
  1007. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1008. *
  1009. * @psoc: pointer to psoc object
  1010. * @value: Value that needs to be set from the caller
  1011. *
  1012. * Inline UCFG API to be used by HDD/OSIF callers
  1013. *
  1014. * Return: QDF Status
  1015. */
  1016. static inline
  1017. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1018. *psoc, bool *value)
  1019. {
  1020. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1021. }
  1022. /**
  1023. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1024. *
  1025. * @psoc: pointer to psoc object
  1026. * @value: Value that needs to be set from the caller
  1027. *
  1028. * Inline UCFG API to be used by HDD/OSIF callers
  1029. *
  1030. * Return: QDF Status
  1031. */
  1032. static inline
  1033. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1034. *psoc, bool *value)
  1035. {
  1036. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1037. }
  1038. /**
  1039. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1040. * info for STA
  1041. *
  1042. * @psoc: pointer to psoc object
  1043. * @value: pointer to the value which will be filled for the caller
  1044. *
  1045. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1046. * OCE STA feature enable value
  1047. *
  1048. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1049. */
  1050. static inline
  1051. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1052. bool *value)
  1053. {
  1054. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1055. }
  1056. /**
  1057. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1058. * info for SAP
  1059. *
  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 to get the
  1064. * OCE SAP feature enable value
  1065. *
  1066. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1067. */
  1068. static inline
  1069. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1070. bool *value)
  1071. {
  1072. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1073. }
  1074. /**
  1075. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  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
  1080. *
  1081. * Return: QDF Status
  1082. */
  1083. static inline
  1084. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1085. uint32_t *value)
  1086. {
  1087. return wlan_mlme_get_rts_threshold(psoc, value);
  1088. }
  1089. /**
  1090. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1091. * @psoc: pointer to psoc object
  1092. * @value: pointer to the value which will be filled for the caller
  1093. *
  1094. * Inline UCFG API to be used by HDD/OSIF callers
  1095. *
  1096. * Return: QDF Status
  1097. */
  1098. static inline
  1099. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1100. uint32_t value)
  1101. {
  1102. return wlan_mlme_set_rts_threshold(psoc, value);
  1103. }
  1104. /**
  1105. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1106. * config
  1107. * @psoc: pointer to psoc object
  1108. * @value: Value that needs to be set from the caller
  1109. *
  1110. * Inline UCFG API to be used by HDD/OSIF callers
  1111. *
  1112. * Return: QDF Status
  1113. */
  1114. static inline
  1115. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1116. uint32_t *value)
  1117. {
  1118. return wlan_mlme_get_frag_threshold(psoc, value);
  1119. }
  1120. /**
  1121. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1122. * @psoc: pointer to psoc object
  1123. * @value: pointer to the value which will be filled for the caller
  1124. *
  1125. * Inline UCFG API to be used by HDD/OSIF callers
  1126. *
  1127. * Return: QDF Status
  1128. */
  1129. static inline
  1130. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1131. uint32_t value)
  1132. {
  1133. return wlan_mlme_set_frag_threshold(psoc, value);
  1134. }
  1135. /**
  1136. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1137. *
  1138. * @psoc: pointer to psoc object
  1139. * @value: pointer to the value which will be filled for the caller
  1140. *
  1141. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1142. * fils enable value
  1143. *
  1144. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1145. */
  1146. static inline
  1147. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1148. bool *value)
  1149. {
  1150. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1151. }
  1152. /**
  1153. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1154. *
  1155. * @psoc: pointer to psoc object
  1156. * @value: value that needs to be set from the caller
  1157. *
  1158. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1159. * fils enable value
  1160. *
  1161. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1162. */
  1163. static inline
  1164. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1165. bool value)
  1166. {
  1167. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1168. }
  1169. /**
  1170. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1171. * @psoc: pointer to psoc object
  1172. * @value: value that needs to be set from the caller
  1173. *
  1174. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1175. * enable bcast probe resp info
  1176. *
  1177. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1178. */
  1179. static inline
  1180. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1181. bool value)
  1182. {
  1183. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1184. }
  1185. /**
  1186. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1187. * @psoc: psoc context
  1188. * @value: data to be set
  1189. *
  1190. * Inline UCFG API to be used by HDD/OSIF callers
  1191. *
  1192. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1193. */
  1194. static inline
  1195. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1196. uint8_t value)
  1197. {
  1198. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1199. }
  1200. /**
  1201. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1202. * cfg item
  1203. * @psoc: psoc context
  1204. * @value: data to be set
  1205. *
  1206. * Inline UCFG API to be used by HDD/OSIF callers
  1207. *
  1208. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1209. */
  1210. static inline
  1211. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1212. uint8_t *value)
  1213. {
  1214. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1215. }
  1216. /**
  1217. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1218. * cfg item
  1219. * @psoc: psoc context
  1220. * @value: data to be set
  1221. *
  1222. * Inline UCFG API to be used by HDD/OSIF callers
  1223. *
  1224. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1225. */
  1226. static inline QDF_STATUS
  1227. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1228. bool value)
  1229. {
  1230. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1231. }
  1232. /**
  1233. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1234. * @psoc: psoc context
  1235. * @value: data to be set
  1236. *
  1237. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1238. * ignore_peer_ht_opmode flag value
  1239. *
  1240. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1241. */
  1242. static inline QDF_STATUS
  1243. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1244. bool *value)
  1245. {
  1246. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1247. }
  1248. /**
  1249. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1250. * cfg item
  1251. * @psoc: psoc context
  1252. * @value: data to be set
  1253. *
  1254. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1255. * ignore_peer_ht_opmode flag value
  1256. *
  1257. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1258. */
  1259. static inline QDF_STATUS
  1260. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1261. bool value)
  1262. {
  1263. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1264. }
  1265. /**
  1266. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1267. * cfg item
  1268. * @psoc: psoc context
  1269. * @value: pointer to get required data
  1270. *
  1271. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1272. * ignore_peer_ht_opmode flag value
  1273. *
  1274. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1275. */
  1276. static inline QDF_STATUS
  1277. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1278. bool *value)
  1279. {
  1280. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1281. }
  1282. /**
  1283. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1284. * cfg item
  1285. * @psoc: psoc context
  1286. * @value: pointer to get required data
  1287. *
  1288. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1289. * ignore_peer_ht_opmode flag value
  1290. *
  1291. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1292. */
  1293. static inline QDF_STATUS
  1294. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1295. bool *value)
  1296. {
  1297. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1298. }
  1299. /**
  1300. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1301. * support cap into cfg item
  1302. * @psoc: psoc context
  1303. * @value: data to be set
  1304. *
  1305. * Inline UCFG API to be used by HDD/OSIF callers
  1306. *
  1307. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1308. */
  1309. static inline QDF_STATUS
  1310. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1311. uint8_t value)
  1312. {
  1313. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1314. }
  1315. /**
  1316. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1317. * support cap into cfg item
  1318. * @psoc: psoc context
  1319. * @value: data to be set
  1320. *
  1321. * Inline UCFG API to be used by HDD/OSIF callers
  1322. *
  1323. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1324. */
  1325. static inline QDF_STATUS
  1326. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1327. uint8_t *value)
  1328. {
  1329. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1330. }
  1331. /**
  1332. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1333. * cfg item
  1334. * @psoc: psoc context
  1335. * @value: pointer to get required data
  1336. *
  1337. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1338. * ignore_peer_ht_opmode flag value
  1339. *
  1340. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1341. */
  1342. static inline QDF_STATUS
  1343. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1344. uint32_t *value)
  1345. {
  1346. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1347. }
  1348. /**
  1349. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1350. * cfg item
  1351. * @psoc: psoc context
  1352. * @value: data to be set
  1353. *
  1354. * Inline UCFG API to be used by HDD/OSIF callers
  1355. *
  1356. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1357. */
  1358. static inline QDF_STATUS
  1359. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1360. uint32_t value)
  1361. {
  1362. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1363. }
  1364. /**
  1365. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1366. * cfg item
  1367. * @psoc: psoc context
  1368. * @value: pointer to get required data
  1369. *
  1370. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1371. * ignore_peer_ht_opmode flag value
  1372. *
  1373. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1374. */
  1375. static inline QDF_STATUS
  1376. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1377. uint32_t *value)
  1378. {
  1379. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1380. }
  1381. /**
  1382. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1383. * cfg item
  1384. * @psoc: psoc context
  1385. * @value: data to be set
  1386. *
  1387. * Inline UCFG API to be used by HDD/OSIF callers
  1388. *
  1389. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1390. */
  1391. static inline QDF_STATUS
  1392. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1393. uint32_t value)
  1394. {
  1395. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1396. }
  1397. /**
  1398. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1399. * rate into cfg item
  1400. * @psoc: psoc context
  1401. * @value: data to be set
  1402. *
  1403. * Inline UCFG API to be used by HDD/OSIF callers
  1404. *
  1405. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1406. */
  1407. static inline QDF_STATUS
  1408. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1409. uint32_t value)
  1410. {
  1411. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1412. }
  1413. /**
  1414. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1415. * cfg item
  1416. * @psoc: psoc context
  1417. * @value: data to be set
  1418. *
  1419. * Inline UCFG API to be used by HDD/OSIF callers
  1420. *
  1421. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1422. */
  1423. static inline QDF_STATUS
  1424. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1425. uint32_t value)
  1426. {
  1427. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1428. }
  1429. /**
  1430. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1431. * cfg item
  1432. * @psoc: psoc context
  1433. * @value: data to be set
  1434. *
  1435. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1436. * ignore_peer_ht_opmode flag value
  1437. *
  1438. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1439. */
  1440. static inline QDF_STATUS
  1441. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1442. uint32_t *value)
  1443. {
  1444. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1445. }
  1446. /**
  1447. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1448. * cfg item
  1449. * @psoc: psoc context
  1450. * @value: data to be set
  1451. *
  1452. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1453. * ignore_peer_ht_opmode flag value
  1454. *
  1455. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1456. */
  1457. static inline QDF_STATUS
  1458. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1459. uint32_t value)
  1460. {
  1461. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1462. }
  1463. /**
  1464. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1465. * for 11ac
  1466. * @psoc: psoc context
  1467. * @value: data to be set
  1468. *
  1469. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1470. * ignore_peer_ht_opmode flag value
  1471. *
  1472. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1473. */
  1474. static inline QDF_STATUS
  1475. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1476. {
  1477. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1478. }
  1479. /**
  1480. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1481. * for 11ac
  1482. * @psoc: psoc context
  1483. * @value: data to be set
  1484. *
  1485. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1486. * ignore_peer_ht_opmode flag value
  1487. *
  1488. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1489. */
  1490. static inline QDF_STATUS
  1491. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1492. {
  1493. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1494. }
  1495. /**
  1496. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1497. * for 11ac
  1498. * @psoc: psoc context
  1499. * @value: data to be set
  1500. *
  1501. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1502. * ignore_peer_ht_opmode flag value
  1503. *
  1504. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1505. */
  1506. static inline QDF_STATUS
  1507. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1508. {
  1509. return wlan_mlme_get_vht_channel_width(psoc, value);
  1510. }
  1511. /**
  1512. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1513. * for 11ac
  1514. * @psoc: psoc context
  1515. * @value: data to be set
  1516. *
  1517. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1518. * ignore_peer_ht_opmode flag value
  1519. *
  1520. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1521. */
  1522. static inline QDF_STATUS
  1523. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1524. {
  1525. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1526. }
  1527. /**
  1528. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1529. * for 11ac
  1530. * @psoc: psoc context
  1531. * @value: data to be set
  1532. *
  1533. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1534. * ignore_peer_ht_opmode flag value
  1535. *
  1536. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1537. */
  1538. static inline QDF_STATUS
  1539. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1540. {
  1541. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1542. }
  1543. /**
  1544. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1545. * for 11ac
  1546. * @psoc: psoc context
  1547. * @value: data to be set
  1548. *
  1549. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1550. * ignore_peer_ht_opmode flag value
  1551. *
  1552. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1553. */
  1554. static inline QDF_STATUS
  1555. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1556. {
  1557. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1558. }
  1559. /**
  1560. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1561. * for 11ac
  1562. * @psoc: psoc context
  1563. * @value: data to be set
  1564. *
  1565. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1566. * ignore_peer_ht_opmode flag value
  1567. *
  1568. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1569. */
  1570. static inline QDF_STATUS
  1571. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1572. {
  1573. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1574. }
  1575. /**
  1576. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  1577. * @vdev: pointer to the vdev obj
  1578. *
  1579. * This API will get the ini config of the vdev related to
  1580. * the nss, chains params
  1581. *
  1582. * Return: pointer to the nss, chain param ini cfg structure
  1583. */
  1584. static inline struct wlan_mlme_nss_chains *
  1585. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  1586. {
  1587. return mlme_get_ini_vdev_config(vdev);
  1588. }
  1589. /**
  1590. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  1591. * @vdev: pointer to the vdev obj
  1592. *
  1593. * This API will get the dynamic config of the vdev related to nss,
  1594. * chains params
  1595. *
  1596. * Return: pointer to the nss, chain param dynamic cfg structure
  1597. */
  1598. static inline struct wlan_mlme_nss_chains *
  1599. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  1600. {
  1601. return mlme_get_dynamic_vdev_config(vdev);
  1602. }
  1603. /**
  1604. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1605. * @psoc: psoc context
  1606. * @value: data to be set
  1607. *
  1608. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1609. * ignore_peer_ht_opmode flag value
  1610. *
  1611. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1612. */
  1613. static inline QDF_STATUS
  1614. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1615. {
  1616. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1617. }
  1618. /**
  1619. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1620. * @psoc: psoc context
  1621. * @value: data to be set
  1622. *
  1623. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1624. * ignore_peer_ht_opmode flag value
  1625. *
  1626. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1627. */
  1628. static inline QDF_STATUS
  1629. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1630. {
  1631. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1632. }
  1633. /**
  1634. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1635. * @psoc: psoc context
  1636. * @value: data to be set
  1637. *
  1638. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1639. * ignore_peer_ht_opmode flag value
  1640. *
  1641. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1642. */
  1643. static inline QDF_STATUS
  1644. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1645. {
  1646. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1647. }
  1648. /**
  1649. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1650. * @psoc: psoc context
  1651. * @value: data to be set
  1652. *
  1653. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1654. * ignore_peer_ht_opmode flag value
  1655. *
  1656. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1657. */
  1658. static inline QDF_STATUS
  1659. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1660. {
  1661. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1662. }
  1663. /**
  1664. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  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_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1675. {
  1676. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1677. }
  1678. /**
  1679. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1680. * @psoc: psoc context
  1681. * @value: data to be set
  1682. *
  1683. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1684. * ignore_peer_ht_opmode flag value
  1685. *
  1686. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1687. */
  1688. static inline QDF_STATUS
  1689. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1690. {
  1691. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1692. }
  1693. /**
  1694. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1695. * @psoc: psoc context
  1696. * @value: data to be set
  1697. *
  1698. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1699. * ignore_peer_ht_opmode flag value
  1700. *
  1701. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1702. */
  1703. static inline QDF_STATUS
  1704. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1705. {
  1706. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1707. }
  1708. /**
  1709. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1710. * @psoc: psoc context
  1711. * @value: data to be set
  1712. *
  1713. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1714. * ignore_peer_ht_opmode flag value
  1715. *
  1716. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1717. */
  1718. static inline QDF_STATUS
  1719. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1720. struct wma_tgt_vht_cap *cfg)
  1721. {
  1722. return mlme_update_vht_cap(psoc, cfg);
  1723. }
  1724. /**
  1725. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1726. * streams supported for vht
  1727. * @psoc: psoc context
  1728. * @value: data to be set
  1729. *
  1730. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1731. * ignore_peer_ht_opmode flag value
  1732. *
  1733. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1734. */
  1735. static inline QDF_STATUS
  1736. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1737. {
  1738. return mlme_update_nss_vht_cap(psoc);
  1739. }
  1740. /**
  1741. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1742. * @psoc: pointer to psoc object
  1743. * @buf: buffer to get rates set
  1744. * @len: length of the buffer
  1745. * Return: QDF Status
  1746. */
  1747. QDF_STATUS
  1748. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1749. qdf_size_t *len);
  1750. /**
  1751. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1752. * @psoc: pointer to psoc object
  1753. * @buf: buffer to get rates set
  1754. * @len: length of the buffer
  1755. * Return: QDF Status
  1756. */
  1757. QDF_STATUS
  1758. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1759. qdf_size_t *len);
  1760. /**
  1761. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1762. * @psoc: pointer to psoc object
  1763. * @buf: caller buffer to copy mcs set info
  1764. * @len: length of the buffer
  1765. * Return: QDF Status
  1766. */
  1767. QDF_STATUS
  1768. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1769. qdf_size_t *len);
  1770. /**
  1771. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1772. * @psoc: pointer to psoc object
  1773. * @buf: caller buffer having mcs set info
  1774. * @len: length of the buffer
  1775. * Return: QDF Status
  1776. */
  1777. QDF_STATUS
  1778. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1779. qdf_size_t len);
  1780. /**
  1781. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1782. * @psoc: pointer to psoc object
  1783. * @buf: caller buffer to copy mcs set info
  1784. * @len: length of the buffer
  1785. * Return: QDF Status
  1786. */
  1787. QDF_STATUS
  1788. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1789. qdf_size_t *len);
  1790. /**
  1791. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1792. * for VI
  1793. * @psoc: pointer to psoc object
  1794. * @value: Value that needs to be set from the caller
  1795. *
  1796. * Inline UCFG API to be used by HDD/OSIF callers
  1797. *
  1798. * Return: QDF Status
  1799. */
  1800. static inline QDF_STATUS
  1801. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  1802. uint8_t *value)
  1803. {
  1804. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  1805. }
  1806. /**
  1807. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1808. * MSDU size for VI
  1809. * @psoc: pointer to psoc object
  1810. * @value: Value that needs to be set from the caller
  1811. *
  1812. * Inline UCFG API to be used by HDD/OSIF callers
  1813. *
  1814. * Return: QDF Status
  1815. */
  1816. static inline QDF_STATUS
  1817. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1818. uint16_t *value)
  1819. {
  1820. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  1821. }
  1822. /**
  1823. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1824. * rate for VI
  1825. * @psoc: pointer to psoc object
  1826. * @value: Value that needs to be set from the caller
  1827. *
  1828. * Inline UCFG API to be used by HDD/OSIF callers
  1829. *
  1830. * Return: QDF Status
  1831. */
  1832. static inline QDF_STATUS
  1833. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1834. uint32_t *value)
  1835. {
  1836. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  1837. }
  1838. /**
  1839. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1840. * rate for VI
  1841. * @psoc: pointer to psoc object
  1842. * @value: Value that needs to be set from the caller
  1843. *
  1844. * Inline UCFG API to be used by HDD/OSIF callers
  1845. *
  1846. * Return: QDF Status
  1847. */
  1848. static inline QDF_STATUS
  1849. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1850. uint32_t *value)
  1851. {
  1852. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  1853. }
  1854. /**
  1855. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1856. * allowance for VI
  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_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1866. {
  1867. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  1868. }
  1869. /**
  1870. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1871. * interval for video
  1872. * @psoc: pointer to psoc object
  1873. * @value: pointer to the value which will be filled for the caller
  1874. *
  1875. * Inline UCFG API to be used by HDD/OSIF callers
  1876. *
  1877. * Return: QDF Status
  1878. */
  1879. static inline QDF_STATUS
  1880. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1881. uint32_t *value)
  1882. {
  1883. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  1884. }
  1885. /**
  1886. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1887. * interval for video
  1888. * @psoc: pointer to psoc object
  1889. * @value: Value that needs to be set from the caller
  1890. *
  1891. * Inline UCFG API to be used by HDD/OSIF callers
  1892. *
  1893. * Return: QDF Status
  1894. */
  1895. static inline QDF_STATUS
  1896. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1897. uint32_t *value)
  1898. {
  1899. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  1900. }
  1901. /**
  1902. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1903. * for BE
  1904. * @psoc: pointer to psoc object
  1905. * @value: Value that needs to be set from the caller
  1906. *
  1907. * Inline UCFG API to be used by HDD/OSIF callers
  1908. *
  1909. * Return: QDF Status
  1910. */
  1911. static inline QDF_STATUS
  1912. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1913. {
  1914. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  1915. }
  1916. /**
  1917. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1918. * MSDU size for BE
  1919. * @psoc: pointer to psoc object
  1920. * @value: Value that needs to be set from the caller
  1921. *
  1922. * Inline UCFG API to be used by HDD/OSIF callers
  1923. *
  1924. * Return: QDF Status
  1925. */
  1926. static inline QDF_STATUS
  1927. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1928. uint16_t *value)
  1929. {
  1930. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  1931. }
  1932. /**
  1933. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1934. * rate for BE
  1935. * @psoc: pointer to psoc object
  1936. * @value: Value that needs to be set from the caller
  1937. *
  1938. * Inline UCFG API to be used by HDD/OSIF callers
  1939. *
  1940. * Return: QDF Status
  1941. */
  1942. static inline QDF_STATUS
  1943. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1944. uint32_t *value)
  1945. {
  1946. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  1947. }
  1948. /**
  1949. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1950. * rate for BE
  1951. * @psoc: pointer to psoc object
  1952. * @value: Value that needs to be set from the caller
  1953. *
  1954. * Inline UCFG API to be used by HDD/OSIF callers
  1955. *
  1956. * Return: QDF Status
  1957. */
  1958. static inline QDF_STATUS
  1959. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1960. uint32_t *value)
  1961. {
  1962. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  1963. }
  1964. /**
  1965. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1966. * allowance 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_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1976. {
  1977. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  1978. }
  1979. /**
  1980. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1981. * interval for BE
  1982. * @psoc: pointer to psoc object
  1983. * @value: pointer to the value which will be filled for the caller
  1984. *
  1985. * Inline UCFG API to be used by HDD/OSIF callers
  1986. *
  1987. * Return: QDF Status
  1988. */
  1989. static inline QDF_STATUS
  1990. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1991. uint32_t *value)
  1992. {
  1993. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  1994. }
  1995. /**
  1996. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1997. * interval for BE
  1998. * @psoc: pointer to psoc object
  1999. * @value: Value that needs to be set from the caller
  2000. *
  2001. * Inline UCFG API to be used by HDD/OSIF callers
  2002. *
  2003. * Return: QDF Status
  2004. */
  2005. static inline QDF_STATUS
  2006. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2007. uint32_t *value)
  2008. {
  2009. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2010. }
  2011. /**
  2012. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2013. * for BK
  2014. * @psoc: pointer to psoc object
  2015. * @value: Value that needs to be set from the caller
  2016. *
  2017. * Inline UCFG API to be used by HDD/OSIF callers
  2018. *
  2019. * Return: QDF Status
  2020. */
  2021. static inline QDF_STATUS
  2022. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2023. {
  2024. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2025. }
  2026. /**
  2027. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2028. * MSDU size for BE
  2029. * @psoc: pointer to psoc object
  2030. * @value: Value that needs to be set from the caller
  2031. *
  2032. * Inline UCFG API to be used by HDD/OSIF callers
  2033. *
  2034. * Return: QDF Status
  2035. */
  2036. static inline QDF_STATUS
  2037. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2038. uint16_t *value)
  2039. {
  2040. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2041. }
  2042. /**
  2043. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2044. * rate for BK
  2045. * @psoc: pointer to psoc object
  2046. * @value: Value that needs to be set from the caller
  2047. *
  2048. * Inline UCFG API to be used by HDD/OSIF callers
  2049. *
  2050. * Return: QDF Status
  2051. */
  2052. static inline QDF_STATUS
  2053. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2054. uint32_t *value)
  2055. {
  2056. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2057. }
  2058. /**
  2059. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2060. * rate for BE
  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_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2070. uint32_t *value)
  2071. {
  2072. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2073. }
  2074. /**
  2075. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2076. * allowance for BE
  2077. * @psoc: pointer to psoc object
  2078. * @value: Value that needs to be set from the caller
  2079. *
  2080. * Inline UCFG API to be used by HDD/OSIF callers
  2081. *
  2082. * Return: QDF Status
  2083. */
  2084. static inline QDF_STATUS
  2085. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2086. {
  2087. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2088. }
  2089. /**
  2090. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2091. * interval for BK
  2092. * @psoc: pointer to psoc object
  2093. * @value: pointer to the value which will be filled for the caller
  2094. *
  2095. * Inline UCFG API to be used by HDD/OSIF callers
  2096. *
  2097. * Return: QDF Status
  2098. */
  2099. static inline QDF_STATUS
  2100. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2101. uint32_t *value)
  2102. {
  2103. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2104. }
  2105. /**
  2106. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2107. * interval for BK
  2108. * @psoc: pointer to psoc object
  2109. * @value: Value that needs to be set from the caller
  2110. *
  2111. * Inline UCFG API to be used by HDD/OSIF callers
  2112. *
  2113. * Return: QDF Status
  2114. */
  2115. static inline QDF_STATUS
  2116. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2117. uint32_t *value)
  2118. {
  2119. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2120. }
  2121. /**
  2122. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2123. * @psoc: pointer to psoc object
  2124. * @value: Value that needs to be set from the caller
  2125. *
  2126. * Inline UCFG API to be used by HDD/OSIF callers
  2127. *
  2128. * Return: QDF Status
  2129. */
  2130. static inline QDF_STATUS
  2131. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2132. {
  2133. return wlan_mlme_get_wmm_mode(psoc, value);
  2134. }
  2135. #ifdef WLAN_FEATURE_11AX
  2136. /**
  2137. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2138. *
  2139. * @psoc: pointer to psoc object
  2140. * @cfg: pointer to config params from target
  2141. *
  2142. * Inline UCFG API to be used by HDD/OSIF callers to update
  2143. * he caps in mlme.
  2144. *
  2145. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2146. */
  2147. static inline
  2148. QDF_STATUS ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2149. struct wma_tgt_cfg *cfg)
  2150. {
  2151. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2152. }
  2153. /**
  2154. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2155. * @psoc: pointer to psoc object
  2156. * @value: Value that needs to be set from the caller
  2157. *
  2158. * Return: QDF Status
  2159. */
  2160. static inline
  2161. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2162. uint32_t *value)
  2163. {
  2164. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2165. }
  2166. /**
  2167. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2168. * @psoc: pointer to psoc object
  2169. * @value: Value that needs to be set from the caller
  2170. *
  2171. * Return: QDF Status
  2172. */
  2173. static inline
  2174. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2175. uint32_t value)
  2176. {
  2177. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2178. }
  2179. /**
  2180. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2181. * @psoc: pointer to psoc object
  2182. * @value: Value that needs to be set from the caller
  2183. *
  2184. * Return: QDF Status
  2185. */
  2186. static inline
  2187. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2188. uint8_t *value)
  2189. {
  2190. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2191. }
  2192. /**
  2193. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2194. * @psoc: pointer to psoc object
  2195. * @value: Value that needs to be set from the caller
  2196. *
  2197. * Return: QDF Status
  2198. */
  2199. static inline
  2200. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2201. uint8_t *value)
  2202. {
  2203. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2204. }
  2205. #endif
  2206. /**
  2207. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2208. * @psoc: pointer to psoc object
  2209. * @value: Value that needs to be set from the caller
  2210. *
  2211. * Inline UCFG API to be used by HDD/OSIF callers
  2212. *
  2213. * Return: QDF Status
  2214. */
  2215. static inline QDF_STATUS
  2216. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2217. {
  2218. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2219. }
  2220. /**
  2221. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2222. * @psoc: pointer to psoc object
  2223. * @value: Value that needs to be set from the caller
  2224. *
  2225. * Inline UCFG API to be used by HDD/OSIF callers
  2226. *
  2227. * Return: QDF Status
  2228. */
  2229. static inline QDF_STATUS
  2230. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2231. {
  2232. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2233. }
  2234. /**
  2235. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2236. * @psoc: pointer to psoc object
  2237. * @value: Value that needs to be set from the caller
  2238. *
  2239. * Inline UCFG API to be used by HDD/OSIF callers
  2240. *
  2241. * Return: QDF Status
  2242. */
  2243. static inline QDF_STATUS
  2244. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2245. bool *value)
  2246. {
  2247. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2248. }
  2249. #ifdef FEATURE_WLAN_ESE
  2250. /**
  2251. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2252. * @psoc: pointer to psoc object
  2253. * @value: Value that needs to be get from the caller
  2254. *
  2255. * Inline UCFG API to be used by HDD/OSIF callers
  2256. *
  2257. * Return: None
  2258. */
  2259. static inline void
  2260. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2261. uint32_t *value)
  2262. {
  2263. wlan_mlme_get_inactivity_interval(psoc, value);
  2264. }
  2265. #endif
  2266. /**
  2267. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  2268. * @psoc: pointer to psoc object
  2269. * @value: Value that needs to be get from the caller
  2270. *
  2271. * Inline UCFG API to be used by HDD/OSIF callers
  2272. *
  2273. * Return: None
  2274. */
  2275. static inline void
  2276. ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  2277. bool *value)
  2278. {
  2279. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  2280. }
  2281. /**
  2282. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  2283. * @psoc: pointer to psoc object
  2284. * @value: Value that needs to be get from the caller
  2285. *
  2286. * Inline UCFG API to be used by HDD/OSIF callers
  2287. *
  2288. * Return: None
  2289. */
  2290. static inline void
  2291. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  2292. enum mlme_ts_info_ack_policy *value)
  2293. {
  2294. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  2295. }
  2296. /**
  2297. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  2298. * @psoc: pointer to psoc object
  2299. * @value: Value that needs to be get from the caller
  2300. *
  2301. * Inline UCFG API to be used by HDD/OSIF callers
  2302. *
  2303. * Return: QDF Status
  2304. */
  2305. static inline QDF_STATUS
  2306. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  2307. {
  2308. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  2309. }
  2310. #endif /* _WLAN_MLME_UCFG_API_H_ */