wlan_mlme_ucfg_api.h 99 KB

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