wlan_mlme_ucfg_api.h 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855
  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_get_bt_chain_separation_flag() - bt chain separation enable/disable
  587. * @psoc: pointer to psoc object
  588. * @value: Value that needs to be got for the caller
  589. *
  590. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  591. */
  592. static inline
  593. QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  594. bool *value)
  595. {
  596. return wlan_mlme_get_bt_chain_separation_flag(psoc, value);
  597. }
  598. /**
  599. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  600. *
  601. * @psoc: pointer to psoc object
  602. * @session_id: vdev_id
  603. *
  604. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  605. */
  606. static inline
  607. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  608. uint8_t session_id)
  609. {
  610. return wlan_mlme_configure_chain_mask(psoc, session_id);
  611. }
  612. /*
  613. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  614. * @psoc: pointer to psoc object
  615. * @val: Pointer to the value which will be filled for the caller
  616. *
  617. * Return: QDF Status
  618. */
  619. QDF_STATUS
  620. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  621. uint32_t *val);
  622. /*
  623. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  624. * @psoc: pointer to psoc object
  625. * @val: Pointer to the value which will be filled for the caller
  626. *
  627. * Return: QDF Status
  628. */
  629. QDF_STATUS
  630. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  631. bool *val);
  632. /**
  633. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  634. * @psoc: pointer to psoc object
  635. * @val: Pointer to the value which will be filled for the caller
  636. *
  637. * Return: QDF Status
  638. */
  639. QDF_STATUS
  640. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  641. uint32_t *val);
  642. /**
  643. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  644. * @psoc: pointer to psoc object
  645. * @val: Pointer to the value which will be filled for the caller
  646. *
  647. * Return: QDF Status
  648. */
  649. QDF_STATUS
  650. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  651. uint32_t val);
  652. /**
  653. * ucfg_mlme_get_twt_requestor() - Get twt requestor
  654. * @psoc: pointer to psoc object
  655. * @val: Pointer to the value which will be filled for the caller
  656. *
  657. * Return: QDF Status
  658. */
  659. QDF_STATUS
  660. ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
  661. bool *val);
  662. /**
  663. * ucfg_mlme_set_twt_requestor() - Set twt requestor
  664. * @psoc: pointer to psoc object
  665. * @val: value that needs to set to this config
  666. *
  667. * Return: QDF Status
  668. */
  669. QDF_STATUS
  670. ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc,
  671. bool val);
  672. /**
  673. * ucfg_mlme_get_twt_responder() - Get twt responder
  674. * @psoc: pointer to psoc object
  675. * @val: Pointer to the value which will be filled for the caller
  676. *
  677. * Return: QDF Status
  678. */
  679. QDF_STATUS
  680. ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc,
  681. bool *val);
  682. /**
  683. * ucfg_mlme_set_twt_responder() - Set twt responder
  684. * @psoc: pointer to psoc object
  685. * @val: value that needs to set to this config
  686. *
  687. * Return: QDF Status
  688. */
  689. QDF_STATUS
  690. ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc,
  691. bool val);
  692. /**
  693. * ucfg_mlme_get_bcast_twt() - Get bcast twt
  694. * @psoc: pointer to psoc object
  695. * @val: Pointer to the value which will be filled for the caller
  696. *
  697. * Return: QDF Status
  698. */
  699. QDF_STATUS
  700. ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc,
  701. bool *val);
  702. /**
  703. * ucfg_mlme_set_bcast_twt() - Set bcast twt
  704. * @psoc: pointer to psoc object
  705. * @val: value that needs to set to this config
  706. *
  707. * Return: QDF Status
  708. */
  709. QDF_STATUS
  710. ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc,
  711. bool val);
  712. /**
  713. * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout
  714. * @psoc: pointer to psoc object
  715. * @val: Pointer to the value which will be filled for the caller
  716. *
  717. * Return: QDF Status
  718. */
  719. QDF_STATUS
  720. ucfg_mlme_get_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  721. uint32_t *val);
  722. /**
  723. * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout
  724. * @psoc: pointer to psoc object
  725. * @val: value that needs to set to this config
  726. *
  727. * Return: QDF Status
  728. */
  729. QDF_STATUS
  730. ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  731. uint32_t val);
  732. /**
  733. * ucfg_mlme_get_enable_twt() - Get global twt config support
  734. * @psoc: pointer to psoc object
  735. * @val: Pointer to the value which will be filled for the caller
  736. *
  737. * Return: QDF Status
  738. */
  739. QDF_STATUS
  740. ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc,
  741. bool *val);
  742. /**
  743. * ucfg_mlme_set_enable_twt() - Set global twt config support
  744. * @psoc: pointer to psoc object
  745. * @val: value that needs to set to this config
  746. *
  747. * Return: QDF Status
  748. */
  749. QDF_STATUS
  750. ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
  751. bool val);
  752. /**
  753. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  754. * @psoc: pointer to psoc object
  755. * @out_mode: Pointer to the mode which will be filled for the caller
  756. *
  757. * Return: QDF Status
  758. */
  759. QDF_STATUS
  760. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  761. enum dot11p_mode *out_mode);
  762. /**
  763. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  764. * @psoc: pointer to psoc object
  765. * @val: Pointer to the value which will be filled for the caller
  766. *
  767. * Return: QDF Status
  768. */
  769. QDF_STATUS
  770. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  771. bool *val);
  772. /**
  773. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  774. * @psoc: pointer to psoc object
  775. * @val: Pointer to the value which will be filled for the caller
  776. *
  777. * Return: QDF Status
  778. */
  779. QDF_STATUS
  780. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  781. bool *val);
  782. /**
  783. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  784. * @psoc: pointer to psoc object
  785. * @val: Pointer to the value which will be filled for the caller
  786. *
  787. * Return: QDF Status
  788. */
  789. QDF_STATUS
  790. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  791. bool *val);
  792. /**
  793. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  794. * @psoc: pointer to psoc object
  795. * @val: Pointer to the value which will be filled for the caller
  796. *
  797. * Return: QDF Status
  798. */
  799. QDF_STATUS
  800. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  801. uint32_t *val);
  802. /**
  803. * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  804. * @psoc: pointer to psoc object
  805. * @val: Pointer to the value which will be filled for the caller
  806. *
  807. * Return: QDF Status
  808. */
  809. QDF_STATUS
  810. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  811. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  812. /**
  813. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  814. * @psoc: pointer to psoc object
  815. * @val: Pointer to enable/disable roaming offload
  816. *
  817. * Return: QDF Status
  818. */
  819. QDF_STATUS
  820. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  821. bool *val);
  822. /**
  823. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  824. * @psoc: pointer to psoc object
  825. * @val: enable/disable roaming offload
  826. *
  827. * Return: QDF Status
  828. */
  829. QDF_STATUS
  830. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  831. bool val);
  832. #endif
  833. /**
  834. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  835. * @psoc: pointer to psoc object
  836. * @val: first scan bucket threshold
  837. *
  838. * Return: QDF Status
  839. */
  840. QDF_STATUS
  841. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  842. uint8_t *val);
  843. /**
  844. * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  845. * @psoc: pointer to psoc object
  846. * @val: Pointer to the value which will be filled for the caller
  847. *
  848. * Return: QDF Status
  849. */
  850. QDF_STATUS
  851. ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  852. /**
  853. * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
  854. * @psoc: pointer to psoc object
  855. * @val: enable or disable MAWC
  856. *
  857. * Return: QDF Status
  858. */
  859. QDF_STATUS
  860. ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  861. /**
  862. * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not
  863. * @psoc: pointer to psoc object
  864. * @val: Pointer to the value which will be filled for the caller
  865. *
  866. * Return: QDF Status
  867. */
  868. QDF_STATUS
  869. ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  870. bool *val);
  871. /**
  872. * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
  873. * @psoc: pointer to psoc object
  874. * @val: Fast transition enable or disable
  875. *
  876. * Return: QDF Status
  877. */
  878. QDF_STATUS
  879. ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  880. bool val);
  881. /**
  882. * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
  883. * @psoc: pointer to psoc object
  884. * @val: Pointer to the value which will be filled for the caller
  885. *
  886. * Return: QDF Status
  887. */
  888. QDF_STATUS
  889. ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  890. bool *val);
  891. /**
  892. * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
  893. * @psoc: pointer to psoc object
  894. * @val: Roam scan offload enable or disable
  895. *
  896. * Return: QDF Status
  897. */
  898. QDF_STATUS
  899. ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  900. bool val);
  901. /**
  902. * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
  903. * channel time
  904. * @psoc: pointer to psoc object
  905. * @val: Pointer to the value which will be filled for the caller
  906. *
  907. * Return: QDF Status
  908. */
  909. QDF_STATUS
  910. ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
  911. uint16_t *val);
  912. /**
  913. * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
  914. * channel time
  915. * @psoc: pointer to psoc object
  916. * @val: Pointer to the value which will be filled for the caller
  917. *
  918. * Return: QDF Status
  919. */
  920. QDF_STATUS
  921. ucfg_mlme_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
  922. uint16_t *val);
  923. /**
  924. * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
  925. * @psoc: pointer to psoc object
  926. * @val: Pointer to the value which will be filled for the caller
  927. *
  928. * Return: QDF Status
  929. */
  930. QDF_STATUS
  931. ucfg_mlme_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
  932. uint8_t *val);
  933. /**
  934. * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
  935. * @psoc: pointer to psoc object
  936. * @val: Pointer to the value which will be filled for the caller
  937. *
  938. * Return: QDF Status
  939. */
  940. QDF_STATUS
  941. ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  942. uint8_t *val);
  943. /**
  944. * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
  945. * @psoc: pointer to psoc object
  946. * @val: Pointer to the value which will be filled for the caller
  947. *
  948. * Return: QDF Status
  949. */
  950. QDF_STATUS
  951. ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  952. uint8_t *val);
  953. /**
  954. * ucfg_mlme_is_lfr_enabled() - LFR enable or not
  955. * @psoc: pointer to psoc object
  956. * @val: Pointer to the value which will be filled for the caller
  957. *
  958. * Return: QDF Status
  959. */
  960. QDF_STATUS
  961. ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  962. /**
  963. * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
  964. * @psoc: pointer to psoc object
  965. * @val: Enable or disable LFR
  966. *
  967. * Return: QDF Status
  968. */
  969. QDF_STATUS
  970. ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  971. /**
  972. * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
  973. * @psoc: pointer to psoc object
  974. * @val: Pointer to the value which will be filled for the caller
  975. *
  976. * Return: QDF Status
  977. */
  978. QDF_STATUS
  979. ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
  980. /**
  981. * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
  982. * @psoc: pointer to psoc object
  983. * @val: roam intra modes or not
  984. *
  985. * Return: QDF Status
  986. */
  987. QDF_STATUS
  988. ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
  989. /**
  990. * ucfg_mlme_get_home_away_time() - Get home away time
  991. * @psoc: pointer to psoc object
  992. * @val: Pointer to the value which will be filled for the caller
  993. *
  994. * Return: QDF Status
  995. */
  996. QDF_STATUS
  997. ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
  998. /**
  999. * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
  1000. * concurrency
  1001. * @psoc: pointer to psoc object
  1002. * @val: Enable or disable fast roam in concurrency
  1003. *
  1004. * Return: QDF Status
  1005. */
  1006. QDF_STATUS
  1007. ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
  1008. bool val);
  1009. /**
  1010. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  1011. * @psoc: pointer to psoc object
  1012. * @inactivity_timeout: buffer to hold value
  1013. *
  1014. * Return: QDF Status
  1015. */
  1016. QDF_STATUS
  1017. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1018. uint32_t *inactivity_timeout);
  1019. /**
  1020. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  1021. * @psoc: pointer to psoc object
  1022. * @inactivity_timeout: value to be set
  1023. *
  1024. * Return: QDF Status
  1025. */
  1026. QDF_STATUS
  1027. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1028. uint32_t inactivity_timeout);
  1029. /**
  1030. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  1031. * @psoc: pointer to psoc object
  1032. * @value: Value that needs to be set from the caller
  1033. *
  1034. * Inline UCFG API to be used by HDD/OSIF callers
  1035. *
  1036. * Return: QDF Status
  1037. */
  1038. static inline
  1039. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  1040. int value)
  1041. {
  1042. return wlan_mlme_set_sap_listen_interval(psoc, value);
  1043. }
  1044. /**
  1045. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  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_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  1055. int value)
  1056. {
  1057. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  1058. }
  1059. /**
  1060. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  1061. * @psoc: pointer to psoc object
  1062. * @value: Value that needs to be set from 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_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  1070. int value)
  1071. {
  1072. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  1073. }
  1074. /**
  1075. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  1076. * @psoc: pointer to psoc object
  1077. * @value: Value that needs to be set from 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_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  1085. bool *value)
  1086. {
  1087. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  1088. }
  1089. /**
  1090. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  1091. * @psoc: pointer to psoc object
  1092. * @value: Value that needs to be set from 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_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  1100. bool *value)
  1101. {
  1102. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  1103. }
  1104. /**
  1105. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  1106. * @psoc: pointer to psoc object
  1107. * @value: Value that needs to be set from the caller
  1108. *
  1109. * Inline UCFG API to be used by HDD/OSIF callers
  1110. *
  1111. * Return: QDF Status
  1112. */
  1113. static inline
  1114. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  1115. int *value)
  1116. {
  1117. return wlan_mlme_get_sap_max_peers(psoc, value);
  1118. }
  1119. /**
  1120. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  1121. * @psoc: pointer to psoc object
  1122. * @value: Value that needs to be set from the caller
  1123. *
  1124. * Inline UCFG API to be used by HDD/OSIF callers
  1125. *
  1126. * Return: QDF Status
  1127. */
  1128. static inline
  1129. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  1130. {
  1131. return wlan_mlme_set_sap_max_peers(psoc, value);
  1132. }
  1133. /**
  1134. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  1135. * @psoc: pointer to psoc object
  1136. * @value: Value that needs to be set from the caller
  1137. *
  1138. * Inline UCFG API to be used by HDD/OSIF callers
  1139. *
  1140. * Return: QDF Status
  1141. */
  1142. static inline
  1143. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  1144. int *value)
  1145. {
  1146. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  1147. }
  1148. /**
  1149. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  1150. * reorder buffs
  1151. * @psoc: pointer to psoc object
  1152. * @value: Value that needs to be set from the caller
  1153. *
  1154. * Inline UCFG API to be used by HDD/OSIF callers
  1155. *
  1156. * Return: QDF Status
  1157. */
  1158. static inline
  1159. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  1160. *psoc, int *value)
  1161. {
  1162. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  1163. }
  1164. /**
  1165. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  1166. * switch beacon count
  1167. * @psoc: pointer to psoc object
  1168. * @value: Value that needs to be set from the caller
  1169. *
  1170. * Inline UCFG API to be used by HDD/OSIF callers
  1171. *
  1172. * Return: QDF Status
  1173. */
  1174. static inline
  1175. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  1176. int *value)
  1177. {
  1178. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  1179. }
  1180. /**
  1181. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  1182. * @psoc: pointer to psoc object
  1183. * @value: Value that needs to be set from the caller
  1184. *
  1185. * Inline UCFG API to be used by HDD/OSIF callers
  1186. *
  1187. * Return: QDF Status
  1188. */
  1189. static inline
  1190. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  1191. bool *value)
  1192. {
  1193. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  1194. }
  1195. /**
  1196. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  1197. * @psoc: pointer to psoc object
  1198. * @value: Value that needs to be set from the caller
  1199. *
  1200. * Inline UCFG API to be used by HDD/OSIF callers
  1201. *
  1202. * Return: QDF Status
  1203. */
  1204. static inline
  1205. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  1206. bool *value)
  1207. {
  1208. return wlan_mlme_get_sap_internal_restart(psoc, value);
  1209. }
  1210. /**
  1211. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  1212. * @psoc: pointer to psoc object
  1213. * @value: Value that needs to be set from the caller
  1214. *
  1215. * Inline UCFG API to be used by HDD/OSIF callers
  1216. *
  1217. * Return: QDF Status
  1218. */
  1219. static inline
  1220. QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  1221. uint8_t *value)
  1222. {
  1223. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  1224. }
  1225. /**
  1226. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  1227. * @psoc: pointer to psoc object
  1228. * @value: Value that needs to be set from the caller
  1229. *
  1230. * Inline UCFG API to be used by HDD/OSIF callers
  1231. *
  1232. * Return: QDF Status
  1233. */
  1234. static inline
  1235. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  1236. uint8_t *value)
  1237. {
  1238. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  1239. }
  1240. /**
  1241. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  1242. * @psoc: pointer to psoc object
  1243. * @value: Value that needs to be set from the caller
  1244. *
  1245. * Inline UCFG API to be used by HDD/OSIF callers
  1246. *
  1247. * Return: QDF Status
  1248. */
  1249. static inline
  1250. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  1251. bool *value)
  1252. {
  1253. return wlan_mlme_get_sap_country_priority(psoc, value);
  1254. }
  1255. /**
  1256. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  1257. * interval
  1258. * @psoc: pointer to psoc object
  1259. * @value: Value that needs to be set from the caller
  1260. *
  1261. * Inline UCFG API to be used by HDD/OSIF callers
  1262. *
  1263. * Return: QDF Status
  1264. */
  1265. static inline
  1266. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  1267. *psoc, int *value)
  1268. {
  1269. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  1270. }
  1271. /**
  1272. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  1273. * switch rate enabled.
  1274. * @psoc: pointer to psoc object
  1275. * @value: Value that needs to be set from the caller
  1276. *
  1277. * Inline UCFG API to be used by HDD/OSIF callers
  1278. *
  1279. * Return: QDF Status
  1280. */
  1281. static inline
  1282. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1283. *psoc, bool *value)
  1284. {
  1285. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1286. }
  1287. /**
  1288. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1289. *
  1290. * @psoc: pointer to psoc object
  1291. * @value: Value that needs to be set from the caller
  1292. *
  1293. * Inline UCFG API to be used by HDD/OSIF callers
  1294. *
  1295. * Return: QDF Status
  1296. */
  1297. static inline
  1298. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1299. *psoc, bool *value)
  1300. {
  1301. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1302. }
  1303. /**
  1304. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1305. *
  1306. * @psoc: pointer to psoc object
  1307. * @value: Value that needs to be set from the caller
  1308. *
  1309. * Inline UCFG API to be used by HDD/OSIF callers
  1310. *
  1311. * Return: QDF Status
  1312. */
  1313. static inline
  1314. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1315. *psoc, bool *value)
  1316. {
  1317. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1318. }
  1319. /**
  1320. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1321. * info for STA
  1322. *
  1323. * @psoc: pointer to psoc object
  1324. * @value: pointer to the value which will be filled for the caller
  1325. *
  1326. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1327. * OCE STA feature enable value
  1328. *
  1329. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1330. */
  1331. static inline
  1332. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1333. bool *value)
  1334. {
  1335. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1336. }
  1337. /**
  1338. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1339. * info for SAP
  1340. *
  1341. * @psoc: pointer to psoc object
  1342. * @value: pointer to the value which will be filled for the caller
  1343. *
  1344. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1345. * OCE SAP feature enable value
  1346. *
  1347. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1348. */
  1349. static inline
  1350. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1351. bool *value)
  1352. {
  1353. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1354. }
  1355. /**
  1356. * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
  1357. * @psoc: pointer to psoc object
  1358. * @value: pointer to the value which will be filled for the caller
  1359. *
  1360. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1361. * ap protection mode value
  1362. *
  1363. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1364. */
  1365. static inline
  1366. QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1367. uint16_t *value)
  1368. {
  1369. return wlan_mlme_get_ap_protection_mode(psoc, value);
  1370. }
  1371. /**
  1372. * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
  1373. * @psoc: pointer to psoc object
  1374. * @value: pointer to the value which will be filled for the caller
  1375. *
  1376. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1377. * obss protection enable value
  1378. *
  1379. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1380. */
  1381. static inline
  1382. QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1383. bool *value)
  1384. {
  1385. return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
  1386. }
  1387. /**
  1388. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1389. * @psoc: pointer to psoc object
  1390. * @value: pointer to the value which will be filled for the caller
  1391. *
  1392. * Inline UCFG API to be used by HDD/OSIF callers
  1393. *
  1394. * Return: QDF Status
  1395. */
  1396. static inline
  1397. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1398. uint32_t *value)
  1399. {
  1400. return wlan_mlme_get_rts_threshold(psoc, value);
  1401. }
  1402. /**
  1403. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1404. * @psoc: pointer to psoc object
  1405. * @value: pointer to the value which will be filled for the caller
  1406. *
  1407. * Inline UCFG API to be used by HDD/OSIF callers
  1408. *
  1409. * Return: QDF Status
  1410. */
  1411. static inline
  1412. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1413. uint32_t value)
  1414. {
  1415. return wlan_mlme_set_rts_threshold(psoc, value);
  1416. }
  1417. /**
  1418. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1419. * config
  1420. * @psoc: pointer to psoc object
  1421. * @value: Value that needs to be set from the caller
  1422. *
  1423. * Inline UCFG API to be used by HDD/OSIF callers
  1424. *
  1425. * Return: QDF Status
  1426. */
  1427. static inline
  1428. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1429. uint32_t *value)
  1430. {
  1431. return wlan_mlme_get_frag_threshold(psoc, value);
  1432. }
  1433. /**
  1434. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1435. * @psoc: pointer to psoc object
  1436. * @value: pointer to the value which will be filled for the caller
  1437. *
  1438. * Inline UCFG API to be used by HDD/OSIF callers
  1439. *
  1440. * Return: QDF Status
  1441. */
  1442. static inline
  1443. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1444. uint32_t value)
  1445. {
  1446. return wlan_mlme_set_frag_threshold(psoc, value);
  1447. }
  1448. /**
  1449. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1450. *
  1451. * @psoc: pointer to psoc object
  1452. * @value: pointer to the value which will be filled for the caller
  1453. *
  1454. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1455. * fils enable value
  1456. *
  1457. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1458. */
  1459. static inline
  1460. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1461. bool *value)
  1462. {
  1463. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1464. }
  1465. /**
  1466. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1467. *
  1468. * @psoc: pointer to psoc object
  1469. * @value: value that needs to be set from the caller
  1470. *
  1471. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1472. * fils enable value
  1473. *
  1474. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1475. */
  1476. static inline
  1477. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1478. bool value)
  1479. {
  1480. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1481. }
  1482. /**
  1483. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1484. * @psoc: pointer to psoc object
  1485. * @value: value that needs to be set from the caller
  1486. *
  1487. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1488. * enable bcast probe resp info
  1489. *
  1490. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1491. */
  1492. static inline
  1493. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1494. bool value)
  1495. {
  1496. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1497. }
  1498. /**
  1499. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1500. * @psoc: psoc context
  1501. * @value: data to be set
  1502. *
  1503. * Inline UCFG API to be used by HDD/OSIF callers
  1504. *
  1505. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1506. */
  1507. static inline
  1508. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1509. uint8_t value)
  1510. {
  1511. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1512. }
  1513. /**
  1514. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1515. * cfg item
  1516. * @psoc: psoc context
  1517. * @value: data to be set
  1518. *
  1519. * Inline UCFG API to be used by HDD/OSIF callers
  1520. *
  1521. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1522. */
  1523. static inline
  1524. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1525. uint8_t *value)
  1526. {
  1527. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1528. }
  1529. /**
  1530. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1531. * cfg item
  1532. * @psoc: psoc context
  1533. * @value: data to be set
  1534. *
  1535. * Inline UCFG API to be used by HDD/OSIF callers
  1536. *
  1537. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1538. */
  1539. static inline QDF_STATUS
  1540. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1541. bool value)
  1542. {
  1543. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1544. }
  1545. /**
  1546. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1547. * @psoc: psoc context
  1548. * @value: data to be set
  1549. *
  1550. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1551. * ignore_peer_ht_opmode flag value
  1552. *
  1553. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1554. */
  1555. static inline QDF_STATUS
  1556. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1557. bool *value)
  1558. {
  1559. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1560. }
  1561. /**
  1562. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1563. * cfg item
  1564. * @psoc: psoc context
  1565. * @value: data to be set
  1566. *
  1567. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1568. * ignore_peer_ht_opmode flag value
  1569. *
  1570. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1571. */
  1572. static inline QDF_STATUS
  1573. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1574. bool value)
  1575. {
  1576. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1577. }
  1578. /**
  1579. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1580. * cfg item
  1581. * @psoc: psoc context
  1582. * @value: pointer to get required data
  1583. *
  1584. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1585. * ignore_peer_ht_opmode flag value
  1586. *
  1587. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1588. */
  1589. static inline QDF_STATUS
  1590. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1591. bool *value)
  1592. {
  1593. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1594. }
  1595. /**
  1596. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1597. * cfg item
  1598. * @psoc: psoc context
  1599. * @value: pointer to get required data
  1600. *
  1601. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1602. * ignore_peer_ht_opmode flag value
  1603. *
  1604. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1605. */
  1606. static inline QDF_STATUS
  1607. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1608. bool *value)
  1609. {
  1610. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1611. }
  1612. /**
  1613. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1614. * support cap into cfg item
  1615. * @psoc: psoc context
  1616. * @value: data to be set
  1617. *
  1618. * Inline UCFG API to be used by HDD/OSIF callers
  1619. *
  1620. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1621. */
  1622. static inline QDF_STATUS
  1623. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1624. uint8_t value)
  1625. {
  1626. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1627. }
  1628. /**
  1629. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1630. * support cap into cfg item
  1631. * @psoc: psoc context
  1632. * @value: data to be set
  1633. *
  1634. * Inline UCFG API to be used by HDD/OSIF callers
  1635. *
  1636. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1637. */
  1638. static inline QDF_STATUS
  1639. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1640. uint8_t *value)
  1641. {
  1642. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1643. }
  1644. /**
  1645. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1646. * cfg item
  1647. * @psoc: psoc context
  1648. * @value: pointer to get required data
  1649. *
  1650. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1651. * ignore_peer_ht_opmode flag value
  1652. *
  1653. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1654. */
  1655. static inline QDF_STATUS
  1656. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1657. uint32_t *value)
  1658. {
  1659. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1660. }
  1661. /**
  1662. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1663. * cfg item
  1664. * @psoc: psoc context
  1665. * @value: data to be set
  1666. *
  1667. * Inline UCFG API to be used by HDD/OSIF callers
  1668. *
  1669. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1670. */
  1671. static inline QDF_STATUS
  1672. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1673. uint32_t value)
  1674. {
  1675. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1676. }
  1677. /**
  1678. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1679. * cfg item
  1680. * @psoc: psoc context
  1681. * @value: pointer to get required data
  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_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1690. uint32_t *value)
  1691. {
  1692. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1693. }
  1694. /**
  1695. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1696. * cfg item
  1697. * @psoc: psoc context
  1698. * @value: data to be set
  1699. *
  1700. * Inline UCFG API to be used by HDD/OSIF callers
  1701. *
  1702. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1703. */
  1704. static inline QDF_STATUS
  1705. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1706. uint32_t value)
  1707. {
  1708. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1709. }
  1710. /**
  1711. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1712. * rate into cfg item
  1713. * @psoc: psoc context
  1714. * @value: data to be set
  1715. *
  1716. * Inline UCFG API to be used by HDD/OSIF callers
  1717. *
  1718. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1719. */
  1720. static inline QDF_STATUS
  1721. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1722. uint32_t value)
  1723. {
  1724. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1725. }
  1726. /**
  1727. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1728. * cfg item
  1729. * @psoc: psoc context
  1730. * @value: data to be set
  1731. *
  1732. * Inline UCFG API to be used by HDD/OSIF callers
  1733. *
  1734. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1735. */
  1736. static inline QDF_STATUS
  1737. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1738. uint32_t value)
  1739. {
  1740. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1741. }
  1742. /**
  1743. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1744. * cfg item
  1745. * @psoc: psoc context
  1746. * @value: data to be set
  1747. *
  1748. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1749. * ignore_peer_ht_opmode flag value
  1750. *
  1751. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1752. */
  1753. static inline QDF_STATUS
  1754. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1755. uint32_t *value)
  1756. {
  1757. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1758. }
  1759. /**
  1760. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1761. * cfg item
  1762. * @psoc: psoc context
  1763. * @value: data to be set
  1764. *
  1765. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1766. * ignore_peer_ht_opmode flag value
  1767. *
  1768. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1769. */
  1770. static inline QDF_STATUS
  1771. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1772. uint32_t value)
  1773. {
  1774. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1775. }
  1776. /**
  1777. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1778. * for 11ac
  1779. * @psoc: psoc context
  1780. * @value: data to be set
  1781. *
  1782. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1783. * ignore_peer_ht_opmode flag value
  1784. *
  1785. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1786. */
  1787. static inline QDF_STATUS
  1788. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1789. {
  1790. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1791. }
  1792. /**
  1793. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1794. * for 11ac
  1795. * @psoc: psoc context
  1796. * @value: data to be set
  1797. *
  1798. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1799. * ignore_peer_ht_opmode flag value
  1800. *
  1801. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1802. */
  1803. static inline QDF_STATUS
  1804. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1805. {
  1806. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1807. }
  1808. /**
  1809. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1810. * for 11ac
  1811. * @psoc: psoc context
  1812. * @value: data to be set
  1813. *
  1814. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1815. * ignore_peer_ht_opmode flag value
  1816. *
  1817. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1818. */
  1819. static inline QDF_STATUS
  1820. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1821. {
  1822. return wlan_mlme_get_vht_channel_width(psoc, value);
  1823. }
  1824. /**
  1825. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1826. * for 11ac
  1827. * @psoc: psoc context
  1828. * @value: data to be set
  1829. *
  1830. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1831. * ignore_peer_ht_opmode flag value
  1832. *
  1833. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1834. */
  1835. static inline QDF_STATUS
  1836. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1837. {
  1838. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1839. }
  1840. /**
  1841. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1842. * for 11ac
  1843. * @psoc: psoc context
  1844. * @value: data to be set
  1845. *
  1846. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1847. * ignore_peer_ht_opmode flag value
  1848. *
  1849. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1850. */
  1851. static inline QDF_STATUS
  1852. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1853. {
  1854. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1855. }
  1856. /**
  1857. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1858. * for 11ac
  1859. * @psoc: psoc context
  1860. * @value: data to be set
  1861. *
  1862. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1863. * ignore_peer_ht_opmode flag value
  1864. *
  1865. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1866. */
  1867. static inline QDF_STATUS
  1868. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1869. {
  1870. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1871. }
  1872. /**
  1873. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1874. * for 11ac
  1875. * @psoc: psoc context
  1876. * @value: data to be set
  1877. *
  1878. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1879. * ignore_peer_ht_opmode flag value
  1880. *
  1881. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1882. */
  1883. static inline QDF_STATUS
  1884. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1885. {
  1886. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1887. }
  1888. /**
  1889. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  1890. * @vdev: pointer to the vdev obj
  1891. *
  1892. * This API will get the ini config of the vdev related to
  1893. * the nss, chains params
  1894. *
  1895. * Return: pointer to the nss, chain param ini cfg structure
  1896. */
  1897. static inline struct wlan_mlme_nss_chains *
  1898. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  1899. {
  1900. return mlme_get_ini_vdev_config(vdev);
  1901. }
  1902. /**
  1903. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  1904. * @vdev: pointer to the vdev obj
  1905. *
  1906. * This API will get the dynamic config of the vdev related to nss,
  1907. * chains params
  1908. *
  1909. * Return: pointer to the nss, chain param dynamic cfg structure
  1910. */
  1911. static inline struct wlan_mlme_nss_chains *
  1912. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  1913. {
  1914. return mlme_get_dynamic_vdev_config(vdev);
  1915. }
  1916. /**
  1917. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1918. * @psoc: psoc context
  1919. * @value: data to be set
  1920. *
  1921. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1922. * ignore_peer_ht_opmode flag value
  1923. *
  1924. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1925. */
  1926. static inline QDF_STATUS
  1927. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1928. {
  1929. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1930. }
  1931. /**
  1932. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1933. * @psoc: psoc context
  1934. * @value: data to be set
  1935. *
  1936. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1937. * ignore_peer_ht_opmode flag value
  1938. *
  1939. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1940. */
  1941. static inline QDF_STATUS
  1942. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1943. {
  1944. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1945. }
  1946. /**
  1947. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1948. * @psoc: psoc context
  1949. * @value: data to be set
  1950. *
  1951. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1952. * ignore_peer_ht_opmode flag value
  1953. *
  1954. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1955. */
  1956. static inline QDF_STATUS
  1957. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1958. {
  1959. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1960. }
  1961. /**
  1962. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1963. * @psoc: psoc context
  1964. * @value: data to be set
  1965. *
  1966. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1967. * ignore_peer_ht_opmode flag value
  1968. *
  1969. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1970. */
  1971. static inline QDF_STATUS
  1972. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1973. {
  1974. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1975. }
  1976. /**
  1977. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1978. * @psoc: psoc context
  1979. * @value: data to be set
  1980. *
  1981. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1982. * ignore_peer_ht_opmode flag value
  1983. *
  1984. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1985. */
  1986. static inline QDF_STATUS
  1987. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1988. {
  1989. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1990. }
  1991. /**
  1992. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1993. * @psoc: psoc context
  1994. * @value: data to be set
  1995. *
  1996. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1997. * ignore_peer_ht_opmode flag value
  1998. *
  1999. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2000. */
  2001. static inline QDF_STATUS
  2002. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2003. {
  2004. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  2005. }
  2006. /**
  2007. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  2008. * @psoc: psoc context
  2009. * @value: data to be set
  2010. *
  2011. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2012. * ignore_peer_ht_opmode flag value
  2013. *
  2014. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2015. */
  2016. static inline QDF_STATUS
  2017. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2018. {
  2019. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  2020. }
  2021. /**
  2022. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  2023. * @psoc: psoc context
  2024. * @value: data to be set
  2025. *
  2026. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2027. * ignore_peer_ht_opmode flag value
  2028. *
  2029. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2030. */
  2031. static inline QDF_STATUS
  2032. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  2033. struct wma_tgt_vht_cap *cfg)
  2034. {
  2035. return mlme_update_vht_cap(psoc, cfg);
  2036. }
  2037. /**
  2038. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  2039. * streams supported for vht
  2040. * @psoc: psoc context
  2041. * @value: data to be set
  2042. *
  2043. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2044. * ignore_peer_ht_opmode flag value
  2045. *
  2046. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2047. */
  2048. static inline QDF_STATUS
  2049. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  2050. {
  2051. return mlme_update_nss_vht_cap(psoc);
  2052. }
  2053. /**
  2054. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  2055. * @psoc: pointer to psoc object
  2056. * @buf: buffer to get rates set
  2057. * @len: length of the buffer
  2058. * Return: QDF Status
  2059. */
  2060. QDF_STATUS
  2061. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2062. qdf_size_t *len);
  2063. /**
  2064. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  2065. * @psoc: pointer to psoc object
  2066. * @buf: buffer to get rates set
  2067. * @len: length of the buffer
  2068. * Return: QDF Status
  2069. */
  2070. QDF_STATUS
  2071. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2072. qdf_size_t *len);
  2073. /**
  2074. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  2075. * @psoc: pointer to psoc object
  2076. * @buf: caller buffer to copy mcs set info
  2077. * @len: length of the buffer
  2078. * Return: QDF Status
  2079. */
  2080. QDF_STATUS
  2081. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2082. qdf_size_t *len);
  2083. /**
  2084. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  2085. * @psoc: pointer to psoc object
  2086. * @buf: caller buffer having mcs set info
  2087. * @len: length of the buffer
  2088. * Return: QDF Status
  2089. */
  2090. QDF_STATUS
  2091. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2092. qdf_size_t len);
  2093. /**
  2094. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  2095. * @psoc: pointer to psoc object
  2096. * @buf: caller buffer to copy mcs set info
  2097. * @len: length of the buffer
  2098. * Return: QDF Status
  2099. */
  2100. QDF_STATUS
  2101. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2102. qdf_size_t *len);
  2103. /**
  2104. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  2105. * for VI
  2106. * @psoc: pointer to psoc object
  2107. * @value: Value that needs to be set from the caller
  2108. *
  2109. * Inline UCFG API to be used by HDD/OSIF callers
  2110. *
  2111. * Return: QDF Status
  2112. */
  2113. static inline QDF_STATUS
  2114. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  2115. uint8_t *value)
  2116. {
  2117. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  2118. }
  2119. /**
  2120. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  2121. * MSDU size for VI
  2122. * @psoc: pointer to psoc object
  2123. * @value: Value that needs to be set from the caller
  2124. *
  2125. * Inline UCFG API to be used by HDD/OSIF callers
  2126. *
  2127. * Return: QDF Status
  2128. */
  2129. static inline QDF_STATUS
  2130. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  2131. uint16_t *value)
  2132. {
  2133. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  2134. }
  2135. /**
  2136. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  2137. * rate for VI
  2138. * @psoc: pointer to psoc object
  2139. * @value: Value that needs to be set from the caller
  2140. *
  2141. * Inline UCFG API to be used by HDD/OSIF callers
  2142. *
  2143. * Return: QDF Status
  2144. */
  2145. static inline QDF_STATUS
  2146. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2147. uint32_t *value)
  2148. {
  2149. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  2150. }
  2151. /**
  2152. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  2153. * rate for VI
  2154. * @psoc: pointer to psoc object
  2155. * @value: Value that needs to be set from the caller
  2156. *
  2157. * Inline UCFG API to be used by HDD/OSIF callers
  2158. *
  2159. * Return: QDF Status
  2160. */
  2161. static inline QDF_STATUS
  2162. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2163. uint32_t *value)
  2164. {
  2165. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  2166. }
  2167. /**
  2168. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  2169. * allowance for VI
  2170. * @psoc: pointer to psoc object
  2171. * @value: Value that needs to be set from the caller
  2172. *
  2173. * Inline UCFG API to be used by HDD/OSIF callers
  2174. *
  2175. * Return: QDF Status
  2176. */
  2177. static inline QDF_STATUS
  2178. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2179. {
  2180. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  2181. }
  2182. /**
  2183. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  2184. * interval for video
  2185. * @psoc: pointer to psoc object
  2186. * @value: pointer to the value which will be filled for the caller
  2187. *
  2188. * Inline UCFG API to be used by HDD/OSIF callers
  2189. *
  2190. * Return: QDF Status
  2191. */
  2192. static inline QDF_STATUS
  2193. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  2194. uint32_t *value)
  2195. {
  2196. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  2197. }
  2198. /**
  2199. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  2200. * interval for video
  2201. * @psoc: pointer to psoc object
  2202. * @value: Value that needs to be set from the caller
  2203. *
  2204. * Inline UCFG API to be used by HDD/OSIF callers
  2205. *
  2206. * Return: QDF Status
  2207. */
  2208. static inline QDF_STATUS
  2209. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  2210. uint32_t *value)
  2211. {
  2212. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  2213. }
  2214. /**
  2215. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  2216. * for BE
  2217. * @psoc: pointer to psoc object
  2218. * @value: Value that needs to be set from the caller
  2219. *
  2220. * Inline UCFG API to be used by HDD/OSIF callers
  2221. *
  2222. * Return: QDF Status
  2223. */
  2224. static inline QDF_STATUS
  2225. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2226. {
  2227. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  2228. }
  2229. /**
  2230. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2231. * MSDU size for BE
  2232. * @psoc: pointer to psoc object
  2233. * @value: Value that needs to be set from the caller
  2234. *
  2235. * Inline UCFG API to be used by HDD/OSIF callers
  2236. *
  2237. * Return: QDF Status
  2238. */
  2239. static inline QDF_STATUS
  2240. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  2241. uint16_t *value)
  2242. {
  2243. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  2244. }
  2245. /**
  2246. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  2247. * rate for BE
  2248. * @psoc: pointer to psoc object
  2249. * @value: Value that needs to be set from the caller
  2250. *
  2251. * Inline UCFG API to be used by HDD/OSIF callers
  2252. *
  2253. * Return: QDF Status
  2254. */
  2255. static inline QDF_STATUS
  2256. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2257. uint32_t *value)
  2258. {
  2259. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  2260. }
  2261. /**
  2262. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  2263. * rate for BE
  2264. * @psoc: pointer to psoc object
  2265. * @value: Value that needs to be set from the caller
  2266. *
  2267. * Inline UCFG API to be used by HDD/OSIF callers
  2268. *
  2269. * Return: QDF Status
  2270. */
  2271. static inline QDF_STATUS
  2272. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2273. uint32_t *value)
  2274. {
  2275. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  2276. }
  2277. /**
  2278. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  2279. * allowance for BE
  2280. * @psoc: pointer to psoc object
  2281. * @value: Value that needs to be set from the caller
  2282. *
  2283. * Inline UCFG API to be used by HDD/OSIF callers
  2284. *
  2285. * Return: QDF Status
  2286. */
  2287. static inline QDF_STATUS
  2288. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2289. {
  2290. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  2291. }
  2292. /**
  2293. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  2294. * interval for BE
  2295. * @psoc: pointer to psoc object
  2296. * @value: pointer to the value which will be filled for the caller
  2297. *
  2298. * Inline UCFG API to be used by HDD/OSIF callers
  2299. *
  2300. * Return: QDF Status
  2301. */
  2302. static inline QDF_STATUS
  2303. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  2304. uint32_t *value)
  2305. {
  2306. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  2307. }
  2308. /**
  2309. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  2310. * interval for BE
  2311. * @psoc: pointer to psoc object
  2312. * @value: Value that needs to be set from the caller
  2313. *
  2314. * Inline UCFG API to be used by HDD/OSIF callers
  2315. *
  2316. * Return: QDF Status
  2317. */
  2318. static inline QDF_STATUS
  2319. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2320. uint32_t *value)
  2321. {
  2322. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2323. }
  2324. /**
  2325. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2326. * for BK
  2327. * @psoc: pointer to psoc object
  2328. * @value: Value that needs to be set from the caller
  2329. *
  2330. * Inline UCFG API to be used by HDD/OSIF callers
  2331. *
  2332. * Return: QDF Status
  2333. */
  2334. static inline QDF_STATUS
  2335. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2336. {
  2337. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2338. }
  2339. /**
  2340. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2341. * MSDU size for BE
  2342. * @psoc: pointer to psoc object
  2343. * @value: Value that needs to be set from the caller
  2344. *
  2345. * Inline UCFG API to be used by HDD/OSIF callers
  2346. *
  2347. * Return: QDF Status
  2348. */
  2349. static inline QDF_STATUS
  2350. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2351. uint16_t *value)
  2352. {
  2353. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2354. }
  2355. /**
  2356. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2357. * rate for BK
  2358. * @psoc: pointer to psoc object
  2359. * @value: Value that needs to be set from the caller
  2360. *
  2361. * Inline UCFG API to be used by HDD/OSIF callers
  2362. *
  2363. * Return: QDF Status
  2364. */
  2365. static inline QDF_STATUS
  2366. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2367. uint32_t *value)
  2368. {
  2369. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2370. }
  2371. /**
  2372. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2373. * rate for BE
  2374. * @psoc: pointer to psoc object
  2375. * @value: Value that needs to be set from the caller
  2376. *
  2377. * Inline UCFG API to be used by HDD/OSIF callers
  2378. *
  2379. * Return: QDF Status
  2380. */
  2381. static inline QDF_STATUS
  2382. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2383. uint32_t *value)
  2384. {
  2385. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2386. }
  2387. /**
  2388. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2389. * allowance for BE
  2390. * @psoc: pointer to psoc object
  2391. * @value: Value that needs to be set from the caller
  2392. *
  2393. * Inline UCFG API to be used by HDD/OSIF callers
  2394. *
  2395. * Return: QDF Status
  2396. */
  2397. static inline QDF_STATUS
  2398. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2399. {
  2400. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2401. }
  2402. /**
  2403. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2404. * interval for BK
  2405. * @psoc: pointer to psoc object
  2406. * @value: pointer to the value which will be filled for the caller
  2407. *
  2408. * Inline UCFG API to be used by HDD/OSIF callers
  2409. *
  2410. * Return: QDF Status
  2411. */
  2412. static inline QDF_STATUS
  2413. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2414. uint32_t *value)
  2415. {
  2416. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2417. }
  2418. /**
  2419. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2420. * interval for BK
  2421. * @psoc: pointer to psoc object
  2422. * @value: Value that needs to be set from the caller
  2423. *
  2424. * Inline UCFG API to be used by HDD/OSIF callers
  2425. *
  2426. * Return: QDF Status
  2427. */
  2428. static inline QDF_STATUS
  2429. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2430. uint32_t *value)
  2431. {
  2432. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2433. }
  2434. /**
  2435. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2436. * @psoc: pointer to psoc object
  2437. * @value: Value that needs to be set from the caller
  2438. *
  2439. * Inline UCFG API to be used by HDD/OSIF callers
  2440. *
  2441. * Return: QDF Status
  2442. */
  2443. static inline QDF_STATUS
  2444. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2445. {
  2446. return wlan_mlme_get_wmm_mode(psoc, value);
  2447. }
  2448. #ifdef WLAN_FEATURE_11AX
  2449. /**
  2450. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2451. *
  2452. * @psoc: pointer to psoc object
  2453. * @cfg: pointer to config params from target
  2454. *
  2455. * Inline UCFG API to be used by HDD/OSIF callers to update
  2456. * he caps in mlme.
  2457. *
  2458. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2459. */
  2460. static inline
  2461. QDF_STATUS ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2462. struct wma_tgt_cfg *cfg)
  2463. {
  2464. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2465. }
  2466. /**
  2467. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2468. * @psoc: pointer to psoc object
  2469. * @value: Value that needs to be set from the caller
  2470. *
  2471. * Return: QDF Status
  2472. */
  2473. static inline
  2474. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2475. uint32_t *value)
  2476. {
  2477. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2478. }
  2479. /**
  2480. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2481. * @psoc: pointer to psoc object
  2482. * @value: Value that needs to be set from the caller
  2483. *
  2484. * Return: QDF Status
  2485. */
  2486. static inline
  2487. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2488. uint32_t value)
  2489. {
  2490. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2491. }
  2492. /**
  2493. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2494. * @psoc: pointer to psoc object
  2495. * @value: Value that needs to be set from the caller
  2496. *
  2497. * Return: QDF Status
  2498. */
  2499. static inline
  2500. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2501. uint8_t *value)
  2502. {
  2503. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2504. }
  2505. /**
  2506. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2507. * @psoc: pointer to psoc object
  2508. * @value: Value that needs to be set from the caller
  2509. *
  2510. * Return: QDF Status
  2511. */
  2512. static inline
  2513. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2514. uint8_t *value)
  2515. {
  2516. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2517. }
  2518. #endif
  2519. /**
  2520. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2521. * @psoc: pointer to psoc object
  2522. * @value: Value that needs to be set from the caller
  2523. *
  2524. * Inline UCFG API to be used by HDD/OSIF callers
  2525. *
  2526. * Return: QDF Status
  2527. */
  2528. static inline QDF_STATUS
  2529. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2530. {
  2531. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2532. }
  2533. /**
  2534. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2535. * @psoc: pointer to psoc object
  2536. * @value: Value that needs to be set from the caller
  2537. *
  2538. * Inline UCFG API to be used by HDD/OSIF callers
  2539. *
  2540. * Return: QDF Status
  2541. */
  2542. static inline QDF_STATUS
  2543. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2544. {
  2545. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2546. }
  2547. /**
  2548. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2549. * @psoc: pointer to psoc object
  2550. * @value: Value that needs to be set from the caller
  2551. *
  2552. * Inline UCFG API to be used by HDD/OSIF callers
  2553. *
  2554. * Return: QDF Status
  2555. */
  2556. static inline QDF_STATUS
  2557. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2558. bool *value)
  2559. {
  2560. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2561. }
  2562. #ifdef FEATURE_WLAN_ESE
  2563. /**
  2564. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2565. * @psoc: pointer to psoc object
  2566. * @value: Value that needs to be get from the caller
  2567. *
  2568. * Inline UCFG API to be used by HDD/OSIF callers
  2569. *
  2570. * Return: None
  2571. */
  2572. static inline void
  2573. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2574. uint32_t *value)
  2575. {
  2576. wlan_mlme_get_inactivity_interval(psoc, value);
  2577. }
  2578. /**
  2579. * ucfg_mlme_is_ese_enabled() - ese feature enable or not
  2580. * @psoc: pointer to psoc object
  2581. * @val: Pointer to the value which will be filled for the caller
  2582. *
  2583. * Return: QDF Status
  2584. */
  2585. QDF_STATUS
  2586. ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  2587. #endif /* FEATURE_WLAN_ESE */
  2588. /**
  2589. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  2590. * @psoc: pointer to psoc object
  2591. * @value: Value that needs to be get from the caller
  2592. *
  2593. * Inline UCFG API to be used by HDD/OSIF callers
  2594. *
  2595. * Return: None
  2596. */
  2597. static inline void
  2598. ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  2599. bool *value)
  2600. {
  2601. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  2602. }
  2603. /**
  2604. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  2605. * @psoc: pointer to psoc object
  2606. * @value: Value that needs to be get from the caller
  2607. *
  2608. * Inline UCFG API to be used by HDD/OSIF callers
  2609. *
  2610. * Return: None
  2611. */
  2612. static inline void
  2613. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  2614. enum mlme_ts_info_ack_policy *value)
  2615. {
  2616. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  2617. }
  2618. /**
  2619. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  2620. * @psoc: pointer to psoc object
  2621. * @value: Value that needs to be get from the caller
  2622. *
  2623. *
  2624. * Inline UCFG API to be used by HDD/OSIF callers
  2625. *
  2626. * Return: QDF Status
  2627. */
  2628. static inline QDF_STATUS
  2629. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  2630. {
  2631. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  2632. }
  2633. /*
  2634. * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
  2635. * @psoc: pointer to psoc object
  2636. * @value: sap uapsd enabled flag value requested from the caller
  2637. *
  2638. * Inline UCFG API to be used by HDD/OSIF callers
  2639. *
  2640. * Return: QDF Status
  2641. */
  2642. static inline QDF_STATUS
  2643. ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2644. {
  2645. return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
  2646. }
  2647. /*
  2648. * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
  2649. * @psoc: pointer to psoc object
  2650. * @value: Value that needs to be set from the caller
  2651. *
  2652. * Inline UCFG API to be used by HDD/OSIF callers
  2653. *
  2654. * Return: QDF Status
  2655. */
  2656. static inline QDF_STATUS
  2657. ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
  2658. {
  2659. return wlan_mlme_set_sap_uapsd_flag(psoc, value);
  2660. }
  2661. #endif /* _WLAN_MLME_UCFG_API_H_ */