wlan_mlme_ucfg_api.h 100 KB

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