wlan_mlme_ucfg_api.h 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764
  1. /*
  2. * Copyright (c) 2018-2019 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. /**
  84. * ucfg_mlme_global_init() - initialize global mlme ops and structure
  85. *
  86. * Return: QDF Status
  87. */
  88. QDF_STATUS ucfg_mlme_global_init(void);
  89. /**
  90. * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
  91. *
  92. * Return: QDF Status
  93. */
  94. QDF_STATUS ucfg_mlme_global_deinit(void);
  95. #else
  96. /**
  97. * ucfg_mlme_pdev_open() - MLME component pdev Open
  98. * @pdev: pointer to pdev object
  99. *
  100. * Open the MLME component and initialize the MLME pdev strucutre
  101. *
  102. * Return: QDF Status
  103. */
  104. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  105. {
  106. return QDF_STATUS_SUCCESS;
  107. }
  108. /**
  109. * ucfg_mlme_pdev_close() - MLME component pdev close
  110. * @pdev: pointer to pdev object
  111. *
  112. * close the MLME pdev information
  113. *
  114. * Return: QDF Status
  115. */
  116. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  117. {
  118. return QDF_STATUS_SUCCESS;
  119. }
  120. /**
  121. * ucfg_mlme_global_init() - initialize global mlme ops and structure
  122. *
  123. * Return: QDF Status
  124. */
  125. static inline QDF_STATUS ucfg_mlme_global_init(void)
  126. {
  127. return QDF_STATUS_SUCCESS;
  128. }
  129. /**
  130. * ucfg_mlme_global_deinit() - deinitialize global mlme ops and structure
  131. *
  132. * Return: QDF Status
  133. */
  134. static inline QDF_STATUS ucfg_mlme_global_deinit(void)
  135. {
  136. return QDF_STATUS_SUCCESS;
  137. }
  138. #endif
  139. /**
  140. * wlan_mlme_get_power_usage() - Get the power usage info
  141. * @psoc: pointer to psoc object
  142. *
  143. * Return: pointer to character array of power usage
  144. */
  145. static inline
  146. char *ucfg_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc)
  147. {
  148. return wlan_mlme_get_power_usage(psoc);
  149. }
  150. /**
  151. * ucfg_get_tx_power() - Get the max tx power in particular band
  152. * @psoc: pointer to psoc object
  153. * @band: 2ghz/5ghz band
  154. *
  155. * Return: value of tx power in the respective band
  156. */
  157. static inline
  158. uint8_t ucfg_get_tx_power(struct wlan_objmgr_psoc *psoc, uint8_t band)
  159. {
  160. return wlan_mlme_get_tx_power(psoc, band);
  161. }
  162. /**
  163. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  164. * @psoc: pointer to psoc object
  165. * @value: pointer to the value which will be filled for the caller
  166. *
  167. * Inline UCFG API to be used by HDD/OSIF callers
  168. *
  169. * Return: QDF Status
  170. */
  171. static inline
  172. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  173. struct mlme_ht_capabilities_info
  174. *ht_cap_info)
  175. {
  176. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  177. }
  178. /**
  179. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  180. * @psoc: pointer to psoc object
  181. * @value: Value that needs to be set from the caller
  182. *
  183. * Inline UCFG API to be used by HDD/OSIF callers
  184. *
  185. * Return: QDF Status
  186. */
  187. static inline
  188. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  189. struct mlme_ht_capabilities_info
  190. ht_cap_info)
  191. {
  192. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  193. }
  194. /**
  195. * ucfg_mlme_get_max_amsdu_num() - get the max amsdu num
  196. * @psoc: pointer to psoc object
  197. * @value: pointer to the value where the max_amsdu num is to be filled
  198. *
  199. * Return: QDF_STATUS
  200. */
  201. static inline
  202. QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  203. uint8_t *value)
  204. {
  205. return wlan_mlme_get_max_amsdu_num(psoc, value);
  206. }
  207. /**
  208. * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
  209. * @psoc: pointer to psoc object
  210. * @value: value to be set for max_amsdu_num
  211. *
  212. * Return: QDF_STATUS
  213. */
  214. static inline
  215. QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  216. uint8_t value)
  217. {
  218. return wlan_mlme_set_max_amsdu_num(psoc, value);
  219. }
  220. /**
  221. * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
  222. * @psoc: pointer to psoc object
  223. * @value: pointer to the value where the ht mpdu density is to be filled
  224. *
  225. * Return: QDF_STATUS
  226. */
  227. static inline
  228. QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  229. uint8_t *value)
  230. {
  231. return wlan_mlme_get_ht_mpdu_density(psoc, value);
  232. }
  233. /**
  234. * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
  235. * @psoc: pointer to psoc object
  236. * @value: value to be set for ht mpdu density
  237. *
  238. * Return: QDF_STATUS
  239. */
  240. static inline
  241. QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  242. uint8_t value)
  243. {
  244. return wlan_mlme_set_ht_mpdu_density(psoc, value);
  245. }
  246. /**
  247. * ucfg_mlme_get_band_capability() - Get the Band capability config
  248. * @psoc: pointer to psoc object
  249. * @band_capability: Pointer to the variable from caller
  250. *
  251. * Return: QDF Status
  252. */
  253. static inline
  254. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *band_capability)
  256. {
  257. return wlan_mlme_get_band_capability(psoc, band_capability);
  258. }
  259. /**
  260. * ucfg_mlme_set_band_capability() - Set the Band capability config
  261. * @psoc: pointer to psoc object
  262. * @band_capability: Value to be set from the caller
  263. *
  264. * Return: QDF Status
  265. */
  266. static inline
  267. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  268. uint8_t band_capability)
  269. {
  270. return wlan_mlme_set_band_capability(psoc, band_capability);
  271. }
  272. /**
  273. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  274. * @psoc: pointer to psoc object
  275. * @prevent_link_down: Pointer to the variable from caller
  276. *
  277. * Return: QDF Status
  278. */
  279. static inline
  280. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  281. bool *prevent_link_down)
  282. {
  283. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  284. }
  285. /**
  286. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  287. * @psoc: pointer to psoc object
  288. * @select_5ghz_margin: Pointer to the variable from caller
  289. *
  290. * Return: QDF Status
  291. */
  292. static inline
  293. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  294. uint8_t *select_5ghz_margin)
  295. {
  296. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  297. }
  298. /**
  299. * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  300. * @psoc: pointer to psoc object
  301. * @rtt_mac_randomization: Pointer to the variable from caller
  302. *
  303. * Return: QDF Status
  304. */
  305. static inline
  306. QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  307. bool *rtt_mac_randomization)
  308. {
  309. return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
  310. }
  311. /**
  312. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  313. * @psoc: pointer to psoc object
  314. * @crash_inject: Pointer to the variable from caller
  315. *
  316. * Return: QDF Status
  317. */
  318. static inline
  319. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  320. bool *crash_inject)
  321. {
  322. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  323. }
  324. /**
  325. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  326. * @psoc: pointer to psoc object
  327. * @lpass_support: Pointer to the variable from caller
  328. *
  329. * Return: QDF Status
  330. */
  331. static inline
  332. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  333. bool *lpass_support)
  334. {
  335. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  336. }
  337. /**
  338. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  339. * @psoc: pointer to psoc object
  340. * @self_recovery: Pointer to the variable from caller
  341. *
  342. * Return: QDF Status
  343. */
  344. static inline
  345. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  346. bool *self_recovery)
  347. {
  348. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  349. }
  350. /**
  351. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  352. * @psoc: pointer to psoc object
  353. * @sub_20_chan_width: Pointer to the variable from caller
  354. *
  355. * Return: QDF Status
  356. */
  357. static inline
  358. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  359. uint8_t *sub_20_chan_width)
  360. {
  361. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  362. }
  363. /**
  364. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  365. * @psoc: pointer to psoc object
  366. * @fw_timeout_crash: Pointer to the variable from caller
  367. *
  368. * Return: QDF Status
  369. */
  370. static inline
  371. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  372. bool *fw_timeout_crash)
  373. {
  374. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  375. }
  376. /**
  377. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  378. * @psoc: pointer to psoc object
  379. * @ito_repeat_count: Pointer to the variable from caller
  380. *
  381. * Return: QDF Status
  382. */
  383. static inline
  384. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  385. uint8_t *ito_repeat_count)
  386. {
  387. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  388. }
  389. /**
  390. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  391. * more param
  392. * @psoc: pointer to psoc object
  393. * @value: Value that needs to be set from the caller
  394. *
  395. * Inline UCFG API to be used by HDD/OSIF callers
  396. *
  397. * Return: QDF Status
  398. */
  399. static inline
  400. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  401. bool *value)
  402. {
  403. return wlan_mlme_get_acs_with_more_param(psoc, value);
  404. }
  405. /**
  406. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  407. * @psoc: pointer to psoc object
  408. * @value: Value that needs to be set from the caller
  409. *
  410. * Inline UCFG API to be used by HDD/OSIF callers
  411. *
  412. * Return: QDF Status
  413. */
  414. static inline
  415. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  416. uint32_t *value)
  417. {
  418. return wlan_mlme_get_auto_channel_weight(psoc, value);
  419. }
  420. /**
  421. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  422. * vendor acs support
  423. * @psoc: pointer to psoc object
  424. * @value: Value that needs to be set from the caller
  425. *
  426. * Inline UCFG API to be used by HDD/OSIF callers
  427. *
  428. * Return: QDF Status
  429. */
  430. static inline
  431. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  432. bool *value)
  433. {
  434. return wlan_mlme_get_vendor_acs_support(psoc, value);
  435. }
  436. /**
  437. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  438. * acs policy
  439. * @psoc: pointer to psoc object
  440. * @value: Value that needs to be set from the caller
  441. *
  442. * Inline UCFG API to be used by HDD/OSIF callers
  443. *
  444. * Return: QDF Status
  445. */
  446. static inline QDF_STATUS
  447. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  448. bool *value)
  449. {
  450. return wlan_mlme_get_external_acs_policy(psoc, value);
  451. }
  452. /**
  453. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  454. * @psoc: pointer to psoc object
  455. * @value: Value that needs to be set from the caller
  456. *
  457. * Inline UCFG API to be used by HDD/OSIF callers
  458. *
  459. * Return: QDF Status
  460. */
  461. static inline
  462. QDF_STATUS
  463. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  464. bool *value)
  465. {
  466. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  467. }
  468. /**
  469. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  470. * @psoc: pointer to psoc object
  471. * @value: Value that needs to be set from the caller
  472. *
  473. * Inline UCFG API to be used by HDD/OSIF callers
  474. *
  475. * Return: QDF Status
  476. */
  477. static inline QDF_STATUS
  478. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  479. uint8_t *value)
  480. {
  481. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  482. }
  483. /**
  484. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  485. * MSDU size for VO
  486. * @psoc: pointer to psoc object
  487. * @value: Value that needs to be set from the caller
  488. *
  489. * Inline UCFG API to be used by HDD/OSIF callers
  490. *
  491. * Return: QDF Status
  492. */
  493. static inline QDF_STATUS
  494. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  495. uint16_t *value)
  496. {
  497. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  498. }
  499. /**
  500. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  501. * @psoc: pointer to psoc object
  502. * @value: Value that needs to be set from the caller
  503. *
  504. * Inline UCFG API to be used by HDD/OSIF callers
  505. *
  506. * Return: QDF Status
  507. */
  508. static inline QDF_STATUS
  509. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  510. uint32_t *value)
  511. {
  512. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  513. }
  514. /**
  515. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  516. * rate for VO
  517. * @psoc: pointer to psoc object
  518. * @value: Value that needs to be set from the caller
  519. *
  520. * Inline UCFG API to be used by HDD/OSIF callers
  521. *
  522. * Return: QDF Status
  523. */
  524. static inline QDF_STATUS
  525. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  526. uint32_t *value)
  527. {
  528. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  529. }
  530. /**
  531. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  532. * allowance for VO
  533. * @psoc: pointer to psoc object
  534. * @value: Value that needs to be set from the caller
  535. *
  536. * Inline UCFG API to be used by HDD/OSIF callers
  537. *
  538. * Return: QDF Status
  539. */
  540. static inline QDF_STATUS
  541. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  542. uint16_t *value)
  543. {
  544. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  545. }
  546. /**
  547. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  548. * interval for voice
  549. * @psoc: pointer to psoc object
  550. * @value: pointer to the value which will be filled for the caller
  551. *
  552. * Inline UCFG API to be used by HDD/OSIF callers
  553. *
  554. * Return: QDF Status
  555. */
  556. static inline QDF_STATUS
  557. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  558. uint32_t *value)
  559. {
  560. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  561. }
  562. /**
  563. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  564. * interval for voice
  565. * @psoc: pointer to psoc object
  566. * @value: Value that needs to be set from the caller
  567. *
  568. * Inline UCFG API to be used by HDD/OSIF callers
  569. *
  570. * Return: QDF Status
  571. */
  572. static inline QDF_STATUS
  573. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  574. uint32_t *value)
  575. {
  576. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  577. }
  578. /**
  579. *
  580. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  581. * override flag is set.
  582. * @psoc: pointer to psoc object
  583. * @sme_config - Sme config struct
  584. *
  585. * Inline UCFG API to be used by HDD/OSIF callers to call
  586. * the mlme function wlan_mlme_get_sap_inactivity_override
  587. *
  588. * Return: QDF Status
  589. */
  590. static inline
  591. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  592. bool *value)
  593. {
  594. wlan_mlme_get_sap_inactivity_override(psoc, value);
  595. }
  596. /**
  597. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  598. *
  599. * @psoc: pointer to psoc object
  600. * @value: Value that needs to be set from the caller
  601. *
  602. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  603. */
  604. static inline
  605. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  606. uint8_t *value)
  607. {
  608. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  609. }
  610. /**
  611. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  612. *
  613. * @psoc: pointer to psoc object
  614. * @value: Value that needs to be set from the caller
  615. *
  616. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  617. */
  618. static inline
  619. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  620. uint16_t *value)
  621. {
  622. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  623. }
  624. /**
  625. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  626. *
  627. * @psoc: pointer to psoc object
  628. * @value: Value that needs to be set from the caller
  629. *
  630. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  631. */
  632. static inline
  633. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  634. uint16_t *value)
  635. {
  636. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  637. }
  638. /**
  639. * ucfg_mlme_get_bt_chain_separation_flag() - bt chain separation enable/disable
  640. * @psoc: pointer to psoc object
  641. * @value: Value that needs to be got for the caller
  642. *
  643. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  644. */
  645. static inline
  646. QDF_STATUS ucfg_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  647. bool *value)
  648. {
  649. return wlan_mlme_get_bt_chain_separation_flag(psoc, value);
  650. }
  651. /**
  652. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  653. *
  654. * @psoc: pointer to psoc object
  655. * @session_id: vdev_id
  656. *
  657. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  658. */
  659. static inline
  660. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  661. uint8_t session_id)
  662. {
  663. return wlan_mlme_configure_chain_mask(psoc, session_id);
  664. }
  665. /*
  666. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  667. * @psoc: pointer to psoc object
  668. * @val: Pointer to the value which will be filled for the caller
  669. *
  670. * Return: QDF Status
  671. */
  672. QDF_STATUS
  673. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  674. uint32_t *val);
  675. /*
  676. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  677. * @psoc: pointer to psoc object
  678. * @val: Pointer to the value which will be filled for the caller
  679. *
  680. * Return: QDF Status
  681. */
  682. QDF_STATUS
  683. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  684. bool *val);
  685. /*
  686. * ucfg_mlme_get_dfs_disable_channel_switch() - Get the dfs channel switch
  687. * @psoc: pointer to psoc object
  688. * @dfs_disable_channel_switch: Pointer to the value which will be filled
  689. *
  690. * Return: QDF Status
  691. */
  692. QDF_STATUS
  693. ucfg_mlme_get_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
  694. bool *dfs_disable_channel_switch);
  695. /*
  696. * ucfg_mlme_set_dfs_disable_channel_switch() - Set the dfs channel switch
  697. * @psoc: pointer to psoc object
  698. * @dfs_disable_channel_switch: Value that needs to be set.
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS
  703. ucfg_mlme_set_dfs_disable_channel_switch(struct wlan_objmgr_psoc *psoc,
  704. bool dfs_disable_channel_switch);
  705. /*
  706. * ucfg_mlme_get_dfs_ignore_cac() - GSet the dfs ignore cac
  707. * @psoc: pointer to psoc object
  708. * @dfs_ignore_cac: Pointer to the value which will be filled for the caller
  709. *
  710. * Return: QDF Status
  711. */
  712. QDF_STATUS
  713. ucfg_mlme_get_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
  714. bool *dfs_ignore_cac);
  715. /*
  716. * ucfg_mlme_set_dfs_ignore_cac() - Set the dfs ignore cac
  717. * @psoc: pointer to psoc object
  718. * @dfs_ignore_cac: Value that needs to be set.
  719. *
  720. * Return: QDF Status
  721. */
  722. QDF_STATUS
  723. ucfg_mlme_set_dfs_ignore_cac(struct wlan_objmgr_psoc *psoc,
  724. bool dfs_ignore_cac);
  725. /*
  726. * ucfg_mlme_get_sap_tx_leakage_threshold() - Get sap tx leakage threshold
  727. * @psoc: pointer to psoc object
  728. * @sap_tx_leakage_threshold: Pointer to the value which will be filled
  729. *
  730. * Return: QDF Status
  731. */
  732. QDF_STATUS
  733. ucfg_mlme_get_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
  734. uint32_t *sap_tx_leakage_threshold);
  735. /*
  736. * ucfg_mlme_set_sap_tx_leakage_threshold() - Set sap tx leakage threshold
  737. * @psoc: pointer to psoc object
  738. * @sap_tx_leakage_threshold: Value that needs to be set.
  739. *
  740. * Return: QDF Status
  741. */
  742. QDF_STATUS
  743. ucfg_mlme_set_sap_tx_leakage_threshold(struct wlan_objmgr_psoc *psoc,
  744. uint32_t sap_tx_leakage_threshold);
  745. /*
  746. * ucfg_mlme_get_dfs_filter_offload() - Get the dfs filter offload
  747. * @psoc: pointer to psoc object
  748. * @dfs_filter_offload: Pointer to the value which will be filled
  749. *
  750. * Return: QDF Status
  751. */
  752. QDF_STATUS
  753. ucfg_mlme_get_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
  754. bool *dfs_filter_offload);
  755. /*
  756. * ucfg_mlme_set_dfs_filter_offload() - Set the dfs filter offload
  757. * @psoc: pointer to psoc object
  758. * @dfs_filter_offload: Value that needs to be set.
  759. *
  760. * Return: QDF Status
  761. */
  762. QDF_STATUS
  763. ucfg_mlme_set_dfs_filter_offload(struct wlan_objmgr_psoc *psoc,
  764. bool dfs_filter_offload);
  765. /**
  766. * ucfg_mlme_get_fine_time_meas_cap() - Get fine timing measurement capability
  767. * @psoc: pointer to psoc object
  768. * @fine_time_meas_cap: Pointer to the value which will be filled for the caller
  769. *
  770. * Return: QDF Status
  771. */
  772. QDF_STATUS
  773. ucfg_mlme_get_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  774. uint32_t *fine_time_meas_cap);
  775. /**
  776. * ucfg_mlme_set_fine_time_meas_cap() - Set fine timing measurement capability
  777. * @psoc: pointer to psoc object
  778. * @fine_time_meas_cap: Value to be set
  779. *
  780. * Return: QDF Status
  781. */
  782. QDF_STATUS
  783. ucfg_mlme_set_fine_time_meas_cap(struct wlan_objmgr_psoc *psoc,
  784. uint32_t fine_time_meas_cap);
  785. /**
  786. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  787. * @psoc: pointer to psoc object
  788. * @val: Pointer to the value which will be filled for the caller
  789. *
  790. * Return: QDF Status
  791. */
  792. QDF_STATUS
  793. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  794. uint32_t *val);
  795. /**
  796. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  797. * @psoc: pointer to psoc object
  798. * @val: Pointer to the value which will be filled for the caller
  799. *
  800. * Return: QDF Status
  801. */
  802. QDF_STATUS
  803. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  804. uint32_t val);
  805. /**
  806. * ucfg_mlme_get_twt_requestor() - Get twt requestor
  807. * @psoc: pointer to psoc object
  808. * @val: Pointer to the value which will be filled for the caller
  809. *
  810. * Return: QDF Status
  811. */
  812. QDF_STATUS
  813. ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
  814. bool *val);
  815. /**
  816. * ucfg_mlme_set_twt_requestor() - Set twt requestor
  817. * @psoc: pointer to psoc object
  818. * @val: value that needs to set to this config
  819. *
  820. * Return: QDF Status
  821. */
  822. QDF_STATUS
  823. ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc,
  824. bool val);
  825. /**
  826. * ucfg_mlme_get_twt_responder() - Get twt responder
  827. * @psoc: pointer to psoc object
  828. * @val: Pointer to the value which will be filled for the caller
  829. *
  830. * Return: QDF Status
  831. */
  832. QDF_STATUS
  833. ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc,
  834. bool *val);
  835. /**
  836. * ucfg_mlme_set_twt_responder() - Set twt responder
  837. * @psoc: pointer to psoc object
  838. * @val: value that needs to set to this config
  839. *
  840. * Return: QDF Status
  841. */
  842. QDF_STATUS
  843. ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc,
  844. bool val);
  845. /**
  846. * ucfg_mlme_get_bcast_twt() - Get bcast twt
  847. * @psoc: pointer to psoc object
  848. * @val: Pointer to the value which will be filled for the caller
  849. *
  850. * Return: QDF Status
  851. */
  852. QDF_STATUS
  853. ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc,
  854. bool *val);
  855. /**
  856. * ucfg_mlme_set_bcast_twt() - Set bcast twt
  857. * @psoc: pointer to psoc object
  858. * @val: value that needs to set to this config
  859. *
  860. * Return: QDF Status
  861. */
  862. QDF_STATUS
  863. ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc,
  864. bool val);
  865. /**
  866. * ucfg_mlme_get_twt_congestion_timeout() - Get twt congestion timeout
  867. * @psoc: pointer to psoc object
  868. * @val: Pointer to the value which will be filled for the caller
  869. *
  870. * Return: QDF Status
  871. */
  872. QDF_STATUS
  873. ucfg_mlme_get_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  874. uint32_t *val);
  875. /**
  876. * ucfg_mlme_set_twt_congestion_timeout() - Set twt congestion timeout
  877. * @psoc: pointer to psoc object
  878. * @val: value that needs to set to this config
  879. *
  880. * Return: QDF Status
  881. */
  882. QDF_STATUS
  883. ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
  884. uint32_t val);
  885. /**
  886. * ucfg_mlme_get_enable_twt() - Get global twt config support
  887. * @psoc: pointer to psoc object
  888. * @val: Pointer to the value which will be filled for the caller
  889. *
  890. * Return: QDF Status
  891. */
  892. QDF_STATUS
  893. ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc,
  894. bool *val);
  895. /**
  896. * ucfg_mlme_set_enable_twt() - Set global twt config support
  897. * @psoc: pointer to psoc object
  898. * @val: value that needs to set to this config
  899. *
  900. * Return: QDF Status
  901. */
  902. QDF_STATUS
  903. ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
  904. bool val);
  905. /**
  906. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  907. * @psoc: pointer to psoc object
  908. * @out_mode: Pointer to the mode which will be filled for the caller
  909. *
  910. * Return: QDF Status
  911. */
  912. QDF_STATUS
  913. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  914. enum dot11p_mode *out_mode);
  915. /**
  916. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  917. * @psoc: pointer to psoc object
  918. * @val: Pointer to the value which will be filled for the caller
  919. *
  920. * Return: QDF Status
  921. */
  922. QDF_STATUS
  923. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  924. bool *val);
  925. /**
  926. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  927. * @psoc: pointer to psoc object
  928. * @val: Pointer to the value which will be filled for the caller
  929. *
  930. * Return: QDF Status
  931. */
  932. QDF_STATUS
  933. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  934. bool *val);
  935. /**
  936. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  937. * @psoc: pointer to psoc object
  938. * @val: Pointer to the value which will be filled for the caller
  939. *
  940. * Return: QDF Status
  941. */
  942. QDF_STATUS
  943. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  944. bool *val);
  945. /**
  946. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  947. * @psoc: pointer to psoc object
  948. * @val: Pointer to the value which will be filled for the caller
  949. *
  950. * Return: QDF Status
  951. */
  952. QDF_STATUS
  953. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  954. uint32_t *val);
  955. /**
  956. * ucfg_mlme_is_override_ht20_40_24g() - use channel bonding in 2.4 GHz or not
  957. * @psoc: pointer to psoc object
  958. * @val: Pointer to the value which will be filled for the caller
  959. *
  960. * Return: QDF Status
  961. */
  962. QDF_STATUS
  963. ucfg_mlme_is_override_ht20_40_24g(struct wlan_objmgr_psoc *psoc, bool *val);
  964. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  965. /**
  966. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  967. * @psoc: pointer to psoc object
  968. * @val: Pointer to enable/disable roaming offload
  969. *
  970. * Return: QDF Status
  971. */
  972. QDF_STATUS
  973. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  974. bool *val);
  975. /**
  976. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  977. * @psoc: pointer to psoc object
  978. * @val: enable/disable roaming offload
  979. *
  980. * Return: QDF Status
  981. */
  982. QDF_STATUS
  983. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  984. bool val);
  985. #endif
  986. /**
  987. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  988. * @psoc: pointer to psoc object
  989. * @val: first scan bucket threshold
  990. *
  991. * Return: QDF Status
  992. */
  993. QDF_STATUS
  994. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  995. uint8_t *val);
  996. /**
  997. * ucfg_mlme_is_mawc_enabled() - MAWC enabled or not
  998. * @psoc: pointer to psoc object
  999. * @val: Pointer to the value which will be filled for the caller
  1000. *
  1001. * Return: QDF Status
  1002. */
  1003. QDF_STATUS
  1004. ucfg_mlme_is_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  1005. /**
  1006. * ucfg_mlme_set_mawc_enabled() - Set MAWC enable or disable
  1007. * @psoc: pointer to psoc object
  1008. * @val: enable or disable MAWC
  1009. *
  1010. * Return: QDF Status
  1011. */
  1012. QDF_STATUS
  1013. ucfg_mlme_set_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  1014. /**
  1015. * ucfg_mlme_is_fast_transition_enabled() - Fast transition enable or not
  1016. * @psoc: pointer to psoc object
  1017. * @val: Pointer to the value which will be filled for the caller
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. QDF_STATUS
  1022. ucfg_mlme_is_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  1023. bool *val);
  1024. /**
  1025. * ucfg_mlme_set_fast_transition_enabled() - Set fast transition enable
  1026. * @psoc: pointer to psoc object
  1027. * @val: Fast transition enable or disable
  1028. *
  1029. * Return: QDF Status
  1030. */
  1031. QDF_STATUS
  1032. ucfg_mlme_set_fast_transition_enabled(struct wlan_objmgr_psoc *psoc,
  1033. bool val);
  1034. /**
  1035. * ucfg_mlme_is_roam_scan_offload_enabled() - Roam scan offload enable or not
  1036. * @psoc: pointer to psoc object
  1037. * @val: Pointer to the value which will be filled for the caller
  1038. *
  1039. * Return: QDF Status
  1040. */
  1041. QDF_STATUS
  1042. ucfg_mlme_is_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1043. bool *val);
  1044. /**
  1045. * ucfg_mlme_set_roam_scan_offload_enabled() - Set roam scan offload enable
  1046. * @psoc: pointer to psoc object
  1047. * @val: Roam scan offload enable or disable
  1048. *
  1049. * Return: QDF Status
  1050. */
  1051. QDF_STATUS
  1052. ucfg_mlme_set_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  1053. bool val);
  1054. /**
  1055. * ucfg_mlme_get_neighbor_scan_max_chan_time() - Get neighbor scan max
  1056. * channel time
  1057. * @psoc: pointer to psoc object
  1058. * @val: Pointer to the value which will be filled for the caller
  1059. *
  1060. * Return: QDF Status
  1061. */
  1062. QDF_STATUS
  1063. ucfg_mlme_get_neighbor_scan_max_chan_time(struct wlan_objmgr_psoc *psoc,
  1064. uint16_t *val);
  1065. /**
  1066. * ucfg_mlme_get_neighbor_scan_min_chan_time() - Get neighbor scan min
  1067. * channel time
  1068. * @psoc: pointer to psoc object
  1069. * @val: Pointer to the value which will be filled for the caller
  1070. *
  1071. * Return: QDF Status
  1072. */
  1073. QDF_STATUS
  1074. ucfg_mlme_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
  1075. uint16_t *val);
  1076. /**
  1077. * ucfg_mlme_get_delay_before_vdev_stop() - Get the delay before vdev stop
  1078. * @psoc: pointer to psoc object
  1079. * @val: Pointer to the value which will be filled for the caller
  1080. *
  1081. * Return: QDF Status
  1082. */
  1083. QDF_STATUS
  1084. ucfg_mlme_get_delay_before_vdev_stop(struct wlan_objmgr_psoc *psoc,
  1085. uint8_t *val);
  1086. /**
  1087. * ucfg_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss first count
  1088. * @psoc: pointer to psoc object
  1089. * @val: Pointer to the value which will be filled for the caller
  1090. *
  1091. * Return: QDF Status
  1092. */
  1093. QDF_STATUS
  1094. ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  1095. uint8_t *val);
  1096. /**
  1097. * ucfg_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss final count
  1098. * @psoc: pointer to psoc object
  1099. * @val: Pointer to the value which will be filled for the caller
  1100. *
  1101. * Return: QDF Status
  1102. */
  1103. QDF_STATUS
  1104. ucfg_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  1105. uint8_t *val);
  1106. /**
  1107. * ucfg_mlme_is_lfr_enabled() - LFR enable or not
  1108. * @psoc: pointer to psoc object
  1109. * @val: Pointer to the value which will be filled for the caller
  1110. *
  1111. * Return: QDF Status
  1112. */
  1113. QDF_STATUS
  1114. ucfg_mlme_is_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  1115. /**
  1116. * ucfg_mlme_set_lfr_enabled() - Enable or disable LFR
  1117. * @psoc: pointer to psoc object
  1118. * @val: Enable or disable LFR
  1119. *
  1120. * Return: QDF Status
  1121. */
  1122. QDF_STATUS
  1123. ucfg_mlme_set_lfr_enabled(struct wlan_objmgr_psoc *psoc, bool val);
  1124. /**
  1125. * ucfg_mlme_is_roam_prefer_5ghz() - prefer 5ghz or not
  1126. * @psoc: pointer to psoc object
  1127. * @val: Pointer to the value which will be filled for the caller
  1128. *
  1129. * Return: QDF Status
  1130. */
  1131. QDF_STATUS
  1132. ucfg_mlme_is_roam_prefer_5ghz(struct wlan_objmgr_psoc *psoc, bool *val);
  1133. /**
  1134. * ucfg_mlme_set_roam_intra_band() - Set roam intra modes
  1135. * @psoc: pointer to psoc object
  1136. * @val: roam intra modes or not
  1137. *
  1138. * Return: QDF Status
  1139. */
  1140. QDF_STATUS
  1141. ucfg_mlme_set_roam_intra_band(struct wlan_objmgr_psoc *psoc, bool val);
  1142. /**
  1143. * ucfg_mlme_get_home_away_time() - Get home away time
  1144. * @psoc: pointer to psoc object
  1145. * @val: Pointer to the value which will be filled for the caller
  1146. *
  1147. * Return: QDF Status
  1148. */
  1149. QDF_STATUS
  1150. ucfg_mlme_get_home_away_time(struct wlan_objmgr_psoc *psoc, uint16_t *val);
  1151. /**
  1152. * ucfg_mlme_set_fast_roam_in_concurrency_enabled() - Enable fast roam in
  1153. * concurrency
  1154. * @psoc: pointer to psoc object
  1155. * @val: Enable or disable fast roam in concurrency
  1156. *
  1157. * Return: QDF Status
  1158. */
  1159. QDF_STATUS
  1160. ucfg_mlme_set_fast_roam_in_concurrency_enabled(struct wlan_objmgr_psoc *psoc,
  1161. bool val);
  1162. /**
  1163. * ucfg_mlme_get_wmi_wq_watchdog_timeout() - Get timeout for wmi watchdog bite
  1164. * @psoc: pointer to psoc object
  1165. * @wmi_wq_watchdog_timeout: buffer to hold value
  1166. *
  1167. * Return: QDF Status
  1168. */
  1169. QDF_STATUS
  1170. ucfg_mlme_get_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1171. uint32_t *wmi_wq_watchdog_timeout);
  1172. /**
  1173. * ucfg_mlme_set_wmi_wq_watchdog_timeout() - Set timeout for wmi watchdog bite
  1174. * @psoc: pointer to psoc object
  1175. * @wmi_wq_watchdog_timeout: value to be set
  1176. *
  1177. * Return: QDF Status
  1178. */
  1179. QDF_STATUS
  1180. ucfg_mlme_set_wmi_wq_watchdog_timeout(struct wlan_objmgr_psoc *psoc,
  1181. uint32_t wmi_wq_watchdog_timeout);
  1182. /**
  1183. * ucfg_mlme_get_ps_data_inactivity_timeout() - Get data inactivity timeout
  1184. * @psoc: pointer to psoc object
  1185. * @inactivity_timeout: buffer to hold value
  1186. *
  1187. * Return: QDF Status
  1188. */
  1189. QDF_STATUS
  1190. ucfg_mlme_get_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1191. uint32_t *inactivity_timeout);
  1192. /**
  1193. * ucfg_mlme_set_ps_data_inactivity_timeout() - Set data inactivity timeout
  1194. * @psoc: pointer to psoc object
  1195. * @inactivity_timeout: value to be set
  1196. *
  1197. * Return: QDF Status
  1198. */
  1199. QDF_STATUS
  1200. ucfg_mlme_set_ps_data_inactivity_timeout(struct wlan_objmgr_psoc *psoc,
  1201. uint32_t inactivity_timeout);
  1202. /**
  1203. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  1204. * @psoc: pointer to psoc object
  1205. * @value: Value that needs to be set from the caller
  1206. *
  1207. * Inline UCFG API to be used by HDD/OSIF callers
  1208. *
  1209. * Return: QDF Status
  1210. */
  1211. static inline
  1212. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  1213. int value)
  1214. {
  1215. return wlan_mlme_set_sap_listen_interval(psoc, value);
  1216. }
  1217. /**
  1218. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  1219. * @psoc: pointer to psoc object
  1220. * @value: Value that needs to be set from the caller
  1221. *
  1222. * Inline UCFG API to be used by HDD/OSIF callers
  1223. *
  1224. * Return: QDF Status
  1225. */
  1226. static inline
  1227. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  1228. int value)
  1229. {
  1230. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  1231. }
  1232. /**
  1233. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  1234. * @psoc: pointer to psoc object
  1235. * @value: Value that needs to be set from the caller
  1236. *
  1237. * Inline UCFG API to be used by HDD/OSIF callers
  1238. *
  1239. * Return: QDF Status
  1240. */
  1241. static inline
  1242. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  1243. int value)
  1244. {
  1245. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  1246. }
  1247. /**
  1248. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  1249. * @psoc: pointer to psoc object
  1250. * @value: Value that needs to be set from the caller
  1251. *
  1252. * Inline UCFG API to be used by HDD/OSIF callers
  1253. *
  1254. * Return: QDF Status
  1255. */
  1256. static inline
  1257. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  1258. bool *value)
  1259. {
  1260. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  1261. }
  1262. /**
  1263. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  1264. * @psoc: pointer to psoc object
  1265. * @value: Value that needs to be set from the caller
  1266. *
  1267. * Inline UCFG API to be used by HDD/OSIF callers
  1268. *
  1269. * Return: QDF Status
  1270. */
  1271. static inline
  1272. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  1273. bool *value)
  1274. {
  1275. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  1276. }
  1277. /**
  1278. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  1279. * @psoc: pointer to psoc object
  1280. * @value: Value that needs to be set from the caller
  1281. *
  1282. * Inline UCFG API to be used by HDD/OSIF callers
  1283. *
  1284. * Return: QDF Status
  1285. */
  1286. static inline
  1287. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  1288. int *value)
  1289. {
  1290. return wlan_mlme_get_sap_max_peers(psoc, value);
  1291. }
  1292. /**
  1293. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  1294. * @psoc: pointer to psoc object
  1295. * @value: Value that needs to be set from the caller
  1296. *
  1297. * Inline UCFG API to be used by HDD/OSIF callers
  1298. *
  1299. * Return: QDF Status
  1300. */
  1301. static inline
  1302. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  1303. {
  1304. return wlan_mlme_set_sap_max_peers(psoc, value);
  1305. }
  1306. /**
  1307. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  1308. * @psoc: pointer to psoc object
  1309. * @value: Value that needs to be set from the caller
  1310. *
  1311. * Inline UCFG API to be used by HDD/OSIF callers
  1312. *
  1313. * Return: QDF Status
  1314. */
  1315. static inline
  1316. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  1317. int *value)
  1318. {
  1319. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  1320. }
  1321. /**
  1322. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  1323. * reorder buffs
  1324. * @psoc: pointer to psoc object
  1325. * @value: Value that needs to be set from the caller
  1326. *
  1327. * Inline UCFG API to be used by HDD/OSIF callers
  1328. *
  1329. * Return: QDF Status
  1330. */
  1331. static inline
  1332. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  1333. *psoc, int *value)
  1334. {
  1335. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  1336. }
  1337. /**
  1338. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  1339. * switch beacon count
  1340. * @psoc: pointer to psoc object
  1341. * @value: Value that needs to be set from the caller
  1342. *
  1343. * Inline UCFG API to be used by HDD/OSIF callers
  1344. *
  1345. * Return: QDF Status
  1346. */
  1347. static inline
  1348. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  1349. int *value)
  1350. {
  1351. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  1352. }
  1353. /**
  1354. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  1355. * @psoc: pointer to psoc object
  1356. * @value: Value that needs to be set from the caller
  1357. *
  1358. * Inline UCFG API to be used by HDD/OSIF callers
  1359. *
  1360. * Return: QDF Status
  1361. */
  1362. static inline
  1363. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  1364. bool *value)
  1365. {
  1366. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  1367. }
  1368. /**
  1369. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  1370. * @psoc: pointer to psoc object
  1371. * @value: Value that needs to be set from the caller
  1372. *
  1373. * Inline UCFG API to be used by HDD/OSIF callers
  1374. *
  1375. * Return: QDF Status
  1376. */
  1377. static inline
  1378. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  1379. bool *value)
  1380. {
  1381. return wlan_mlme_get_sap_internal_restart(psoc, value);
  1382. }
  1383. /**
  1384. * ucfg_mlme_get_sap_max_modulated_dtim() - get sap max modulated dtim
  1385. * @psoc: pointer to psoc object
  1386. * @value: Value that needs to be set from the caller
  1387. *
  1388. * Inline UCFG API to be used by HDD/OSIF callers
  1389. *
  1390. * Return: QDF Status
  1391. */
  1392. static inline
  1393. QDF_STATUS ucfg_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  1394. uint8_t *value)
  1395. {
  1396. return wlan_mlme_get_sap_max_modulated_dtim(psoc, value);
  1397. }
  1398. /**
  1399. * ucfg_mlme_get_pref_chan_location() - get sap pref chan location
  1400. * @psoc: pointer to psoc object
  1401. * @value: Value that needs to be set from the caller
  1402. *
  1403. * Inline UCFG API to be used by HDD/OSIF callers
  1404. *
  1405. * Return: QDF Status
  1406. */
  1407. static inline
  1408. QDF_STATUS ucfg_mlme_get_pref_chan_location(struct wlan_objmgr_psoc *psoc,
  1409. uint8_t *value)
  1410. {
  1411. return wlan_mlme_get_sap_chan_pref_location(psoc, value);
  1412. }
  1413. /**
  1414. * ucfg_mlme_get_sap_country_priority() - get sap country code priority
  1415. * @psoc: pointer to psoc object
  1416. * @value: Value that needs to be set from the caller
  1417. *
  1418. * Inline UCFG API to be used by HDD/OSIF callers
  1419. *
  1420. * Return: QDF Status
  1421. */
  1422. static inline
  1423. QDF_STATUS ucfg_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  1424. bool *value)
  1425. {
  1426. return wlan_mlme_get_sap_country_priority(psoc, value);
  1427. }
  1428. /**
  1429. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  1430. * interval
  1431. * @psoc: pointer to psoc object
  1432. * @value: Value that needs to be set from the caller
  1433. *
  1434. * Inline UCFG API to be used by HDD/OSIF callers
  1435. *
  1436. * Return: QDF Status
  1437. */
  1438. static inline
  1439. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  1440. *psoc, int *value)
  1441. {
  1442. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  1443. }
  1444. /**
  1445. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  1446. * switch rate enabled.
  1447. * @psoc: pointer to psoc object
  1448. * @value: Value that needs to be set from the caller
  1449. *
  1450. * Inline UCFG API to be used by HDD/OSIF callers
  1451. *
  1452. * Return: QDF Status
  1453. */
  1454. static inline
  1455. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  1456. *psoc, bool *value)
  1457. {
  1458. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  1459. }
  1460. /**
  1461. * ucfg_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  1462. *
  1463. * @psoc: pointer to psoc object
  1464. * @value: Value that needs to be set from the caller
  1465. *
  1466. * Inline UCFG API to be used by HDD/OSIF callers
  1467. *
  1468. * Return: QDF Status
  1469. */
  1470. static inline
  1471. QDF_STATUS ucfg_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  1472. *psoc, bool *value)
  1473. {
  1474. return wlan_mlme_get_sap_force_11n_for_11ac(psoc, value);
  1475. }
  1476. /**
  1477. * ucfg_mlme_get_go_force_11n_for_11ac() - get the GO 11n for 11ac
  1478. *
  1479. * @psoc: pointer to psoc object
  1480. * @value: Value that needs to be set from the caller
  1481. *
  1482. * Inline UCFG API to be used by HDD/OSIF callers
  1483. *
  1484. * Return: QDF Status
  1485. */
  1486. static inline
  1487. QDF_STATUS ucfg_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  1488. *psoc, bool *value)
  1489. {
  1490. return wlan_mlme_get_go_force_11n_for_11ac(psoc, value);
  1491. }
  1492. /**
  1493. * ucfg_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  1494. *
  1495. * @psoc: pointer to psoc object
  1496. * @value: Value that needs to be set from the caller
  1497. *
  1498. * Return: QDF Status
  1499. */
  1500. static inline
  1501. QDF_STATUS ucfg_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  1502. bool *value)
  1503. {
  1504. return wlan_mlme_is_sap_11ac_override(psoc, value);
  1505. }
  1506. /**
  1507. * ucfg_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  1508. *
  1509. * @psoc: pointer to psoc object
  1510. * @value: pointer to the value which will be filled for the caller
  1511. *
  1512. * Return: QDF Status
  1513. */
  1514. static inline
  1515. QDF_STATUS ucfg_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  1516. bool *value)
  1517. {
  1518. return wlan_mlme_is_go_11ac_override(psoc, value);
  1519. }
  1520. /**
  1521. * ucfg_mlme_set_sap_11ac_override() - Set override 11ac bandwdith for SAP
  1522. *
  1523. * @psoc: pointer to psoc object
  1524. * @value: Value that needs to be set from the caller
  1525. *
  1526. * Return: QDF Status
  1527. */
  1528. static inline
  1529. QDF_STATUS ucfg_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  1530. bool value)
  1531. {
  1532. return wlan_mlme_set_sap_11ac_override(psoc, value);
  1533. }
  1534. /**
  1535. * ucfg_mlme_set_go_11ac_override() - Set override 11ac bandwdith for P2P GO
  1536. *
  1537. * @psoc: pointer to psoc object
  1538. * @value: pointer to the value which will be filled for the caller
  1539. *
  1540. * Return: QDF Status
  1541. */
  1542. static inline
  1543. QDF_STATUS ucfg_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  1544. bool value)
  1545. {
  1546. return wlan_mlme_set_go_11ac_override(psoc, value);
  1547. }
  1548. /**
  1549. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  1550. * info for STA
  1551. *
  1552. * @psoc: pointer to psoc object
  1553. * @value: pointer to the value which will be filled for the caller
  1554. *
  1555. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1556. * OCE STA feature enable value
  1557. *
  1558. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1559. */
  1560. static inline
  1561. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  1562. bool *value)
  1563. {
  1564. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  1565. }
  1566. /**
  1567. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  1568. * info for SAP
  1569. *
  1570. * @psoc: pointer to psoc object
  1571. * @value: pointer to the value which will be filled for the caller
  1572. *
  1573. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1574. * OCE SAP feature enable value
  1575. *
  1576. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1577. */
  1578. static inline
  1579. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  1580. bool *value)
  1581. {
  1582. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  1583. }
  1584. /**
  1585. * ucfg_mlme_is_ap_prot_enabled() - Check if sap is enabled
  1586. * @psoc: pointer to psoc object
  1587. *
  1588. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1589. * sap protection enabled/disabled
  1590. *
  1591. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1592. */
  1593. static inline
  1594. bool ucfg_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc)
  1595. {
  1596. return wlan_mlme_is_ap_prot_enabled(psoc);
  1597. }
  1598. /**
  1599. * ucfg_mlme_get_ap_protection_mode() - Get ap protection mode info
  1600. * @psoc: pointer to psoc object
  1601. * @value: pointer to the value which will be filled for the caller
  1602. *
  1603. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1604. * ap protection mode value
  1605. *
  1606. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1607. */
  1608. static inline
  1609. QDF_STATUS ucfg_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1610. uint16_t *value)
  1611. {
  1612. return wlan_mlme_get_ap_protection_mode(psoc, value);
  1613. }
  1614. /**
  1615. * ucfg_mlme_is_ap_obss_prot_enabled() - Get ap obss protection enable/disable
  1616. * @psoc: pointer to psoc object
  1617. * @value: pointer to the value which will be filled for the caller
  1618. *
  1619. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1620. * obss protection enable value
  1621. *
  1622. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1623. */
  1624. static inline
  1625. QDF_STATUS ucfg_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1626. bool *value)
  1627. {
  1628. return wlan_mlme_is_ap_obss_prot_enabled(psoc, value);
  1629. }
  1630. /**
  1631. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  1632. * @psoc: pointer to psoc object
  1633. * @value: pointer to the value which will be filled for the caller
  1634. *
  1635. * Inline UCFG API to be used by HDD/OSIF callers
  1636. *
  1637. * Return: QDF Status
  1638. */
  1639. static inline
  1640. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1641. uint32_t *value)
  1642. {
  1643. return wlan_mlme_get_rts_threshold(psoc, value);
  1644. }
  1645. /**
  1646. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  1647. * @psoc: pointer to psoc object
  1648. * @value: pointer to the value which will be filled for the caller
  1649. *
  1650. * Inline UCFG API to be used by HDD/OSIF callers
  1651. *
  1652. * Return: QDF Status
  1653. */
  1654. static inline
  1655. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1656. uint32_t value)
  1657. {
  1658. return wlan_mlme_set_rts_threshold(psoc, value);
  1659. }
  1660. /**
  1661. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  1662. * config
  1663. * @psoc: pointer to psoc object
  1664. * @value: Value that needs to be set from the caller
  1665. *
  1666. * Inline UCFG API to be used by HDD/OSIF callers
  1667. *
  1668. * Return: QDF Status
  1669. */
  1670. static inline
  1671. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1672. uint32_t *value)
  1673. {
  1674. return wlan_mlme_get_frag_threshold(psoc, value);
  1675. }
  1676. /**
  1677. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1678. * @psoc: pointer to psoc object
  1679. * @value: pointer to the value which will be filled for the caller
  1680. *
  1681. * Inline UCFG API to be used by HDD/OSIF callers
  1682. *
  1683. * Return: QDF Status
  1684. */
  1685. static inline
  1686. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1687. uint32_t value)
  1688. {
  1689. return wlan_mlme_set_frag_threshold(psoc, value);
  1690. }
  1691. /**
  1692. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1693. *
  1694. * @psoc: pointer to psoc object
  1695. * @value: pointer to the value which will be filled for the caller
  1696. *
  1697. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1698. * fils enable value
  1699. *
  1700. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1701. */
  1702. static inline
  1703. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1704. bool *value)
  1705. {
  1706. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1707. }
  1708. /**
  1709. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1710. *
  1711. * @psoc: pointer to psoc object
  1712. * @value: value that needs to be set from the caller
  1713. *
  1714. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1715. * fils enable value
  1716. *
  1717. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1718. */
  1719. static inline
  1720. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1721. bool value)
  1722. {
  1723. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1724. }
  1725. /**
  1726. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1727. * @psoc: pointer to psoc object
  1728. * @value: value that needs to be set from the caller
  1729. *
  1730. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1731. * enable bcast probe resp info
  1732. *
  1733. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1734. */
  1735. static inline
  1736. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1737. bool value)
  1738. {
  1739. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1740. }
  1741. /**
  1742. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1743. * @psoc: psoc context
  1744. * @value: data to be set
  1745. *
  1746. * Inline UCFG API to be used by HDD/OSIF callers
  1747. *
  1748. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1749. */
  1750. static inline QDF_STATUS
  1751. ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t value)
  1752. {
  1753. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1754. }
  1755. /**
  1756. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1757. * cfg item
  1758. * @psoc: psoc context
  1759. * @value: data to be set
  1760. *
  1761. * Inline UCFG API to be used by HDD/OSIF callers
  1762. *
  1763. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1764. */
  1765. static inline QDF_STATUS
  1766. ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1767. {
  1768. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1769. }
  1770. /**
  1771. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1772. * cfg item
  1773. * @psoc: psoc context
  1774. * @value: data to be set
  1775. *
  1776. * Inline UCFG API to be used by HDD/OSIF callers
  1777. *
  1778. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1779. */
  1780. static inline QDF_STATUS
  1781. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc, bool value)
  1782. {
  1783. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1784. }
  1785. /**
  1786. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1787. * @psoc: psoc context
  1788. * @value: data to be set
  1789. *
  1790. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1791. * ignore_peer_ht_opmode flag value
  1792. *
  1793. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1794. */
  1795. static inline QDF_STATUS
  1796. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value)
  1797. {
  1798. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1799. }
  1800. /**
  1801. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1802. * cfg item
  1803. * @psoc: psoc context
  1804. * @value: data to be set
  1805. *
  1806. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1807. * ignore_peer_ht_opmode flag value
  1808. *
  1809. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1810. */
  1811. static inline QDF_STATUS
  1812. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value)
  1813. {
  1814. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1815. }
  1816. /**
  1817. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1818. * cfg item
  1819. * @psoc: psoc context
  1820. * @value: pointer to get required data
  1821. *
  1822. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1823. * ignore_peer_ht_opmode flag value
  1824. *
  1825. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1826. */
  1827. static inline QDF_STATUS
  1828. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
  1829. {
  1830. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1831. }
  1832. /**
  1833. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1834. * cfg item
  1835. * @psoc: psoc context
  1836. * @value: pointer to get required data
  1837. *
  1838. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1839. * ignore_peer_ht_opmode flag value
  1840. *
  1841. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1842. */
  1843. static inline QDF_STATUS
  1844. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
  1845. {
  1846. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1847. }
  1848. /**
  1849. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1850. * support cap into cfg item
  1851. * @psoc: psoc context
  1852. * @value: data to be set
  1853. *
  1854. * Inline UCFG API to be used by HDD/OSIF callers
  1855. *
  1856. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1857. */
  1858. static inline
  1859. QDF_STATUS ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1860. uint8_t value)
  1861. {
  1862. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1863. }
  1864. /**
  1865. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1866. * support cap into cfg item
  1867. * @psoc: psoc context
  1868. * @value: data to be set
  1869. *
  1870. * Inline UCFG API to be used by HDD/OSIF callers
  1871. *
  1872. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1873. */
  1874. static inline
  1875. QDF_STATUS ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1876. uint8_t *value)
  1877. {
  1878. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1879. }
  1880. /**
  1881. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1882. * cfg item
  1883. * @psoc: psoc context
  1884. * @value: pointer to get required data
  1885. *
  1886. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1887. * ignore_peer_ht_opmode flag value
  1888. *
  1889. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1890. */
  1891. static inline QDF_STATUS
  1892. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
  1893. {
  1894. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1895. }
  1896. /**
  1897. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1898. * cfg item
  1899. * @psoc: psoc context
  1900. * @value: data to be set
  1901. *
  1902. * Inline UCFG API to be used by HDD/OSIF callers
  1903. *
  1904. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1905. */
  1906. static inline QDF_STATUS
  1907. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
  1908. {
  1909. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1910. }
  1911. /**
  1912. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1913. * cfg item
  1914. * @psoc: psoc context
  1915. * @value: pointer to get required data
  1916. *
  1917. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1918. * ignore_peer_ht_opmode flag value
  1919. *
  1920. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1921. */
  1922. static inline QDF_STATUS
  1923. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
  1924. {
  1925. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1926. }
  1927. /**
  1928. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1929. * cfg item
  1930. * @psoc: psoc context
  1931. * @value: data to be set
  1932. *
  1933. * Inline UCFG API to be used by HDD/OSIF callers
  1934. *
  1935. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1936. */
  1937. static inline QDF_STATUS
  1938. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
  1939. {
  1940. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1941. }
  1942. /**
  1943. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1944. * rate into cfg item
  1945. * @psoc: psoc context
  1946. * @value: data to be set
  1947. *
  1948. * Inline UCFG API to be used by HDD/OSIF callers
  1949. *
  1950. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1951. */
  1952. static inline QDF_STATUS
  1953. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1954. uint32_t value)
  1955. {
  1956. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1957. }
  1958. /**
  1959. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1960. * cfg item
  1961. * @psoc: psoc context
  1962. * @value: data to be set
  1963. *
  1964. * Inline UCFG API to be used by HDD/OSIF callers
  1965. *
  1966. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1967. */
  1968. static inline QDF_STATUS
  1969. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1970. uint32_t value)
  1971. {
  1972. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1973. }
  1974. /**
  1975. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1976. * cfg item
  1977. * @psoc: psoc context
  1978. * @value: data to be set
  1979. *
  1980. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1981. * ignore_peer_ht_opmode flag value
  1982. *
  1983. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1984. */
  1985. static inline QDF_STATUS
  1986. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1987. uint32_t *value)
  1988. {
  1989. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1990. }
  1991. /**
  1992. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1993. * cfg item
  1994. * @psoc: psoc context
  1995. * @value: data to be set
  1996. *
  1997. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1998. * ignore_peer_ht_opmode flag value
  1999. *
  2000. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2001. */
  2002. static inline QDF_STATUS
  2003. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  2004. uint32_t value)
  2005. {
  2006. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  2007. }
  2008. /**
  2009. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  2010. * for 11ac
  2011. * @psoc: psoc context
  2012. * @value: data to be set
  2013. *
  2014. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2015. * ignore_peer_ht_opmode flag value
  2016. *
  2017. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2018. */
  2019. static inline QDF_STATUS
  2020. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  2021. {
  2022. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  2023. }
  2024. /**
  2025. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  2026. * for 11ac
  2027. * @psoc: psoc context
  2028. * @value: data to be set
  2029. *
  2030. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2031. * ignore_peer_ht_opmode flag value
  2032. *
  2033. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2034. */
  2035. static inline QDF_STATUS
  2036. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  2037. {
  2038. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  2039. }
  2040. /**
  2041. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  2042. * for 11ac
  2043. * @psoc: psoc context
  2044. * @value: data to be set
  2045. *
  2046. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2047. * ignore_peer_ht_opmode flag value
  2048. *
  2049. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2050. */
  2051. static inline QDF_STATUS
  2052. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2053. {
  2054. return wlan_mlme_get_vht_channel_width(psoc, value);
  2055. }
  2056. /**
  2057. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  2058. * for 11ac
  2059. * @psoc: psoc context
  2060. * @value: data to be set
  2061. *
  2062. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2063. * ignore_peer_ht_opmode flag value
  2064. *
  2065. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2066. */
  2067. static inline QDF_STATUS
  2068. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2069. {
  2070. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  2071. }
  2072. /**
  2073. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  2074. * for 11ac
  2075. * @psoc: psoc context
  2076. * @value: data to be set
  2077. *
  2078. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2079. * ignore_peer_ht_opmode flag value
  2080. *
  2081. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2082. */
  2083. static inline QDF_STATUS
  2084. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2085. {
  2086. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  2087. }
  2088. /**
  2089. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  2090. * for 11ac
  2091. * @psoc: psoc context
  2092. * @value: data to be set
  2093. *
  2094. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2095. * ignore_peer_ht_opmode flag value
  2096. *
  2097. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2098. */
  2099. static inline QDF_STATUS
  2100. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2101. {
  2102. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  2103. }
  2104. /**
  2105. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  2106. * for 11ac
  2107. * @psoc: psoc context
  2108. * @value: data to be set
  2109. *
  2110. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2111. * ignore_peer_ht_opmode flag value
  2112. *
  2113. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2114. */
  2115. static inline QDF_STATUS
  2116. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2117. {
  2118. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  2119. }
  2120. /**
  2121. * ucfg_mlme_get_ini_vdev_config() - get the ini capability of vdev
  2122. * @vdev: pointer to the vdev obj
  2123. *
  2124. * This API will get the ini config of the vdev related to
  2125. * the nss, chains params
  2126. *
  2127. * Return: pointer to the nss, chain param ini cfg structure
  2128. */
  2129. static inline struct wlan_mlme_nss_chains *
  2130. ucfg_mlme_get_ini_vdev_config(struct wlan_objmgr_vdev *vdev)
  2131. {
  2132. return mlme_get_ini_vdev_config(vdev);
  2133. }
  2134. /**
  2135. * ucfg_mlme_get_dynamic_vdev_config() - get the dynamic capability of vdev
  2136. * @vdev: pointer to the vdev obj
  2137. *
  2138. * This API will get the dynamic config of the vdev related to nss,
  2139. * chains params
  2140. *
  2141. * Return: pointer to the nss, chain param dynamic cfg structure
  2142. */
  2143. static inline struct wlan_mlme_nss_chains *
  2144. ucfg_mlme_get_dynamic_vdev_config(struct wlan_objmgr_vdev *vdev)
  2145. {
  2146. return mlme_get_dynamic_vdev_config(vdev);
  2147. }
  2148. /**
  2149. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  2150. * @psoc: psoc context
  2151. * @value: data to be set
  2152. *
  2153. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2154. * ignore_peer_ht_opmode flag value
  2155. *
  2156. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2157. */
  2158. static inline QDF_STATUS
  2159. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  2160. {
  2161. return wlan_mlme_get_vht20_mcs9(psoc, value);
  2162. }
  2163. /**
  2164. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2165. * @psoc: psoc context
  2166. * @value: data to be set
  2167. *
  2168. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2169. * ignore_peer_ht_opmode flag value
  2170. *
  2171. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2172. */
  2173. static inline QDF_STATUS
  2174. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  2175. {
  2176. return wlan_mlme_get_vht_enable2x2(psoc, value);
  2177. }
  2178. /**
  2179. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2180. * @psoc: psoc context
  2181. * @value: data to be set
  2182. *
  2183. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2184. * ignore_peer_ht_opmode flag value
  2185. *
  2186. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2187. */
  2188. static inline QDF_STATUS
  2189. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  2190. {
  2191. return wlan_mlme_set_vht_enable2x2(psoc, value);
  2192. }
  2193. /**
  2194. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  2195. * @psoc: psoc context
  2196. * @value: data to be set
  2197. *
  2198. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2199. * ignore_peer_ht_opmode flag value
  2200. *
  2201. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2202. */
  2203. static inline QDF_STATUS
  2204. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  2205. {
  2206. return wlan_mlme_get_vht_enable_paid(psoc, value);
  2207. }
  2208. /**
  2209. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  2210. * @psoc: psoc context
  2211. * @value: data to be set
  2212. *
  2213. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2214. * ignore_peer_ht_opmode flag value
  2215. *
  2216. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2217. */
  2218. static inline QDF_STATUS
  2219. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  2220. {
  2221. return wlan_mlme_get_vht_enable_gid(psoc, value);
  2222. }
  2223. /**
  2224. * ucfg_mlme_get_vht_for_24ghz() - Get mlme cfg of vht for 24ghz
  2225. * @psoc: psoc context
  2226. * @value: data to get
  2227. *
  2228. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2229. */
  2230. static inline QDF_STATUS
  2231. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2232. {
  2233. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  2234. }
  2235. /**
  2236. * ucfg_mlme_set_vht_for_24ghz() - Enables/disables vht for 24ghz
  2237. * @psoc: psoc context
  2238. * @value: data to be set
  2239. *
  2240. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2241. */
  2242. static inline QDF_STATUS
  2243. ucfg_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value)
  2244. {
  2245. return wlan_mlme_set_vht_for_24ghz(psoc, value);
  2246. }
  2247. /**
  2248. * ucfg_mlme_get_vendor_vht_for_24ghz() - Get mlme cfg of vendor vht for 24ghz
  2249. * @psoc: psoc context
  2250. * @value: data to be set
  2251. *
  2252. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2253. */
  2254. static inline QDF_STATUS
  2255. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  2256. {
  2257. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  2258. }
  2259. /**
  2260. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  2261. * @psoc: psoc context
  2262. * @value: data to be set
  2263. *
  2264. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2265. * ignore_peer_ht_opmode flag value
  2266. *
  2267. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2268. */
  2269. static inline
  2270. QDF_STATUS ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  2271. struct wma_tgt_vht_cap *cfg)
  2272. {
  2273. return mlme_update_vht_cap(psoc, cfg);
  2274. }
  2275. /**
  2276. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  2277. * streams supported for vht
  2278. * @psoc: psoc context
  2279. * @value: data to be set
  2280. *
  2281. * Inline UCFG API to be used by HDD/OSIF callers to get the
  2282. * ignore_peer_ht_opmode flag value
  2283. *
  2284. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2285. */
  2286. static inline QDF_STATUS
  2287. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  2288. {
  2289. return mlme_update_nss_vht_cap(psoc);
  2290. }
  2291. /**
  2292. * ucfg_mlme_is_11h_enabled() - Get 11h flag
  2293. * @psoc: pointer to psoc object
  2294. * @value: Value that needs to be set from the caller
  2295. *
  2296. * Inline UCFG API to be used by HDD/OSIF callers
  2297. *
  2298. * Return: QDF Status
  2299. */
  2300. static inline QDF_STATUS
  2301. ucfg_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2302. {
  2303. return wlan_mlme_is_11h_enabled(psoc, value);
  2304. }
  2305. /**
  2306. * ucfg_mlme_set_11h_enabled() - Set 11h flag
  2307. * @psoc: pointer to psoc object
  2308. * @value: Value that needs to be set from the caller
  2309. *
  2310. * Inline UCFG API to be used by HDD/OSIF callers
  2311. *
  2312. * Return: QDF Status
  2313. */
  2314. static inline QDF_STATUS
  2315. ucfg_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2316. {
  2317. return wlan_mlme_set_11h_enabled(psoc, value);
  2318. }
  2319. /**
  2320. * ucfg_mlme_is_11d_enabled() - Get 11d flag
  2321. * @psoc: pointer to psoc object
  2322. * @value: Value that needs to be set from the caller
  2323. *
  2324. * Inline UCFG API to be used by HDD/OSIF callers
  2325. *
  2326. * Return: QDF Status
  2327. */
  2328. static inline QDF_STATUS
  2329. ucfg_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2330. {
  2331. return wlan_mlme_is_11d_enabled(psoc, value);
  2332. }
  2333. /**
  2334. * ucfg_mlme_set_11d_enabled() - Set 11d flag
  2335. * @psoc: pointer to psoc object
  2336. * @value: Value that needs to be set from the caller
  2337. *
  2338. * Inline UCFG API to be used by HDD/OSIF callers
  2339. *
  2340. * Return: QDF Status
  2341. */
  2342. static inline QDF_STATUS
  2343. ucfg_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2344. {
  2345. return wlan_mlme_set_11d_enabled(psoc, value);
  2346. }
  2347. /**
  2348. * ucfg_mlme_is_change_channel_bandwidth_enabled() - ucfg api to get the
  2349. * enable_change_channel_bandwidth flag
  2350. * @psoc: psoc context
  2351. *
  2352. * Return: true if enabled
  2353. */
  2354. static inline bool
  2355. ucfg_mlme_is_change_channel_bandwidth_enabled(struct wlan_objmgr_psoc *psoc)
  2356. {
  2357. return wlan_mlme_is_change_channel_bandwidth_enabled(psoc);
  2358. }
  2359. /**
  2360. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  2361. * @psoc: pointer to psoc object
  2362. * @buf: buffer to get rates set
  2363. * @len: length of the buffer
  2364. * Return: QDF Status
  2365. */
  2366. QDF_STATUS
  2367. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2368. qdf_size_t *len);
  2369. /**
  2370. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  2371. * @psoc: pointer to psoc object
  2372. * @buf: buffer to get rates set
  2373. * @len: length of the buffer
  2374. * Return: QDF Status
  2375. */
  2376. QDF_STATUS
  2377. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2378. qdf_size_t *len);
  2379. /**
  2380. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  2381. * @psoc: pointer to psoc object
  2382. * @buf: caller buffer to copy mcs set info
  2383. * @len: length of the buffer
  2384. * Return: QDF Status
  2385. */
  2386. QDF_STATUS
  2387. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2388. qdf_size_t *len);
  2389. /**
  2390. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  2391. * @psoc: pointer to psoc object
  2392. * @buf: caller buffer having mcs set info
  2393. * @len: length of the buffer
  2394. * Return: QDF Status
  2395. */
  2396. QDF_STATUS
  2397. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2398. qdf_size_t len);
  2399. /**
  2400. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  2401. * @psoc: pointer to psoc object
  2402. * @buf: caller buffer to copy mcs set info
  2403. * @len: length of the buffer
  2404. * Return: QDF Status
  2405. */
  2406. QDF_STATUS
  2407. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  2408. qdf_size_t *len);
  2409. /**
  2410. * ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method
  2411. * @psoc: pointer to psoc object
  2412. * @val: Value to pass to the caller
  2413. *
  2414. * Return: QDF Status
  2415. */
  2416. QDF_STATUS
  2417. ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
  2418. enum station_keepalive_method *val);
  2419. /**
  2420. * ucfg_mlme_stats_get_periodic_display_time() - get display time
  2421. * @psoc: pointer to psoc object
  2422. * @periodic_display_time: buffer to hold value
  2423. *
  2424. * Return: QDF Status
  2425. */
  2426. QDF_STATUS
  2427. ucfg_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
  2428. uint32_t *periodic_display_time);
  2429. /**
  2430. * ucfg_mlme_stats_get_cfg_values() - get stats cfg values
  2431. * @psoc: pointer to psoc object
  2432. * @link_speed_rssi_high: link speed high limit
  2433. * @link_speed_rssi_mid: link speed high mid
  2434. * @link_speed_rssi_low: link speed high low
  2435. * @link_speed_rssi_report: link speed report limit
  2436. *
  2437. * Return: QDF Status
  2438. */
  2439. QDF_STATUS
  2440. ucfg_mlme_stats_get_cfg_values(struct wlan_objmgr_psoc *psoc,
  2441. int *link_speed_rssi_high,
  2442. int *link_speed_rssi_mid,
  2443. int *link_speed_rssi_low,
  2444. uint32_t *link_speed_rssi_report);
  2445. /**
  2446. * ucfg_mlme_stats_is_link_speed_report_actual() - is link speed report set
  2447. * actual
  2448. * @psoc: pointer to psoc object
  2449. *
  2450. * Return: True is report set to actual
  2451. */
  2452. bool
  2453. ucfg_mlme_stats_is_link_speed_report_actual(struct wlan_objmgr_psoc *psoc);
  2454. /**
  2455. * ucfg_mlme_stats_is_link_speed_report_max() - is link speed report set
  2456. * max
  2457. * @psoc: pointer to psoc object
  2458. *
  2459. * Return: True is report set to max
  2460. */
  2461. bool
  2462. ucfg_mlme_stats_is_link_speed_report_max(struct wlan_objmgr_psoc *psoc);
  2463. /**
  2464. * ucfg_mlme_stats_is_link_speed_report_max_scaled() - is link speed report set
  2465. * max scaled
  2466. * @psoc: pointer to psoc object
  2467. *
  2468. * Return: True is report set to max scaled
  2469. */
  2470. bool
  2471. ucfg_mlme_stats_is_link_speed_report_max_scaled(struct wlan_objmgr_psoc *psoc);
  2472. /**
  2473. * ucfg_mlme_get_ibss_cfg() - Get IBSS config params data structure
  2474. * @psoc: pointer to psoc object
  2475. * @auto_bssid: Pointer to return the IBSS config data structure
  2476. *
  2477. * Return: QDF Status
  2478. */
  2479. QDF_STATUS ucfg_mlme_get_ibss_cfg(struct wlan_objmgr_psoc *psoc,
  2480. struct wlan_mlme_ibss_cfg *ibss_cfg);
  2481. /**
  2482. * ucfg_mlme_set_ibss_auto_bssid() - Set IBSS Auto BSSID config
  2483. * @psoc: pointer to psoc object
  2484. * @auto_bssid: IBSS Auto BSSID config value
  2485. *
  2486. * Return: QDF Status
  2487. */
  2488. QDF_STATUS ucfg_mlme_set_ibss_auto_bssid(struct wlan_objmgr_psoc *psoc,
  2489. uint32_t auto_bssid);
  2490. /**
  2491. * ucfg_mlme_ibss_power_save_setup() - Set IBSS power save params
  2492. * @psoc: pointer to psoc object
  2493. * @vdev_id: IBSS Vdev ID
  2494. *
  2495. * Return: QDF Status
  2496. */
  2497. static inline
  2498. QDF_STATUS ucfg_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  2499. uint32_t vdev_id)
  2500. {
  2501. return wlan_mlme_ibss_power_save_setup(psoc, vdev_id);
  2502. }
  2503. /**
  2504. * ucfg_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  2505. * of UAPSD auto trigger.
  2506. * @psoc: pointer to psoc object
  2507. * @value: Value that needs to be set from the caller
  2508. *
  2509. * Inline UCFG API to be used by HDD/OSIF callers
  2510. *
  2511. * Return: None
  2512. */
  2513. static inline
  2514. void ucfg_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  2515. uint32_t *value)
  2516. {
  2517. wlan_mlme_get_tl_delayed_trgr_frm_int(psoc, value);
  2518. }
  2519. /**
  2520. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  2521. * for VI
  2522. * @psoc: pointer to psoc object
  2523. * @value: Value that needs to be set from the caller
  2524. *
  2525. * Inline UCFG API to be used by HDD/OSIF callers
  2526. *
  2527. * Return: QDF Status
  2528. */
  2529. static inline QDF_STATUS
  2530. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2531. {
  2532. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  2533. }
  2534. /**
  2535. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  2536. * MSDU size for VI
  2537. * @psoc: pointer to psoc object
  2538. * @value: Value that needs to be set from the caller
  2539. *
  2540. * Inline UCFG API to be used by HDD/OSIF callers
  2541. *
  2542. * Return: QDF Status
  2543. */
  2544. static inline
  2545. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  2546. uint16_t *value)
  2547. {
  2548. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  2549. }
  2550. /**
  2551. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  2552. * rate for VI
  2553. * @psoc: pointer to psoc object
  2554. * @value: Value that needs to be set from the caller
  2555. *
  2556. * Inline UCFG API to be used by HDD/OSIF callers
  2557. *
  2558. * Return: QDF Status
  2559. */
  2560. static inline
  2561. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2562. uint32_t *value)
  2563. {
  2564. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  2565. }
  2566. /**
  2567. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  2568. * rate for VI
  2569. * @psoc: pointer to psoc object
  2570. * @value: Value that needs to be set from the caller
  2571. *
  2572. * Inline UCFG API to be used by HDD/OSIF callers
  2573. *
  2574. * Return: QDF Status
  2575. */
  2576. static inline
  2577. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  2578. uint32_t *value)
  2579. {
  2580. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  2581. }
  2582. /**
  2583. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  2584. * allowance for VI
  2585. * @psoc: pointer to psoc object
  2586. * @value: Value that needs to be set from the caller
  2587. *
  2588. * Inline UCFG API to be used by HDD/OSIF callers
  2589. *
  2590. * Return: QDF Status
  2591. */
  2592. static inline QDF_STATUS
  2593. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2594. {
  2595. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  2596. }
  2597. /**
  2598. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  2599. * interval for video
  2600. * @psoc: pointer to psoc object
  2601. * @value: pointer to the value which will be filled for the caller
  2602. *
  2603. * Inline UCFG API to be used by HDD/OSIF callers
  2604. *
  2605. * Return: QDF Status
  2606. */
  2607. static inline QDF_STATUS
  2608. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  2609. uint32_t *value)
  2610. {
  2611. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  2612. }
  2613. /**
  2614. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  2615. * interval for video
  2616. * @psoc: pointer to psoc object
  2617. * @value: Value that needs to be set from the caller
  2618. *
  2619. * Inline UCFG API to be used by HDD/OSIF callers
  2620. *
  2621. * Return: QDF Status
  2622. */
  2623. static inline QDF_STATUS
  2624. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  2625. uint32_t *value)
  2626. {
  2627. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  2628. }
  2629. /**
  2630. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  2631. * for BE
  2632. * @psoc: pointer to psoc object
  2633. * @value: Value that needs to be set from the caller
  2634. *
  2635. * Inline UCFG API to be used by HDD/OSIF callers
  2636. *
  2637. * Return: QDF Status
  2638. */
  2639. static inline QDF_STATUS
  2640. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2641. {
  2642. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  2643. }
  2644. /**
  2645. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2646. * MSDU size for BE
  2647. * @psoc: pointer to psoc object
  2648. * @value: Value that needs to be set from the caller
  2649. *
  2650. * Inline UCFG API to be used by HDD/OSIF callers
  2651. *
  2652. * Return: QDF Status
  2653. */
  2654. static inline
  2655. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  2656. uint16_t *value)
  2657. {
  2658. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  2659. }
  2660. /**
  2661. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  2662. * rate for BE
  2663. * @psoc: pointer to psoc object
  2664. * @value: Value that needs to be set from the caller
  2665. *
  2666. * Inline UCFG API to be used by HDD/OSIF callers
  2667. *
  2668. * Return: QDF Status
  2669. */
  2670. static inline
  2671. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2672. uint32_t *value)
  2673. {
  2674. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  2675. }
  2676. /**
  2677. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  2678. * rate for BE
  2679. * @psoc: pointer to psoc object
  2680. * @value: Value that needs to be set from the caller
  2681. *
  2682. * Inline UCFG API to be used by HDD/OSIF callers
  2683. *
  2684. * Return: QDF Status
  2685. */
  2686. static inline
  2687. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  2688. uint32_t *value)
  2689. {
  2690. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  2691. }
  2692. /**
  2693. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  2694. * allowance for BE
  2695. * @psoc: pointer to psoc object
  2696. * @value: Value that needs to be set from the caller
  2697. *
  2698. * Inline UCFG API to be used by HDD/OSIF callers
  2699. *
  2700. * Return: QDF Status
  2701. */
  2702. static inline QDF_STATUS
  2703. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2704. {
  2705. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  2706. }
  2707. /**
  2708. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  2709. * interval for BE
  2710. * @psoc: pointer to psoc object
  2711. * @value: pointer to the value which will be filled for the caller
  2712. *
  2713. * Inline UCFG API to be used by HDD/OSIF callers
  2714. *
  2715. * Return: QDF Status
  2716. */
  2717. static inline QDF_STATUS
  2718. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  2719. uint32_t *value)
  2720. {
  2721. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  2722. }
  2723. /**
  2724. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  2725. * interval for BE
  2726. * @psoc: pointer to psoc object
  2727. * @value: Value that needs to be set from the caller
  2728. *
  2729. * Inline UCFG API to be used by HDD/OSIF callers
  2730. *
  2731. * Return: QDF Status
  2732. */
  2733. static inline QDF_STATUS
  2734. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  2735. uint32_t *value)
  2736. {
  2737. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  2738. }
  2739. /**
  2740. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  2741. * for BK
  2742. * @psoc: pointer to psoc object
  2743. * @value: Value that needs to be set from the caller
  2744. *
  2745. * Inline UCFG API to be used by HDD/OSIF callers
  2746. *
  2747. * Return: QDF Status
  2748. */
  2749. static inline QDF_STATUS
  2750. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2751. {
  2752. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  2753. }
  2754. /**
  2755. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  2756. * MSDU size for BE
  2757. * @psoc: pointer to psoc object
  2758. * @value: Value that needs to be set from the caller
  2759. *
  2760. * Inline UCFG API to be used by HDD/OSIF callers
  2761. *
  2762. * Return: QDF Status
  2763. */
  2764. static inline
  2765. QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  2766. uint16_t *value)
  2767. {
  2768. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  2769. }
  2770. /**
  2771. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  2772. * rate for BK
  2773. * @psoc: pointer to psoc object
  2774. * @value: Value that needs to be set from the caller
  2775. *
  2776. * Inline UCFG API to be used by HDD/OSIF callers
  2777. *
  2778. * Return: QDF Status
  2779. */
  2780. static inline
  2781. QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2782. uint32_t *value)
  2783. {
  2784. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  2785. }
  2786. /**
  2787. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  2788. * rate for BE
  2789. * @psoc: pointer to psoc object
  2790. * @value: Value that needs to be set from the caller
  2791. *
  2792. * Inline UCFG API to be used by HDD/OSIF callers
  2793. *
  2794. * Return: QDF Status
  2795. */
  2796. static inline
  2797. QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  2798. uint32_t *value)
  2799. {
  2800. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  2801. }
  2802. /**
  2803. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  2804. * allowance for BE
  2805. * @psoc: pointer to psoc object
  2806. * @value: Value that needs to be set from the caller
  2807. *
  2808. * Inline UCFG API to be used by HDD/OSIF callers
  2809. *
  2810. * Return: QDF Status
  2811. */
  2812. static inline QDF_STATUS
  2813. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  2814. {
  2815. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  2816. }
  2817. /**
  2818. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  2819. * interval for BK
  2820. * @psoc: pointer to psoc object
  2821. * @value: pointer to the value which will be filled for the caller
  2822. *
  2823. * Inline UCFG API to be used by HDD/OSIF callers
  2824. *
  2825. * Return: QDF Status
  2826. */
  2827. static inline QDF_STATUS
  2828. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  2829. uint32_t *value)
  2830. {
  2831. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  2832. }
  2833. /**
  2834. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  2835. * interval for BK
  2836. * @psoc: pointer to psoc object
  2837. * @value: Value that needs to be set from the caller
  2838. *
  2839. * Inline UCFG API to be used by HDD/OSIF callers
  2840. *
  2841. * Return: QDF Status
  2842. */
  2843. static inline QDF_STATUS
  2844. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  2845. uint32_t *value)
  2846. {
  2847. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  2848. }
  2849. /**
  2850. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  2851. * @psoc: pointer to psoc object
  2852. * @value: Value that needs to be set from the caller
  2853. *
  2854. * Inline UCFG API to be used by HDD/OSIF callers
  2855. *
  2856. * Return: QDF Status
  2857. */
  2858. static inline QDF_STATUS
  2859. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2860. {
  2861. return wlan_mlme_get_wmm_mode(psoc, value);
  2862. }
  2863. #ifdef WLAN_FEATURE_11AX
  2864. /**
  2865. * ucfg_mlme_update_tgt_he_cap() - Update tgt he cap in mlme component
  2866. *
  2867. * @psoc: pointer to psoc object
  2868. * @cfg: pointer to config params from target
  2869. *
  2870. * Inline UCFG API to be used by HDD/OSIF callers to update
  2871. * he caps in mlme.
  2872. *
  2873. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2874. */
  2875. static inline QDF_STATUS
  2876. ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
  2877. struct wma_tgt_cfg *cfg)
  2878. {
  2879. return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
  2880. }
  2881. /**
  2882. * ucfg_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  2883. * @psoc: pointer to psoc object
  2884. * @value: Value that needs to be set from the caller
  2885. *
  2886. * Return: QDF Status
  2887. */
  2888. static inline
  2889. QDF_STATUS ucfg_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2890. uint32_t *value)
  2891. {
  2892. return wlan_mlme_cfg_get_he_ul_mumimo(psoc, value);
  2893. }
  2894. /**
  2895. * ucfg_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  2896. * @psoc: pointer to psoc object
  2897. * @value: Value that needs to be set from the caller
  2898. *
  2899. * Return: QDF Status
  2900. */
  2901. static inline
  2902. QDF_STATUS ucfg_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  2903. uint32_t value)
  2904. {
  2905. return wlan_mlme_cfg_set_he_ul_mumimo(psoc, value);
  2906. }
  2907. /**
  2908. * ucfg_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  2909. * @psoc: pointer to psoc object
  2910. * @value: Value that needs to be set from the caller
  2911. *
  2912. * Return: QDF Status
  2913. */
  2914. static inline
  2915. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  2916. uint8_t *value)
  2917. {
  2918. return wlan_mlme_cfg_get_enable_ul_mimo(psoc, value);
  2919. }
  2920. /**
  2921. * ucfg_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  2922. * @psoc: pointer to psoc object
  2923. * @value: Value that needs to be set from the caller
  2924. *
  2925. * Return: QDF Status
  2926. */
  2927. static inline
  2928. QDF_STATUS ucfg_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  2929. uint8_t *value)
  2930. {
  2931. return wlan_mlme_cfg_get_enable_ul_ofdm(psoc, value);
  2932. }
  2933. #endif
  2934. /**
  2935. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2936. * @psoc: pointer to psoc object
  2937. * @value: Value that needs to be set from the caller
  2938. *
  2939. * Inline UCFG API to be used by HDD/OSIF callers
  2940. *
  2941. * Return: QDF Status
  2942. */
  2943. static inline QDF_STATUS
  2944. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2945. {
  2946. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2947. }
  2948. /**
  2949. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2950. * @psoc: pointer to psoc object
  2951. * @value: Value that needs to be set from the caller
  2952. *
  2953. * Inline UCFG API to be used by HDD/OSIF callers
  2954. *
  2955. * Return: QDF Status
  2956. */
  2957. static inline QDF_STATUS
  2958. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2959. {
  2960. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2961. }
  2962. /**
  2963. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2964. * @psoc: pointer to psoc object
  2965. * @value: Value that needs to be set from the caller
  2966. *
  2967. * Inline UCFG API to be used by HDD/OSIF callers
  2968. *
  2969. * Return: QDF Status
  2970. */
  2971. static inline
  2972. QDF_STATUS ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2973. bool *value)
  2974. {
  2975. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2976. }
  2977. #ifdef FEATURE_WLAN_ESE
  2978. /**
  2979. * ucfg_mlme_get_inactivity_interval() - Infra Inactivity Interval
  2980. * @psoc: pointer to psoc object
  2981. * @value: Value that needs to be get from the caller
  2982. *
  2983. * Inline UCFG API to be used by HDD/OSIF callers
  2984. *
  2985. * Return: None
  2986. */
  2987. static inline void
  2988. ucfg_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  2989. uint32_t *value)
  2990. {
  2991. wlan_mlme_get_inactivity_interval(psoc, value);
  2992. }
  2993. /**
  2994. * ucfg_mlme_is_ese_enabled() - ese feature enable or not
  2995. * @psoc: pointer to psoc object
  2996. * @val: Pointer to the value which will be filled for the caller
  2997. *
  2998. * Return: QDF Status
  2999. */
  3000. QDF_STATUS
  3001. ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3002. #endif /* FEATURE_WLAN_ESE */
  3003. /**
  3004. * ucfg_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  3005. * @psoc: pointer to psoc object
  3006. * @value: Value that needs to be get from the caller
  3007. *
  3008. * Inline UCFG API to be used by HDD/OSIF callers
  3009. *
  3010. * Return: None
  3011. */
  3012. static inline
  3013. void ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  3014. bool *value)
  3015. {
  3016. wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
  3017. }
  3018. /**
  3019. * ucfg_mlme_get_ts_info_ack_policy() - Get TS ack policy
  3020. * @psoc: pointer to psoc object
  3021. * @value: Value that needs to be get from the caller
  3022. *
  3023. * Inline UCFG API to be used by HDD/OSIF callers
  3024. *
  3025. * Return: None
  3026. */
  3027. static inline void
  3028. ucfg_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  3029. enum mlme_ts_info_ack_policy *value)
  3030. {
  3031. wlan_mlme_get_ts_info_ack_policy(psoc, value);
  3032. }
  3033. /**
  3034. * ucfg_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  3035. * @psoc: pointer to psoc object
  3036. * @value: Value that needs to be get from the caller
  3037. *
  3038. *
  3039. * Inline UCFG API to be used by HDD/OSIF callers
  3040. *
  3041. * Return: QDF Status
  3042. */
  3043. static inline QDF_STATUS
  3044. ucfg_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value)
  3045. {
  3046. return wlan_mlme_get_ts_acm_value_for_ac(psoc, value);
  3047. }
  3048. /*
  3049. * ucfg_mlme_is_sap_uapsd_enabled() - SAP UAPSD enabled status.
  3050. * @psoc: pointer to psoc object
  3051. * @value: sap uapsd enabled flag value requested from the caller
  3052. *
  3053. * Inline UCFG API to be used by HDD/OSIF callers
  3054. *
  3055. * Return: QDF Status
  3056. */
  3057. static inline QDF_STATUS
  3058. ucfg_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3059. {
  3060. return wlan_mlme_is_sap_uapsd_enabled(psoc, value);
  3061. }
  3062. /*
  3063. * ucfg_mlme_set_sap_uapsd_flag() - SAP UAPSD enabled status.
  3064. * @psoc: pointer to psoc object
  3065. * @value: Value that needs to be set from the caller
  3066. *
  3067. * Inline UCFG API to be used by HDD/OSIF callers
  3068. *
  3069. * Return: QDF Status
  3070. */
  3071. static inline QDF_STATUS
  3072. ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
  3073. {
  3074. return wlan_mlme_set_sap_uapsd_flag(psoc, value);
  3075. }
  3076. /**
  3077. * ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map
  3078. * @psoc: pointer to psoc object
  3079. * @value: Value that needs to be set from the caller
  3080. *
  3081. * UCFG API to be used by HDD/OSIF callers
  3082. *
  3083. * Return: QDF Status
  3084. */
  3085. QDF_STATUS
  3086. ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
  3087. bool *value);
  3088. /**
  3089. * ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid
  3090. * @psoc: pointer to psoc object
  3091. * @value: Value that needs to be set from the caller
  3092. *
  3093. * UCFG API to be used by HDD/OSIF callers
  3094. *
  3095. * Return: QDF Status
  3096. */
  3097. QDF_STATUS
  3098. ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
  3099. bool *value);
  3100. /**
  3101. * ucfg_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  3102. *
  3103. * @psoc: pointer to psoc object
  3104. * @value: value which needs to filled by API
  3105. *
  3106. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  3107. *
  3108. * Return: QDF_STATUS
  3109. */
  3110. static inline QDF_STATUS
  3111. ucfg_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  3112. uint32_t *value)
  3113. {
  3114. return wlan_mlme_get_sta_miracast_mcc_rest_time(psoc, value);
  3115. }
  3116. /**
  3117. * ucfg_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  3118. *
  3119. * @psoc: pointer to psoc object
  3120. * @value: value which needs to filled by API
  3121. *
  3122. * This API fetches the user setting to determine if SAP MCC with other persona
  3123. * to be avoided.
  3124. *
  3125. * Return: QDF_STATUS
  3126. */
  3127. static inline QDF_STATUS
  3128. ucfg_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  3129. uint8_t *value)
  3130. {
  3131. return wlan_mlme_get_sap_mcc_chnl_avoid(psoc, value);
  3132. }
  3133. /**
  3134. * ucfg_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  3135. *
  3136. * @psoc: pointer to psoc object
  3137. * @value: value which needs to filled by API
  3138. *
  3139. * To get INI value which helps to determe whether to enable/disable use of
  3140. * broadcast probe response to increase the detectability of SAP in MCC mode.
  3141. *
  3142. *
  3143. * Return: QDF_STATUS
  3144. */
  3145. static inline QDF_STATUS
  3146. ucfg_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  3147. uint8_t *value)
  3148. {
  3149. return wlan_mlme_get_mcc_bcast_prob_resp(psoc, value);
  3150. }
  3151. /**
  3152. * ucfg_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  3153. *
  3154. * @psoc: pointer to psoc object
  3155. * @value: value which needs to filled by API
  3156. *
  3157. * To get INI value which helps to determine whether to enable/disable
  3158. * use of long duration RTS-CTS protection when SAP goes off
  3159. * channel in MCC mode.
  3160. *
  3161. * Return: QDF_STATUS
  3162. */
  3163. static inline QDF_STATUS
  3164. ucfg_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  3165. uint8_t *value)
  3166. {
  3167. return wlan_mlme_get_mcc_rts_cts_prot(psoc, value);
  3168. }
  3169. /**
  3170. * ucfg_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  3171. *
  3172. * @psoc: pointer to psoc object
  3173. * @value: value which needs to filled by API
  3174. *
  3175. * To get INI value which helps to determine whether to enable MCC feature
  3176. *
  3177. * Return: QDF_STATUS
  3178. */
  3179. static inline QDF_STATUS
  3180. ucfg_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  3181. uint8_t *value)
  3182. {
  3183. return wlan_mlme_get_mcc_feature(psoc, value);
  3184. }
  3185. /**
  3186. * ucfg_wlan_mlme_get_rrm_enabled() - Get the rrm enabled
  3187. * @psoc: pointer to psoc object
  3188. * @value: Value that needs to be get from the caller
  3189. *
  3190. * Return: QDF Status
  3191. */
  3192. static inline
  3193. QDF_STATUS ucfg_wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  3194. bool *value)
  3195. {
  3196. return wlan_mlme_get_rrm_enabled(psoc, value);
  3197. }
  3198. /**
  3199. * ucfg_mlme_get_latency_enable() - Get the latency_enable
  3200. * @psoc: pointer to psoc object
  3201. * @value: Value that needs to be get from the caller
  3202. *
  3203. * Return: QDF Status
  3204. */
  3205. QDF_STATUS
  3206. ucfg_mlme_get_latency_enable(struct wlan_objmgr_psoc *psoc, bool *value);
  3207. /**
  3208. * ucfg_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  3209. * bitmap
  3210. * @psoc: pointer to psoc object
  3211. * @dtim_selection_div: value that is requested by the caller
  3212. *
  3213. * Inline UCFG API to be used by HDD/OSIF callers
  3214. *
  3215. * Return: QDF_STATUS_SUCCESS - in case of success
  3216. */
  3217. static inline QDF_STATUS
  3218. ucfg_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  3219. uint32_t *dtim_selection_div)
  3220. {
  3221. return wlan_mlme_get_dtim_selection_diversity(psoc, dtim_selection_div);
  3222. }
  3223. /**
  3224. * ucfg_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  3225. * minimum listen interval value
  3226. * @psoc: pointer to psoc object
  3227. * @value: value that is requested by the caller
  3228. *
  3229. * Inline UCFG API to be used by HDD/OSIF callers
  3230. *
  3231. * Return: QDF_STATUS_SUCCESS - in case of success
  3232. */
  3233. static inline QDF_STATUS
  3234. ucfg_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  3235. uint32_t *value)
  3236. {
  3237. return wlan_mlme_get_bmps_min_listen_interval(psoc, value);
  3238. }
  3239. /**
  3240. * ucfg_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  3241. * maximum listen interval value
  3242. * @psoc: pointer to psoc object
  3243. * @value: value that is requested by the caller
  3244. *
  3245. * Inline UCFG API to be used by HDD/OSIF callers
  3246. *
  3247. * Return: QDF_STATUS_SUCCESS - in case of success
  3248. */
  3249. static inline QDF_STATUS
  3250. ucfg_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  3251. uint32_t *value)
  3252. {
  3253. return wlan_mlme_get_bmps_max_listen_interval(psoc, value);
  3254. }
  3255. /**
  3256. * ucfg_mlme_get_auto_bmps_timer_value() - get bmps timer value
  3257. * minimum listen interval value
  3258. * @psoc: pointer to psoc object
  3259. * @value: value that is requested by the caller
  3260. *
  3261. * Inline UCFG API to be used by HDD/OSIF callers
  3262. *
  3263. * Return: QDF_STATUS_SUCCESS - in case of success
  3264. */
  3265. static inline QDF_STATUS
  3266. ucfg_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  3267. uint32_t *value)
  3268. {
  3269. return wlan_mlme_get_auto_bmps_timer_value(psoc, value);
  3270. }
  3271. /**
  3272. * ucfg_mlme_is_bmps_enabled() - check if beacon mode powersave is
  3273. * enabled/disabled
  3274. * @psoc: pointer to psoc object
  3275. * @value: value that is requested by the caller
  3276. *
  3277. * Inline UCFG API to be used by HDD/OSIF callers
  3278. *
  3279. * Return: QDF_STATUS_SUCCESS - in case of success
  3280. */
  3281. static inline QDF_STATUS
  3282. ucfg_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3283. {
  3284. return wlan_mlme_is_bmps_enabled(psoc, value);
  3285. }
  3286. /**
  3287. * ucfg_mlme_is_imps_enabled() - check if idle mode powersave is
  3288. * enabled/disabled
  3289. * @psoc: pointer to psoc object
  3290. * @value: value that is requested by the caller
  3291. *
  3292. * Inline UCFG API to be used by HDD/OSIF callers
  3293. *
  3294. * Return: QDF_STATUS_SUCCESS - in case of success
  3295. */
  3296. static inline QDF_STATUS
  3297. ucfg_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  3298. {
  3299. return wlan_mlme_is_imps_enabled(psoc, value);
  3300. }
  3301. /**
  3302. * ucfg_mlme_override_bmps_imps() - disable imps/bmps as part of
  3303. * override to disable all ps features
  3304. * @psoc: pointer to psoc object
  3305. * Inline UCFG API to be used by HDD/OSIF callers
  3306. *
  3307. * Return: QDF_STATUS_SUCCESS - in case of success
  3308. */
  3309. static inline QDF_STATUS
  3310. ucfg_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc)
  3311. {
  3312. return wlan_mlme_override_bmps_imps(psoc);
  3313. }
  3314. #ifdef MWS_COEX
  3315. /**
  3316. * ucfg_mlme_get_mws_coex_4g_quick_tdm() - Get mws coex 4g quick tdm
  3317. * @psoc: pointer to psoc object
  3318. * @val: Pointer to the value which will be filled for the caller
  3319. *
  3320. * Return: QDF Status
  3321. */
  3322. QDF_STATUS
  3323. ucfg_mlme_get_mws_coex_4g_quick_tdm(struct wlan_objmgr_psoc *psoc,
  3324. uint32_t *val);
  3325. /**
  3326. * ucfg_mlme_get_mws_coex_5g_nr_pwr_limit() - Get mws coex 5g nr pwr limit
  3327. * @psoc: pointer to psoc object
  3328. * @val: Pointer to the value which will be filled for the caller
  3329. *
  3330. * Return: QDF Status
  3331. */
  3332. QDF_STATUS
  3333. ucfg_mlme_get_mws_coex_5g_nr_pwr_limit(struct wlan_objmgr_psoc *psoc,
  3334. uint32_t *val);
  3335. #endif
  3336. /**
  3337. * ucfg_mlme_get_etsi13_srd_chan_in_master_mode - get etsi13 srd chan
  3338. * in master mode
  3339. * @psoc: pointer to psoc object
  3340. * @value: pointer to the value which will be filled for the caller
  3341. *
  3342. * Return: QDF Status
  3343. */
  3344. QDF_STATUS
  3345. ucfg_mlme_get_etsi13_srd_chan_in_master_mode(struct wlan_objmgr_psoc *psoc,
  3346. bool *value);
  3347. /**
  3348. * ucfg_mlme_get_11d_in_world_mode - get whether 11d is enabled in world mode
  3349. * in master mode
  3350. * @psoc: pointer to psoc object
  3351. * @value: pointer to the value which will be filled for the caller
  3352. *
  3353. * Return: QDF Status
  3354. */
  3355. QDF_STATUS
  3356. ucfg_mlme_get_11d_in_world_mode(struct wlan_objmgr_psoc *psoc,
  3357. bool *value);
  3358. /**
  3359. * ucfg_mlme_restart_beaconing_on_ch_avoid() - get restart beaconing on ch avoid
  3360. * @psoc: pointer to psoc object
  3361. * @value: pointer to the value which will be filled for the caller
  3362. *
  3363. * Return: QDF Status
  3364. */
  3365. QDF_STATUS
  3366. ucfg_mlme_get_restart_beaconing_on_ch_avoid(struct wlan_objmgr_psoc *psoc,
  3367. uint32_t *value);
  3368. /**
  3369. * ucfg_mlme_get_indoor_channel_support() - get indoor channel support
  3370. * @psoc: pointer to psoc object
  3371. * @value: pointer to the value which will be filled for the caller
  3372. *
  3373. * Return: QDF Status
  3374. */
  3375. QDF_STATUS
  3376. ucfg_mlme_get_indoor_channel_support(struct wlan_objmgr_psoc *psoc,
  3377. bool *value);
  3378. /**
  3379. * ucfg_mlme_get_scan_11d_interval() - get scan 11d interval
  3380. * @psoc: pointer to psoc object
  3381. * @value: Pointer to the value which will be filled for the caller
  3382. *
  3383. * Return: QDF Status
  3384. */
  3385. QDF_STATUS
  3386. ucfg_mlme_get_scan_11d_interval(struct wlan_objmgr_psoc *psoc,
  3387. uint32_t *value);
  3388. /**
  3389. * ucfg_mlme_get_valid_channel_list() - get valid channel list
  3390. * @psoc: pointer to psoc object
  3391. * @channel_list: pointer to return channel list
  3392. * @channel_list_num: pointer to return channel list number
  3393. *
  3394. * Return: QDF Status
  3395. */
  3396. QDF_STATUS
  3397. ucfg_mlme_get_valid_channel_list(struct wlan_objmgr_psoc *psoc,
  3398. uint8_t *channel_list,
  3399. uint32_t *channel_list_num);
  3400. #ifdef FEATURE_LFR_SUBNET_DETECTION
  3401. /**
  3402. * ucfg_mlme_is_subnet_detection_enabled() - check if sub net detection is
  3403. * enabled/disabled
  3404. * @psoc: pointer to psoc object
  3405. * @value: value that is requested by the caller
  3406. *
  3407. * Inline UCFG API to be used by HDD/OSIF callers
  3408. *
  3409. * Return: QDF_STATUS_SUCCESS - in case of success
  3410. */
  3411. QDF_STATUS
  3412. ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3413. #else
  3414. static QDF_STATUS
  3415. ucfg_mlme_is_subnet_detection_enabled(struct wlan_objmgr_psoc *psoc, bool *val)
  3416. {
  3417. *val = false;
  3418. return QDF_STATUS_SUCCESS;
  3419. }
  3420. #endif /* FEATURE_LFR_SUBNET_DETECTION */
  3421. /**
  3422. * ucfg_mlme_set_current_tx_power_level() - set current tx power level
  3423. * @psoc: pointer to psoc object
  3424. * @value: data to be set
  3425. *
  3426. * Return: QDF Status
  3427. */
  3428. QDF_STATUS
  3429. ucfg_mlme_set_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
  3430. uint8_t value);
  3431. /**
  3432. * ucfg_mlme_get_current_tx_power_level() - get current tx power level
  3433. * @psoc: pointer to psoc object
  3434. * @value: pointer to the value which will be filled for the caller
  3435. *
  3436. * Return: QDF Status
  3437. */
  3438. QDF_STATUS
  3439. ucfg_mlme_get_current_tx_power_level(struct wlan_objmgr_psoc *psoc,
  3440. uint8_t *value);
  3441. /**
  3442. * ucfg_mlme_set_obss_detection_offload_enabled() - Enable obss offload
  3443. * @psoc: pointer to psoc object
  3444. * @value: enable or disable
  3445. *
  3446. * Return: QDF Status
  3447. */
  3448. QDF_STATUS
  3449. ucfg_mlme_set_obss_detection_offload_enabled(struct wlan_objmgr_psoc *psoc,
  3450. uint8_t value);
  3451. /**
  3452. * ucfg_mlme_set_obss_color_collision_offload_enabled() - Enable obss color
  3453. * collision offload
  3454. * @psoc: pointer to psoc object
  3455. * @value: enable or disable
  3456. *
  3457. * Return: QDF Status
  3458. */
  3459. QDF_STATUS
  3460. ucfg_mlme_set_obss_color_collision_offload_enabled(
  3461. struct wlan_objmgr_psoc *psoc, uint8_t value);
  3462. /**
  3463. * ucfg_mlme_get_channel_bonding_24ghz() - get channel bonding mode of 24ghz
  3464. * @psoc: pointer to psoc object
  3465. * @value: pointer to the value which will be filled for the caller
  3466. *
  3467. * Return: QDF Status
  3468. */
  3469. QDF_STATUS
  3470. ucfg_mlme_get_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
  3471. uint32_t *value);
  3472. /**
  3473. * ucfg_mlme_set_channel_bonding_24ghz() - set channel bonding mode for 24ghz
  3474. * @psoc: pointer to psoc object
  3475. * @value: channel bonding mode
  3476. *
  3477. * Return: QDF Status
  3478. */
  3479. QDF_STATUS
  3480. ucfg_mlme_set_channel_bonding_24ghz(struct wlan_objmgr_psoc *psoc,
  3481. uint32_t value);
  3482. /**
  3483. * ucfg_mlme_get_channel_bonding_5ghz() - get channel bonding mode of 5ghz
  3484. * @psoc: pointer to psoc object
  3485. * @value: pointer to the value which will be filled for the caller
  3486. *
  3487. * Return: QDF Status
  3488. */
  3489. QDF_STATUS
  3490. ucfg_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3491. uint32_t *value);
  3492. /**
  3493. * ucfg_mlme_set_channel_bonding_5ghz() - set channel bonding mode for 5ghz
  3494. * @psoc: pointer to psoc object
  3495. * @value: channel bonding mode
  3496. *
  3497. * Return: QDF Status
  3498. */
  3499. QDF_STATUS
  3500. ucfg_mlme_set_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3501. uint32_t value);
  3502. #endif /* _WLAN_MLME_UCFG_API_H_ */