wlan_mlme_api.h 110 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148
  1. /*
  2. * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: declare public APIs exposed by the mlme component
  21. */
  22. #ifndef _WLAN_MLME_API_H_
  23. #define _WLAN_MLME_API_H_
  24. #include <wlan_mlme_public_struct.h>
  25. #include <wlan_objmgr_psoc_obj.h>
  26. #include <wlan_cmn.h>
  27. #include "sme_api.h"
  28. #ifdef FEATURE_SET
  29. /**
  30. * wlan_mlme_get_feature_info() - Get mlme features
  31. * @psoc: psoc context
  32. * @mlme_feature_set: MLME feature set info structure
  33. *
  34. * Return: None
  35. */
  36. void wlan_mlme_get_feature_info(
  37. struct wlan_objmgr_psoc *psoc,
  38. struct wlan_mlme_features *mlme_feature_set);
  39. #endif
  40. /**
  41. * wlan_mlme_get_cfg_str() - Copy the uint8_t array for a particular CFG
  42. * @dst: pointer to the destination buffer.
  43. * @cfg_str: pointer to the cfg string structure
  44. * @len: length to be copied
  45. *
  46. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  47. */
  48. QDF_STATUS wlan_mlme_get_cfg_str(uint8_t *dst, struct mlme_cfg_str *cfg_str,
  49. qdf_size_t *len);
  50. /**
  51. * wlan_mlme_set_cfg_str() - Set values for a particular CFG
  52. * @src: pointer to the source buffer.
  53. * @dst_cfg_str: pointer to the cfg string structure to be modified
  54. * @len: length to be written
  55. *
  56. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  57. */
  58. QDF_STATUS wlan_mlme_set_cfg_str(uint8_t *src, struct mlme_cfg_str *dst_cfg_str,
  59. qdf_size_t len);
  60. /**
  61. * wlan_mlme_get_edca_params() - get the EDCA parameters corresponding to the
  62. * edca profile access category
  63. * @edca_params: pointer to mlme edca parameters structure
  64. * @data: data to which the parameter is to be copied
  65. * @edca_ac: edca ac type enum passed to get the cfg value
  66. *
  67. * Return QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  68. *
  69. */
  70. QDF_STATUS wlan_mlme_get_edca_params(struct wlan_mlme_edca_params *edca_params,
  71. uint8_t *data, enum e_edca_type edca_ac);
  72. /**
  73. * wlan_mlme_update_cfg_with_tgt_caps() - Update mlme cfg with tgt caps
  74. * @psoc: pointer to psoc object
  75. * @tgt_caps: Pointer to the mlme related capability structure
  76. *
  77. * Return: None
  78. */
  79. void
  80. wlan_mlme_update_cfg_with_tgt_caps(struct wlan_objmgr_psoc *psoc,
  81. struct mlme_tgt_caps *tgt_caps);
  82. /*
  83. * mlme_get_wep_key() - get the wep key to process during auth frame
  84. * @vdev: VDEV object for which the wep key is being requested
  85. * @wep_params: cfg wep parameters structure
  86. * @wep_key_id: default key number
  87. * @default_key: default key to be copied
  88. * @key_len: length of the key to copy
  89. *
  90. * Return QDF_STATUS
  91. */
  92. QDF_STATUS mlme_get_wep_key(struct wlan_objmgr_vdev *vdev,
  93. struct wlan_mlme_wep_cfg *wep_params,
  94. enum wep_key_id wep_keyid, uint8_t *default_key,
  95. qdf_size_t *key_len);
  96. /**
  97. * wlan_mlme_get_tx_power() - Get the max tx power in particular band
  98. * @psoc: pointer to psoc object
  99. * @band: 2ghz/5ghz band
  100. *
  101. * Return: value of tx power in the respective band
  102. */
  103. uint8_t wlan_mlme_get_tx_power(struct wlan_objmgr_psoc *psoc,
  104. enum band_info band);
  105. /**
  106. * wlan_mlme_get_power_usage() - Get the power usage info
  107. * @psoc: pointer to psoc object
  108. *
  109. * Return: pointer to character array of power usage
  110. */
  111. char *wlan_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc);
  112. /**
  113. * wlan_mlme_get_enable_deauth_to_disassoc_map() - Get the deauth to disassoc
  114. * map
  115. * @psoc: pointer to psoc object
  116. * @value: pointer to the value which will be filled for the caller
  117. *
  118. * Return: QDF Status
  119. */
  120. QDF_STATUS
  121. wlan_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
  122. bool *value);
  123. /**
  124. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  125. * @psoc: pointer to psoc object
  126. * @value: pointer to the value which will be filled for the caller
  127. *
  128. * Return: QDF Status
  129. */
  130. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  131. struct mlme_ht_capabilities_info
  132. *ht_cap_info);
  133. /**
  134. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  135. * @psoc: pointer to psoc object
  136. * @pbuf: pointer of the buff which will be filled for the caller
  137. * @plen: pointer of max buffer length
  138. * actual length will be returned at this address
  139. * This function gets manufacturer name
  140. *
  141. * Return: QDF_STATUS_SUCCESS - in case of success
  142. */
  143. QDF_STATUS
  144. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  145. uint8_t *pbuf, uint32_t *plen);
  146. /**
  147. * wlan_mlme_get_model_number() - get model number
  148. * @psoc: pointer to psoc object
  149. * @pbuf: pointer of the buff which will be filled for the caller
  150. * @plen: pointer of max buffer length
  151. * actual length will be returned at this address
  152. * This function gets model number
  153. *
  154. * Return: QDF_STATUS_SUCCESS - in case of success
  155. */
  156. QDF_STATUS
  157. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  158. uint8_t *pbuf, uint32_t *plen);
  159. /**
  160. * wlan_mlme_get_model_name() - get model name
  161. * @psoc: pointer to psoc object
  162. * @pbuf: pointer of the buff which will be filled for the caller
  163. * @plen: pointer of max buffer length
  164. * actual length will be returned at this address
  165. * This function gets model name
  166. *
  167. * Return: QDF_STATUS_SUCCESS - in case of success
  168. */
  169. QDF_STATUS
  170. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  171. uint8_t *pbuf, uint32_t *plen);
  172. /**
  173. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  174. * @psoc: pointer to psoc object
  175. * @pbuf: pointer of the buff which will be filled for the caller
  176. * @plen: pointer of max buffer length
  177. * actual length will be returned at this address
  178. * This function gets manufacture product name
  179. *
  180. * Return: QDF_STATUS_SUCCESS - in case of success
  181. */
  182. QDF_STATUS
  183. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  184. uint8_t *pbuf, uint32_t *plen);
  185. /**
  186. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  187. * @psoc: pointer to psoc object
  188. * @pbuf: pointer of the buff which will be filled for the caller
  189. * @plen: pointer of max buffer length
  190. * actual length will be returned at this address
  191. * This function gets manufacture product version
  192. *
  193. * Return: QDF_STATUS_SUCCESS - in case of success
  194. */
  195. QDF_STATUS
  196. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  197. uint8_t *pbuf, uint32_t *plen);
  198. /**
  199. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  200. * @psoc: pointer to psoc object
  201. * @value: Value that needs to be set from the caller
  202. *
  203. * Return: QDF Status
  204. */
  205. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  206. struct mlme_ht_capabilities_info
  207. ht_cap_info);
  208. /**
  209. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  210. * @psoc: pointer to psoc object
  211. * @value: pointer to the value where the max_amsdu num is to be filled
  212. *
  213. * Return: QDF_STATUS
  214. */
  215. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  216. uint8_t *value);
  217. /**
  218. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  219. * @psoc: pointer to psoc object
  220. * @value: value to be set for max_amsdu_num
  221. *
  222. * Return: QDF_STATUS
  223. */
  224. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  225. uint8_t value);
  226. /**
  227. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  228. * @psoc: pointer to psoc object
  229. * @value: pointer to the value where the ht mpdu density is to be filled
  230. *
  231. * Return: QDF_STATUS
  232. */
  233. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  234. uint8_t *value);
  235. /**
  236. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  237. * @psoc: pointer to psoc object
  238. * @value: value to be set for ht mpdu density
  239. *
  240. * Return: QDF_STATUS
  241. */
  242. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  243. uint8_t value);
  244. /**
  245. * wlan_mlme_get_band_capability() - Get the Band capability config
  246. * @psoc: pointer to psoc object
  247. * @band_capability: Pointer to the variable from caller
  248. *
  249. * Return: QDF Status
  250. */
  251. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  252. uint32_t *band_capability);
  253. #ifdef MULTI_CLIENT_LL_SUPPORT
  254. /**
  255. * wlan_mlme_get_wlm_multi_client_ll_caps() - Get the wlm multi client latency
  256. * level capability flag
  257. * @psoc: pointer to psoc object
  258. *
  259. * Return: True is multi client ll cap present
  260. */
  261. bool wlan_mlme_get_wlm_multi_client_ll_caps(struct wlan_objmgr_psoc *psoc);
  262. #else
  263. static inline bool
  264. wlan_mlme_get_wlm_multi_client_ll_caps(struct wlan_objmgr_psoc *psoc)
  265. {
  266. return false;
  267. }
  268. #endif
  269. #ifdef FEATURE_WLAN_CH_AVOID_EXT
  270. /**
  271. * wlan_mlme_get_coex_unsafe_chan_nb_user_prefer() - get coex unsafe nb
  272. * support
  273. * @psoc: pointer to psoc object
  274. * @value: pointer to the value which will be filled for the caller
  275. *
  276. * Return: coex_unsafe_chan_nb_user_prefer
  277. */
  278. bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
  279. struct wlan_objmgr_psoc *psoc);
  280. #else
  281. static inline
  282. bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
  283. struct wlan_objmgr_psoc *psoc)
  284. {
  285. return false;
  286. }
  287. #endif
  288. /**
  289. * wlan_mlme_set_band_capability() - Set the Band capability config
  290. * @psoc: pointer to psoc object
  291. * @band_capability: Value to be set from the caller
  292. *
  293. * Return: QDF Status
  294. */
  295. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  296. uint32_t band_capability);
  297. #ifdef WLAN_VENDOR_HANDOFF_CONTROL
  298. /**
  299. * wlan_mlme_get_vendor_handoff_control_caps() - Get the vendor handoff control
  300. * capability flag
  301. * @psoc: pointer to psoc object
  302. *
  303. * Return: True if vendor handoff control caps present
  304. */
  305. bool wlan_mlme_get_vendor_handoff_control_caps(struct wlan_objmgr_psoc *psoc);
  306. #else
  307. static inline bool
  308. wlan_mlme_get_vendor_handoff_control_caps(struct wlan_objmgr_psoc *psoc)
  309. {
  310. return false;
  311. }
  312. #endif
  313. /**
  314. * wlan_mlme_set_dual_sta_policy() - Set the dual sta config
  315. * @psoc: pointer to psoc object
  316. * @dual_sta_config: Value to be set from the caller
  317. *
  318. * Return: QDF Status
  319. */
  320. QDF_STATUS wlan_mlme_set_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
  321. uint8_t dual_sta_config);
  322. /**
  323. * wlan_mlme_get_dual_sta_policy() - Get the dual sta policy
  324. * @psoc: pointer to psoc object
  325. * @dual_sta_config: Value to be set from the caller
  326. *
  327. * Return: QDF Status
  328. */
  329. QDF_STATUS wlan_mlme_get_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
  330. uint8_t *dual_sta_config);
  331. /**
  332. * wlan_mlme_convert_ap_policy_config() - Convert vendor attr ap policy
  333. * config to host enum
  334. * @ap_config: Value to convert
  335. *
  336. * Return: enum host_concurrent_ap_policy
  337. */
  338. enum host_concurrent_ap_policy
  339. wlan_mlme_convert_ap_policy_config(
  340. enum qca_wlan_concurrent_ap_policy_config ap_config);
  341. /**
  342. * wlan_mlme_set_ap_policy() - Set ap config policy value
  343. * @vdev: pointer to vdev object
  344. * @ap_cfg_policy: Value to be set from the caller
  345. *
  346. * Return: QDF Status
  347. */
  348. QDF_STATUS
  349. wlan_mlme_set_ap_policy(struct wlan_objmgr_vdev *vdev,
  350. enum host_concurrent_ap_policy ap_cfg_policy);
  351. /**
  352. * wlan_mlme_get_ap_policy() - Get ap config policy value
  353. * @vdev: pointer to vdev object
  354. *
  355. * Return: enum host_concurrent_ap_policy
  356. */
  357. enum host_concurrent_ap_policy
  358. wlan_mlme_get_ap_policy(struct wlan_objmgr_vdev *vdev);
  359. /**
  360. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  361. * @psoc: pointer to psoc object
  362. * @prevent_link_down: Pointer to the variable from caller
  363. *
  364. * Return: QDF Status
  365. */
  366. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  367. bool *prevent_link_down);
  368. /**
  369. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  370. * @psoc: pointer to psoc object
  371. * @select_5ghz_margin: Pointer to the variable from caller
  372. *
  373. * Return: QDF Status
  374. */
  375. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  376. uint8_t *select_5ghz_margin);
  377. /**
  378. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  379. * @psoc: pointer to psoc object
  380. * @rtt_mac_randomization: Pointer to the variable from caller
  381. *
  382. * Return: QDF Status
  383. */
  384. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  385. bool *rtt_mac_randomization);
  386. /**
  387. * wlan_mlme_get_crash_inject() - Get the crash inject config
  388. * @psoc: pointer to psoc object
  389. * @crash_inject: Pointer to the variable from caller
  390. *
  391. * Return: QDF Status
  392. */
  393. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  394. bool *crash_inject);
  395. /**
  396. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  397. * @psoc: pointer to psoc object
  398. * @lpass_support: Pointer to the variable from caller
  399. *
  400. * Return: QDF Status
  401. */
  402. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  403. bool *lpass_support);
  404. /**
  405. * wlan_mlme_get_wls_6ghz_cap() - Get the wifi location service(WLS)
  406. * 6ghz capability
  407. * @psoc: pointer to psoc object
  408. * @wls_6ghz_capable: Pointer to the variable from caller
  409. *
  410. * Return: void
  411. */
  412. void wlan_mlme_get_wls_6ghz_cap(struct wlan_objmgr_psoc *psoc,
  413. bool *wls_6ghz_capable);
  414. /**
  415. * wlan_mlme_get_self_recovery() - Get the self recovery config
  416. * @psoc: pointer to psoc object
  417. * @self_recovery: Pointer to the variable from caller
  418. *
  419. * Return: QDF Status
  420. */
  421. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  422. bool *self_recovery);
  423. /**
  424. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  425. * @psoc: pointer to psoc object
  426. * @sub_20_chan_width: Pointer to the variable from caller
  427. *
  428. * Return: QDF Status
  429. */
  430. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  431. uint8_t *sub_20_chan_width);
  432. /**
  433. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  434. * @psoc: pointer to psoc object
  435. * @fw_timeout_crash: Pointer to the variable from caller
  436. *
  437. * Return: QDF Status
  438. */
  439. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  440. bool *fw_timeout_crash);
  441. /**
  442. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  443. * @psoc: pointer to psoc object
  444. * @ito_repeat_count: Pointer to the variable from caller
  445. *
  446. * Return: QDF Status
  447. */
  448. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  449. uint8_t *ito_repeat_count);
  450. /**
  451. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  452. * @psoc: pointer to psoc object
  453. * @value: Value that needs to be set from the caller
  454. *
  455. * Return: QDF Status
  456. */
  457. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  458. bool *value);
  459. /**
  460. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  461. * @psoc: pointer to psoc object
  462. * @value: Value that needs to be set from the caller
  463. *
  464. * Return: QDF Status
  465. */
  466. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  467. uint32_t *value);
  468. /**
  469. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  470. * @psoc: pointer to psoc object
  471. * @value: Value that needs to be set from the caller
  472. *
  473. * Return: QDF Status
  474. */
  475. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  476. bool *value);
  477. /**
  478. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  479. * acs support for dfs ltecoex
  480. * @psoc: pointer to psoc object
  481. * @value: Value that needs to be set from the caller
  482. *
  483. * Return: QDF Status
  484. */
  485. QDF_STATUS
  486. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  487. bool *value);
  488. /**
  489. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  490. * @psoc: pointer to psoc object
  491. * @value: Value that needs to be set from the caller
  492. *
  493. * Return: QDF Status
  494. */
  495. QDF_STATUS
  496. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  497. bool *value);
  498. /**
  499. *
  500. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  501. * override flag is set.
  502. * @psoc: pointer to psoc object
  503. * @sme_config - Sme config struct
  504. *
  505. * Return: QDF Status
  506. */
  507. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  508. bool *value);
  509. /**
  510. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  511. * @psoc: pointer to psoc object
  512. * @value: Value that needs to be set from the caller
  513. *
  514. * Return: QDF Status
  515. */
  516. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  517. bool *value);
  518. /**
  519. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  520. * @psoc: pointer to psoc object
  521. * @value: Value that needs to be set from the caller
  522. *
  523. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  524. */
  525. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  526. bool *value);
  527. /**
  528. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  529. * @psoc: pointer to psoc object
  530. * @value: Value that caller needs to get
  531. *
  532. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  533. */
  534. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  535. uint8_t *value);
  536. /**
  537. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  538. * @psoc: pointer to psoc object
  539. * @value: Value that needs to be set from the caller
  540. *
  541. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  542. */
  543. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  544. uint16_t *value);
  545. /**
  546. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  547. * @psoc: pointer to psoc object
  548. * @value: Value that caller needs to get
  549. *
  550. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  551. */
  552. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  553. uint16_t *value);
  554. /**
  555. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  556. * flag
  557. * @psoc: pointer to psoc object
  558. * @value: Value that needs to be set from the caller
  559. *
  560. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  561. */
  562. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  563. bool *value);
  564. /**
  565. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  566. * @psoc: pointer to psoc object
  567. * @session_id: vdev_id
  568. *
  569. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  570. */
  571. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  572. uint8_t session_id);
  573. /**
  574. * wlan_mlme_is_chain_mask_supported() - check if configure chainmask can
  575. * be supported
  576. * @psoc: pointer to psoc object
  577. *
  578. * Return: true if supported else false
  579. */
  580. bool wlan_mlme_is_chain_mask_supported(struct wlan_objmgr_psoc *psoc);
  581. /**
  582. * wlan_mlme_get_listen_interval() - Get listen interval
  583. * @psoc: pointer to psoc object
  584. * @value: Pointer to value that needs to be filled by MLME
  585. *
  586. * Return: QDF Status
  587. */
  588. QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
  589. int *value);
  590. /**
  591. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  592. * @psoc: pointer to psoc object
  593. * @value: Value that needs to be set from the caller
  594. *
  595. * Return: QDF Status
  596. */
  597. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  598. int value);
  599. /**
  600. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  601. * @psoc: pointer to psoc object
  602. * @value: Value that needs to be set from the caller
  603. *
  604. * Return: QDF Status
  605. */
  606. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  607. int value);
  608. /**
  609. * wlan_mlme_get_assoc_sta_limit() - Get the assoc sta limit
  610. * @psoc: pointer to psoc object
  611. * @value: Pointer to value that needs to be filled by MLME
  612. *
  613. * Return: QDF Status
  614. */
  615. QDF_STATUS wlan_mlme_get_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  616. int *value);
  617. /**
  618. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  619. * @psoc: pointer to psoc object
  620. * @value: Value that needs to be set from the caller
  621. *
  622. * Return: QDF Status
  623. */
  624. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  625. bool *value);
  626. /**
  627. * wlan_mlme_set_sap_get_peer_info() - set the sap get peer info
  628. * @psoc: pointer to psoc object
  629. * @value: value to overwrite the sap get peer info
  630. *
  631. * Return: QDF Status
  632. */
  633. QDF_STATUS wlan_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  634. bool value);
  635. /**
  636. * wlan_mlme_get_sap_bcast_deauth_enabled() - get the enable/disable value
  637. * for broadcast deauth in sap
  638. * @psoc: pointer to psoc object
  639. * @value: Value that needs to get from the caller
  640. *
  641. * Return: QDF Status
  642. */
  643. QDF_STATUS
  644. wlan_mlme_get_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
  645. bool *value);
  646. /**
  647. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  648. * channels
  649. * @psoc: pointer to psoc object
  650. * @value: Value that needs to be set from the caller
  651. *
  652. * Return: QDF Status
  653. */
  654. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  655. bool *value);
  656. /**
  657. * wlan_mlme_is_6g_sap_fd_enabled() - get the enable/disable value
  658. * for 6g sap fils discovery
  659. * @psoc: pointer to psoc object
  660. * @value: Value that needs to get from the caller
  661. *
  662. * Return: QDF Status
  663. */
  664. QDF_STATUS
  665. wlan_mlme_is_6g_sap_fd_enabled(struct wlan_objmgr_psoc *psoc,
  666. bool *value);
  667. /**
  668. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  669. * @psoc: pointer to psoc object
  670. * @value: Value that needs to be set from the caller
  671. *
  672. * Return: QDF Status
  673. */
  674. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  675. int *value);
  676. /**
  677. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  678. * @psoc: pointer to psoc object
  679. * @value: Value that needs to be set from the caller
  680. *
  681. * Return: QDF Status
  682. */
  683. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  684. int value);
  685. /**
  686. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  687. * @psoc: pointer to psoc object
  688. * @value: Value that needs to be set from the caller
  689. *
  690. * Return: QDF Status
  691. */
  692. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  693. int *value);
  694. /**
  695. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  696. * reorder buffs.
  697. * @psoc: pointer to psoc object
  698. * @value: Value that needs to be set from the caller
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  703. *psoc, int *value);
  704. /**
  705. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  706. * switch beacon count
  707. * @psoc: pointer to psoc object
  708. * @value: Value that needs to be set from the caller
  709. *
  710. * Return: QDF Status
  711. */
  712. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  713. int *value);
  714. /**
  715. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  716. * switch mode
  717. * @psoc: pointer to psoc object
  718. * @value: Value that needs to be set from the caller
  719. *
  720. * Return: QDF Status
  721. */
  722. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  723. bool *value);
  724. /**
  725. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  726. * restart
  727. * @psoc: pointer to psoc object
  728. * @value: Value that needs to be set from the caller
  729. *
  730. * Return: QDF Status
  731. */
  732. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  733. bool *value);
  734. /**
  735. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  736. * restart
  737. * @psoc: pointer to psoc object
  738. * @value: Value that needs to be set from the caller
  739. *
  740. * Return: QDF Status
  741. */
  742. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  743. uint8_t *value);
  744. /**
  745. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  746. * restart
  747. * @psoc: pointer to psoc object
  748. * @value: Value that needs to be set from the caller
  749. *
  750. * Return: QDF Status
  751. */
  752. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  753. uint8_t *value);
  754. /**
  755. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  756. * restart
  757. * @psoc: pointer to psoc object
  758. * @value: Value that needs to be set from the caller
  759. *
  760. * Return: QDF Status
  761. */
  762. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  763. bool *value);
  764. /**
  765. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  766. * beacon interval
  767. * @psoc: pointer to psoc object
  768. * @value: Value that needs to be set from the caller
  769. *
  770. * Return: QDF Status
  771. */
  772. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  773. *psoc, int *value);
  774. /**
  775. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  776. * enabled beacon interval
  777. * @psoc: pointer to psoc object
  778. * @value: Value that needs to be set from the caller
  779. *
  780. * Return: QDF Status
  781. */
  782. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  783. *psoc, bool *value);
  784. /**
  785. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  786. * @psoc: pointer to psoc object
  787. * @value: Value that needs to be set from the caller
  788. *
  789. * Return: QDF Status
  790. */
  791. QDF_STATUS wlan_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  792. *psoc, bool *value);
  793. /**
  794. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  795. * @psoc: pointer to psoc object
  796. * @value: Value that needs to be set from the caller
  797. *
  798. * Return: QDF Status
  799. */
  800. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  801. *psoc, bool *value);
  802. /**
  803. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  804. * @psoc: pointer to psoc object
  805. * @value: pointer to the value which will be filled for the caller
  806. *
  807. * Return: QDF Status
  808. */
  809. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  810. bool *value);
  811. /**
  812. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  813. * @psoc: pointer to psoc object
  814. * @value: pointer to the value which will be filled for the caller
  815. *
  816. * Return: QDF Status
  817. */
  818. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  819. bool *value);
  820. /**
  821. * wlan_mlme_set_go_11ac_override() - set override 11ac bandwdith for P2P GO
  822. * @psoc: pointer to psoc object
  823. * @value: pointer to the value which will be filled for the caller
  824. *
  825. * Return: QDF Status
  826. */
  827. QDF_STATUS wlan_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  828. bool value);
  829. /**
  830. * wlan_mlme_set_sap_11ac_override() - set override 11ac bandwdith for SAP
  831. * @psoc: pointer to psoc object
  832. * @value: pointer to the value which will be filled for the caller
  833. *
  834. * Return: QDF Status
  835. */
  836. QDF_STATUS wlan_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  837. bool value);
  838. /**
  839. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  840. * info for STA
  841. * @psoc: pointer to psoc object
  842. * @value: pointer to the value which will be filled for the caller
  843. *
  844. * Return: QDF Status
  845. */
  846. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  847. bool *value);
  848. /**
  849. * wlan_mlme_get_bigtk_support() - Get the BIGTK support
  850. * @psoc: pointer to psoc object
  851. * @value: pointer to the value which will be filled for the caller
  852. *
  853. * Return: QDF Status
  854. */
  855. QDF_STATUS wlan_mlme_get_bigtk_support(struct wlan_objmgr_psoc *psoc,
  856. bool *value);
  857. /**
  858. * wlan_mlme_get_ocv_support() - Get the OCV support
  859. * @psoc: pointer to psoc object
  860. * @value: pointer to the value which will be filled for the caller
  861. *
  862. * Return: QDF Status
  863. */
  864. QDF_STATUS wlan_mlme_get_ocv_support(struct wlan_objmgr_psoc *psoc,
  865. bool *value);
  866. /**
  867. * wlan_mlme_get_host_scan_abort_support() - Get support for stop all host
  868. * scans service capability.
  869. * @psoc: PSOC object pointer
  870. *
  871. * Return: True if capability is supported, else False
  872. */
  873. bool wlan_mlme_get_host_scan_abort_support(struct wlan_objmgr_psoc *psoc);
  874. /**
  875. * wlan_mlme_get_dual_sta_roam_support - Get support for dual sta roaming
  876. * feature
  877. * @psoc: PSOC object pointer
  878. *
  879. * Return: True if capability is supported, else False
  880. */
  881. bool wlan_mlme_get_dual_sta_roam_support(struct wlan_objmgr_psoc *psoc);
  882. /**
  883. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  884. * info for SAP
  885. * @psoc: pointer to psoc object
  886. * @value: pointer to the value which will be filled for the caller
  887. *
  888. * Return: QDF Status
  889. */
  890. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  891. bool *value);
  892. /**
  893. * wlan_mlme_update_oce_flags() - Update the oce flags to FW
  894. * @pdev: pointer to pdev object
  895. *
  896. * Return: void
  897. */
  898. void wlan_mlme_update_oce_flags(struct wlan_objmgr_pdev *pdev);
  899. #ifdef WLAN_FEATURE_11AX
  900. /**
  901. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  902. * @psoc: pointer to psoc object
  903. * @value: Value that needs to be set from the caller
  904. *
  905. * Return: QDF Status
  906. */
  907. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  908. uint32_t *value);
  909. /**
  910. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  911. * @psoc: pointer to psoc object
  912. * @value: Value that needs to be set from the caller
  913. *
  914. * Return: QDF Status
  915. */
  916. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  917. uint32_t value);
  918. /**
  919. * mlme_cfg_get_he_caps() - Get the HE capability info
  920. * @psoc: pointer to psoc object
  921. * @he_cap: Caps that needs to be filled.
  922. *
  923. * Return: QDF Status
  924. */
  925. QDF_STATUS mlme_cfg_get_he_caps(struct wlan_objmgr_psoc *psoc,
  926. tDot11fIEhe_cap *he_cap);
  927. /**
  928. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  929. * @psoc: pointer to psoc object
  930. * @value: Value that needs to be set from the caller
  931. *
  932. * Return: QDF Status
  933. */
  934. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  935. uint8_t *value);
  936. /**
  937. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  938. * @psoc: pointer to psoc object
  939. * @value: Value that needs to be set from the caller
  940. *
  941. * Return: QDF Status
  942. */
  943. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  944. uint8_t *value);
  945. /**
  946. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  947. * @psoc: pointer to psoc object
  948. * @cfg: pointer to config params from target
  949. *
  950. * This api to be used by callers to update
  951. * he caps in mlme.
  952. *
  953. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  954. */
  955. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  956. struct wma_tgt_cfg *cfg);
  957. #endif
  958. /**
  959. * wlan_mlme_convert_vht_op_bw_to_phy_ch_width() - convert channel width in VHT
  960. * operation IE to phy_ch_width
  961. * @channel_width: channel width in VHT operation IE. If it is 0, please use HT
  962. * information IE to check whether it is 20MHz or 40MHz.
  963. *
  964. * Return: phy_ch_width
  965. */
  966. enum phy_ch_width wlan_mlme_convert_vht_op_bw_to_phy_ch_width(
  967. uint8_t channel_width);
  968. #ifdef WLAN_FEATURE_11BE
  969. /**
  970. * mlme_update_tgt_eht_caps_in_cfg() - Update tgt eht cap in mlme component
  971. * @psoc: pointer to psoc object
  972. * @cfg: pointer to config params from target
  973. *
  974. * This api to be used by callers to update EHT caps in mlme.
  975. *
  976. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  977. */
  978. QDF_STATUS mlme_update_tgt_eht_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  979. struct wma_tgt_cfg *cfg);
  980. /**
  981. * wlan_mlme_convert_eht_op_bw_to_phy_ch_width() - convert channel width in eht
  982. * operation IE to phy_ch_width
  983. * @channel_width: channel width in eht operation IE
  984. *
  985. * Return: phy_ch_width
  986. */
  987. enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
  988. uint8_t channel_width);
  989. /**
  990. * wlan_mlme_get_usr_disable_sta_eht() - Get user disable sta eht flag
  991. * @psoc: psoc object
  992. *
  993. * Return: true if user has disabled eht in connect request
  994. */
  995. bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc);
  996. /**
  997. * wlan_mlme_set_usr_disable_sta_eht() - Set user disable sta eht flag
  998. * @psoc: psoc object
  999. * @disable: eht disable flag
  1000. *
  1001. * Return: void
  1002. */
  1003. void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
  1004. bool disable);
  1005. #else
  1006. static inline
  1007. bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc)
  1008. {
  1009. return true;
  1010. }
  1011. static inline
  1012. void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
  1013. bool disable)
  1014. {
  1015. }
  1016. #endif
  1017. /**
  1018. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  1019. * @psoc: pointer to psoc object
  1020. *
  1021. * Return: is_ap_prot_enabled flag
  1022. */
  1023. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  1024. /**
  1025. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  1026. * @psoc: pointer to psoc object
  1027. * @value: pointer to the value which needs to be filled for the caller
  1028. *
  1029. * Return: QDF Status
  1030. */
  1031. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  1032. uint16_t *value);
  1033. /**
  1034. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  1035. * enabled/disabled
  1036. * @psoc: pointer to psoc object
  1037. * @value: pointer to the value which needs to be filled for the caller
  1038. *
  1039. * Return: QDF Status
  1040. */
  1041. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  1042. bool *value);
  1043. /**
  1044. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  1045. * @psoc: pointer to psoc object
  1046. * @value: pointer to the value which will be filled for the caller
  1047. *
  1048. * Return: QDF Status
  1049. */
  1050. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1051. uint32_t *value);
  1052. /**
  1053. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  1054. * @psoc: pointer to psoc object
  1055. * @value: Value that needs to be set from the caller
  1056. *
  1057. * Return: QDF Status
  1058. */
  1059. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  1060. uint32_t value);
  1061. /**
  1062. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  1063. * config
  1064. * @psoc: pointer to psoc object
  1065. * @value: pointer to the value which will be filled for the caller
  1066. *
  1067. * Return: QDF Status
  1068. */
  1069. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1070. uint32_t *value);
  1071. /**
  1072. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  1073. * config
  1074. * @psoc: pointer to psoc object
  1075. * @value: Value that needs to be set from the caller
  1076. *
  1077. * Return: QDF Status
  1078. */
  1079. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1080. uint32_t value);
  1081. /**
  1082. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  1083. * @psoc: pointer to psoc object
  1084. * @value: pointer to the value which will be filled for the caller
  1085. *
  1086. * Return: QDF Status
  1087. */
  1088. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1089. bool *value);
  1090. /**
  1091. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  1092. * @psoc: pointer to psoc object
  1093. * @value: value that needs to be set from the caller
  1094. *
  1095. * Return: QDF Status
  1096. */
  1097. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1098. bool value);
  1099. /**
  1100. * wlan_mlme_set_primary_interface() - Set the primary iface id for driver
  1101. * @psoc: pointer to psoc object
  1102. * @value: value that needs to be set from the caller
  1103. *
  1104. * When a vdev is set as primary then based on the dual sta policy
  1105. * "qca_wlan_concurrent_sta_policy_config" mcc preference and roaming has
  1106. * to be enabled on the primary vdev
  1107. *
  1108. * Return: QDF Status
  1109. */
  1110. QDF_STATUS wlan_mlme_set_primary_interface(struct wlan_objmgr_psoc *psoc,
  1111. uint8_t value);
  1112. /**
  1113. * wlan_mlme_set_default_primary_iface() - Set the default primary iface id
  1114. * for driver
  1115. * @psoc: pointer to psoc object
  1116. *
  1117. * Return: QDF Status
  1118. */
  1119. QDF_STATUS wlan_mlme_set_default_primary_iface(struct wlan_objmgr_psoc *psoc);
  1120. /**
  1121. * wlan_mlme_is_primary_interface_configured() - Check if primary iface is set
  1122. * @psoc: pointer to psoc object
  1123. *
  1124. * Check if primary iface is configured from userspace through vendor command.
  1125. * Return true if it's configured. If it's not configured, default value would
  1126. * be 0xFF and return false then.
  1127. *
  1128. * Return: True or False
  1129. */
  1130. bool wlan_mlme_is_primary_interface_configured(struct wlan_objmgr_psoc *psoc);
  1131. /**
  1132. * wlan_mlme_peer_get_assoc_rsp_ies() - Get the assoc response IEs of peer
  1133. * @peer: WLAN peer objmgr
  1134. * @ie_buf: Pointer to IE buffer
  1135. * @ie_len: Length of the IE buffer
  1136. *
  1137. * Get the pointer to assoc response IEs of the peer from MLME
  1138. * and length of the IE buffer.
  1139. *
  1140. * Return: QDF_STATUS
  1141. */
  1142. QDF_STATUS wlan_mlme_peer_get_assoc_rsp_ies(struct wlan_objmgr_peer *peer,
  1143. const uint8_t **ie_buf,
  1144. size_t *ie_len);
  1145. /**
  1146. * wlan_mlme_get_mcc_duty_cycle_percentage() - Get primary STA iface duty
  1147. * cycle percentage
  1148. * @psoc: pointer to psoc object
  1149. * @value: value that needs to be set from the caller
  1150. *
  1151. * API to get the MCC duty cycle for primary and secondary STA's
  1152. *
  1153. * Return: primary iface quota on success
  1154. */
  1155. int wlan_mlme_get_mcc_duty_cycle_percentage(struct wlan_objmgr_pdev *pdev);
  1156. /**
  1157. * wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  1158. * of UAPSD auto trigger
  1159. * @psoc: pointer to psoc object
  1160. * @value: Value that needs to be set from the caller
  1161. *
  1162. * Return: None
  1163. */
  1164. void wlan_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  1165. uint32_t *value);
  1166. /**
  1167. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1168. * for VI
  1169. * @psoc: pointer to psoc object
  1170. * @value: Value that needs to be set from the caller
  1171. *
  1172. * Return: QDF Status
  1173. */
  1174. QDF_STATUS
  1175. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1176. /**
  1177. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1178. * MSDU size for VI
  1179. * @psoc: pointer to psoc object
  1180. * @value: Value that needs to be set from the caller
  1181. *
  1182. * Return: QDF Status
  1183. */
  1184. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1185. uint16_t *value);
  1186. /**
  1187. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1188. * rate for VI
  1189. * @psoc: pointer to psoc object
  1190. * @value: Value that needs to be set from the caller
  1191. *
  1192. * Return: QDF Status
  1193. */
  1194. QDF_STATUS
  1195. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1196. uint32_t *value);
  1197. /**
  1198. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1199. * rate for VI
  1200. * @psoc: pointer to psoc object
  1201. * @value: Value that needs to be set from the caller
  1202. *
  1203. * Return: QDF Status
  1204. */
  1205. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1206. uint32_t *value);
  1207. /**
  1208. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1209. * allowance for VI
  1210. * @psoc: pointer to psoc object
  1211. * @value: Value that needs to be set from the caller
  1212. *
  1213. * Return: QDF Status
  1214. */
  1215. QDF_STATUS
  1216. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1217. /**
  1218. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1219. * interval for video
  1220. * @psoc: pointer to psoc object
  1221. * @value: pointer to the value which will be filled for the caller
  1222. *
  1223. * Return: QDF Status
  1224. */
  1225. QDF_STATUS
  1226. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1227. uint32_t *value);
  1228. /**
  1229. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1230. * interval for video
  1231. * @psoc: pointer to psoc object
  1232. * @value: pointer to the value which will be filled for the caller
  1233. *
  1234. * Return: QDF Status
  1235. */
  1236. QDF_STATUS
  1237. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1238. uint32_t *value);
  1239. /**
  1240. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1241. * for BE
  1242. * @psoc: pointer to psoc object
  1243. * @value: Value that needs to be set from the caller
  1244. *
  1245. * Return: QDF Status
  1246. */
  1247. QDF_STATUS
  1248. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  1249. uint8_t *value);
  1250. /**
  1251. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1252. * MSDU size for BE
  1253. * @psoc: pointer to psoc object
  1254. * @value: Value that needs to be set from the caller
  1255. *
  1256. * Return: QDF Status
  1257. */
  1258. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1259. uint16_t *value);
  1260. /**
  1261. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1262. * rate for BE
  1263. * @psoc: pointer to psoc object
  1264. * @value: Value that needs to be set from the caller
  1265. *
  1266. * Return: QDF Status
  1267. */
  1268. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1269. uint32_t *value);
  1270. /**
  1271. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1272. * rate for BE
  1273. * @psoc: pointer to psoc object
  1274. * @value: Value that needs to be set from the caller
  1275. *
  1276. * Return: QDF Status
  1277. */
  1278. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1279. uint32_t *value);
  1280. /**
  1281. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1282. * allowance for BE
  1283. * @psoc: pointer to psoc object
  1284. * @value: Value that needs to be set from the caller
  1285. *
  1286. * Return: QDF Status
  1287. */
  1288. QDF_STATUS
  1289. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1290. /**
  1291. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1292. * interval for BE
  1293. * @psoc: pointer to psoc object
  1294. * @value: pointer to the value which will be filled for the caller
  1295. *
  1296. * Return: QDF Status
  1297. */
  1298. QDF_STATUS
  1299. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1300. uint32_t *value);
  1301. /**
  1302. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1303. * interval for BE
  1304. * @psoc: pointer to psoc object
  1305. * @value: pointer to the value which will be filled for the caller
  1306. *
  1307. * Return: QDF Status
  1308. */
  1309. QDF_STATUS
  1310. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1311. uint32_t *value);
  1312. /**
  1313. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1314. * for BK
  1315. * @psoc: pointer to psoc object
  1316. * @value: Value that needs to be set from the caller
  1317. *
  1318. * Return: QDF Status
  1319. */
  1320. QDF_STATUS
  1321. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1322. /**
  1323. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  1324. * MSDU size for BK
  1325. * @psoc: pointer to psoc object
  1326. * @value: Value that needs to be set from the caller
  1327. *
  1328. * Return: QDF Status
  1329. */
  1330. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1331. uint16_t *value);
  1332. /**
  1333. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1334. * rate for BK
  1335. * @psoc: pointer to psoc object
  1336. * @value: Value that needs to be set from the caller
  1337. *
  1338. * Return: QDF Status
  1339. */
  1340. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1341. uint32_t *value);
  1342. /**
  1343. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1344. * rate for BK
  1345. * @psoc: pointer to psoc object
  1346. * @value: Value that needs to be set from the caller
  1347. *
  1348. * Return: QDF Status
  1349. */
  1350. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1351. uint32_t *value);
  1352. /**
  1353. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1354. * allowance for BE
  1355. * @psoc: pointer to psoc object
  1356. * @value: Value that needs to be set from the caller
  1357. *
  1358. * Return: QDF Status
  1359. */
  1360. QDF_STATUS
  1361. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1362. /**
  1363. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1364. * interval for BK
  1365. * @psoc: pointer to psoc object
  1366. * @value: pointer to the value which will be filled for the caller
  1367. *
  1368. * Return: QDF Status
  1369. */
  1370. QDF_STATUS
  1371. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1372. uint32_t *value);
  1373. /**
  1374. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1375. * interval for BK
  1376. * @psoc: pointer to psoc object
  1377. * @value: pointer to the value which will be filled for the caller
  1378. *
  1379. * Return: QDF Status
  1380. */
  1381. QDF_STATUS
  1382. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1383. uint32_t *value);
  1384. /**
  1385. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1386. * @psoc: pointer to psoc object
  1387. * @value: pointer to the value which will be filled for the caller
  1388. *
  1389. * Return: QDF Status
  1390. */
  1391. QDF_STATUS
  1392. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1393. /**
  1394. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1395. * @psoc: pointer to psoc object
  1396. * @value: pointer to the value which will be filled for the caller
  1397. *
  1398. * Return: QDF Status
  1399. */
  1400. QDF_STATUS
  1401. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1402. /**
  1403. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1404. * @psoc: pointer to psoc object
  1405. * @value: pointer to the value which will be filled for the caller
  1406. *
  1407. * Return: QDF Status
  1408. */
  1409. QDF_STATUS
  1410. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1411. #ifdef FEATURE_WLAN_ESE
  1412. /**
  1413. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1414. * @psoc: pointer to psoc object
  1415. * @value: pointer to the value which will be filled for the caller
  1416. *
  1417. * Return: None
  1418. */
  1419. void
  1420. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1421. uint32_t *value);
  1422. #endif
  1423. /**
  1424. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1425. * @psoc: pointer to psoc object
  1426. * @value: pointer to the value which will be filled for the caller
  1427. *
  1428. * Return: None
  1429. */
  1430. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1431. bool *value);
  1432. /**
  1433. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1434. * @psoc: pointer to psoc object
  1435. * @value: pointer to the value which will be filled for the caller
  1436. *
  1437. * Return: None
  1438. */
  1439. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1440. enum mlme_ts_info_ack_policy *value);
  1441. /**
  1442. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1443. * @psoc: pointer to psoc object
  1444. * @value: pointer to the value which will be filled for the caller
  1445. *
  1446. * Return: QDF Status
  1447. */
  1448. QDF_STATUS
  1449. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1450. /**
  1451. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1452. * for VO
  1453. * @psoc: pointer to psoc object
  1454. * @value: Value that needs to be set from the caller
  1455. *
  1456. * Return: QDF Status
  1457. */
  1458. QDF_STATUS
  1459. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1460. /**
  1461. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1462. * MSDU size for VO
  1463. * @psoc: pointer to psoc object
  1464. * @value: Value that needs to be set from the caller
  1465. *
  1466. * Return: QDF Status
  1467. */
  1468. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1469. uint16_t *value);
  1470. /**
  1471. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1472. * @psoc: pointer to psoc object
  1473. * @value: Value that needs to be set from the caller
  1474. *
  1475. * Return: QDF Status
  1476. */
  1477. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1478. uint32_t *value);
  1479. /**
  1480. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1481. * rate for VO
  1482. * @psoc: pointer to psoc object
  1483. * @value: Value that needs to be set from the caller
  1484. *
  1485. * Return: QDF Status
  1486. */
  1487. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1488. uint32_t *value);
  1489. /**
  1490. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1491. * @psoc: pointer to psoc object
  1492. * @value: Value that needs to be set from the caller
  1493. *
  1494. * Return: QDF Status
  1495. */
  1496. QDF_STATUS
  1497. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1498. /**
  1499. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1500. * @psoc: pointer to psoc object
  1501. * @value: value that needs to be set from the caller
  1502. *
  1503. * Return: QDF Status
  1504. */
  1505. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1506. bool value);
  1507. /**
  1508. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1509. * interval for voice
  1510. * @psoc: pointer to psoc object
  1511. * @value: pointer to the value which will be filled for the caller
  1512. *
  1513. * Return: QDF Status
  1514. */
  1515. QDF_STATUS
  1516. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1517. uint32_t *value);
  1518. /**
  1519. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1520. * interval for voice
  1521. * @psoc: pointer to psoc object
  1522. * @value: pointer to the value which will be filled for the caller
  1523. *
  1524. * Return: QDF Status
  1525. */
  1526. QDF_STATUS
  1527. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1528. uint32_t *value);
  1529. /**
  1530. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1531. * @psoc: psoc context
  1532. * @value: pointer to get required data
  1533. *
  1534. * Return: QDF_STATUS
  1535. */
  1536. QDF_STATUS
  1537. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1538. uint8_t *value);
  1539. /**
  1540. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1541. * @psoc: psoc context
  1542. * @value: data to be set
  1543. *
  1544. * Return: QDF_STATUS
  1545. */
  1546. QDF_STATUS
  1547. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1548. uint8_t value);
  1549. /**
  1550. * wlan_mlme_cfg_get_ht_smps() - gets HT SM Power Save mode from cfg item
  1551. * @psoc: psoc context
  1552. * @value: data to be set
  1553. *
  1554. * Return: QDF_STATUS
  1555. */
  1556. QDF_STATUS wlan_mlme_cfg_get_ht_smps(struct wlan_objmgr_psoc *psoc,
  1557. uint8_t *value);
  1558. /**
  1559. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1560. * cfg item
  1561. * @psoc: psoc context
  1562. * @value: pointer to get required data
  1563. *
  1564. * Return: QDF_STATUS
  1565. */
  1566. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1567. uint8_t *value);
  1568. /**
  1569. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1570. * cfg item
  1571. * @psoc: psoc context
  1572. * @value: data to be set
  1573. *
  1574. * Return: QDF_STATUS
  1575. */
  1576. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1577. uint8_t value);
  1578. /**
  1579. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1580. * cfg item
  1581. * @psoc: psoc context
  1582. * @value: data to be set
  1583. *
  1584. * Return: QDF_STATUS
  1585. */
  1586. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1587. uint8_t *value);
  1588. /**
  1589. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1590. * cfg item
  1591. * @psoc: psoc context
  1592. * @value: pointer to get required data
  1593. *
  1594. * Return: QDF_STATUS
  1595. */
  1596. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1597. bool *value);
  1598. /**
  1599. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1600. * cfg item
  1601. * @psoc: psoc context
  1602. * @value: data to be set
  1603. *
  1604. * Return: QDF_STATUS
  1605. */
  1606. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1607. bool value);
  1608. /**
  1609. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1610. * cfg item
  1611. * @psoc: psoc context
  1612. * @value: pointer to get required data
  1613. *
  1614. * Return: QDF_STATUS
  1615. */
  1616. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1617. bool *value);
  1618. /**
  1619. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1620. * cfg item
  1621. * @psoc: psoc context
  1622. * @value: data to be set
  1623. *
  1624. * Return: QDF_STATUS
  1625. */
  1626. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1627. bool value);
  1628. /**
  1629. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1630. * cfg item
  1631. * @psoc: psoc context
  1632. * @value: pointer to get required data
  1633. *
  1634. * Return: QDF_STATUS
  1635. */
  1636. QDF_STATUS
  1637. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1638. /**
  1639. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1640. * cfg item
  1641. * @psoc: psoc context
  1642. * @value: data to be set
  1643. *
  1644. * Return: QDF_STATUS
  1645. */
  1646. QDF_STATUS
  1647. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1648. /**
  1649. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1650. * cfg item
  1651. * @psoc: psoc context
  1652. * @value: pointer to get required data
  1653. *
  1654. * Return: QDF_STATUS
  1655. */
  1656. QDF_STATUS
  1657. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1658. /**
  1659. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1660. * cfg item
  1661. * @psoc: psoc context
  1662. * @value: pointer to get required data
  1663. *
  1664. * Return: QDF_STATUS
  1665. */
  1666. QDF_STATUS
  1667. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1668. /**
  1669. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1670. * cfg item
  1671. * @psoc: psoc context
  1672. * @value: data to be set
  1673. *
  1674. * Return: QDF_STATUS
  1675. */
  1676. QDF_STATUS
  1677. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1678. /**
  1679. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1680. * cfg item
  1681. * @psoc: psoc context
  1682. * @value: pointer to get required data
  1683. *
  1684. * Return: QDF_STATUS
  1685. */
  1686. QDF_STATUS
  1687. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1688. /**
  1689. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1690. * cfg item
  1691. * @psoc: psoc context
  1692. * @value: data to be set
  1693. *
  1694. * Return: QDF_STATUS
  1695. */
  1696. QDF_STATUS
  1697. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1698. /**
  1699. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1700. * cfg item
  1701. * @psoc: psoc context
  1702. * @value: pointer to get required data
  1703. *
  1704. * Return: QDF_STATUS
  1705. */
  1706. QDF_STATUS
  1707. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1708. /**
  1709. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1710. * cfg item
  1711. * @psoc: psoc context
  1712. * @value: data to be set
  1713. *
  1714. * Return: QDF_STATUS
  1715. */
  1716. QDF_STATUS
  1717. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1718. /**
  1719. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1720. * cfg item
  1721. * @psoc: psoc context
  1722. * @value: data to be set
  1723. *
  1724. * Return: QDF_STATUS
  1725. */
  1726. QDF_STATUS
  1727. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1728. /**
  1729. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1730. * support cap
  1731. * into cfg item
  1732. * @psoc: psoc context
  1733. * @value: data to be set
  1734. *
  1735. * Return: QDF_STATUS
  1736. */
  1737. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1738. uint8_t value);
  1739. /**
  1740. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1741. * support cap into cfg item
  1742. *
  1743. * @psoc: psoc context
  1744. * @value: data to be set
  1745. *
  1746. * Return: QDF_STATUS
  1747. */
  1748. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1749. uint8_t *value);
  1750. /**
  1751. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1752. * into cfg item
  1753. * @psoc: psoc context
  1754. * @value: data to be set
  1755. *
  1756. * Return: QDF_STATUS
  1757. */
  1758. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1759. uint8_t value);
  1760. /**
  1761. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1762. * cfg item
  1763. * @psoc: psoc context
  1764. * @value: pointer to get required data
  1765. *
  1766. * Return: QDF_STATUS
  1767. */
  1768. QDF_STATUS
  1769. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1770. /**
  1771. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1772. * cfg item
  1773. * @psoc: psoc context
  1774. * @value: data to be set
  1775. *
  1776. * Return: QDF_STATUS
  1777. */
  1778. QDF_STATUS
  1779. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1780. /**
  1781. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1782. * cfg item
  1783. * @psoc: psoc context
  1784. * @value: pointer to get required data
  1785. *
  1786. * Return: QDF_STATUS
  1787. */
  1788. QDF_STATUS
  1789. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1790. /**
  1791. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1792. * cfg item
  1793. * @psoc: psoc context
  1794. * @value: data to be set
  1795. *
  1796. * Return: QDF_STATUS
  1797. */
  1798. QDF_STATUS
  1799. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1800. /**
  1801. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1802. * cfg item
  1803. * @psoc: psoc context
  1804. * @value: pointer to get required data
  1805. *
  1806. * Return: QDF_STATUS
  1807. */
  1808. QDF_STATUS
  1809. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1810. /**
  1811. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1812. * cfg item
  1813. * @psoc: psoc context
  1814. * @value: data to be set
  1815. *
  1816. * Return: QDF_STATUS
  1817. */
  1818. QDF_STATUS
  1819. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1820. /**
  1821. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1822. * cfg item
  1823. * @psoc: psoc context
  1824. * @value: pointer to get required data
  1825. *
  1826. * Return: QDF_STATUS
  1827. */
  1828. QDF_STATUS
  1829. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1830. uint8_t *value);
  1831. /**
  1832. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1833. * cfg item
  1834. * @psoc: psoc context
  1835. * @value: data to be set
  1836. *
  1837. * Return: QDF_STATUS
  1838. */
  1839. QDF_STATUS
  1840. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1841. uint8_t value);
  1842. /**
  1843. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1844. * cfg item
  1845. * @psoc: psoc context
  1846. * @value: pointer to get required data
  1847. *
  1848. * Return: QDF_STATUS
  1849. */
  1850. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1851. uint32_t *value);
  1852. /**
  1853. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1854. * cfg item
  1855. * @psoc: psoc context
  1856. * @value: data to be set
  1857. *
  1858. * Return: QDF_STATUS
  1859. */
  1860. QDF_STATUS
  1861. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1862. /**
  1863. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1864. * cfg item
  1865. * @psoc: psoc context
  1866. * @value: pointer to get required data
  1867. *
  1868. * Return: QDF_STATUS
  1869. */
  1870. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1871. uint32_t *value);
  1872. /**
  1873. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1874. * cfg item
  1875. * @psoc: psoc context
  1876. * @value: data to be set
  1877. *
  1878. * Return: QDF_STATUS
  1879. */
  1880. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1881. uint32_t value);
  1882. /**
  1883. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1884. * cfg item
  1885. * @psoc: psoc context
  1886. * @value: data to be set
  1887. *
  1888. * Return: QDF_STATUS
  1889. */
  1890. QDF_STATUS
  1891. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1892. uint32_t value);
  1893. /**
  1894. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1895. * cfg item
  1896. * @psoc: psoc context
  1897. * @value: data to be set
  1898. *
  1899. * Return: QDF_STATUS
  1900. */
  1901. QDF_STATUS
  1902. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1903. uint32_t value);
  1904. /**
  1905. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1906. * cfg item
  1907. * @psoc: psoc context
  1908. * @value: data to be set
  1909. *
  1910. * Return: QDF_STATUS
  1911. */
  1912. QDF_STATUS
  1913. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1914. uint32_t *value);
  1915. /**
  1916. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1917. * cfg item
  1918. * @psoc: psoc context
  1919. * @value: data to be set
  1920. *
  1921. * Return: QDF_STATUS
  1922. */
  1923. QDF_STATUS
  1924. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1925. uint32_t value);
  1926. /**
  1927. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1928. * @psoc: psoc context
  1929. * @value: data to be set
  1930. *
  1931. * Return: QDF_STATUS
  1932. */
  1933. QDF_STATUS
  1934. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1935. /**
  1936. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1937. * @psoc: psoc context
  1938. * @value: data to be set
  1939. *
  1940. * Return: QDF_STATUS
  1941. */
  1942. QDF_STATUS
  1943. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1944. /**
  1945. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1946. * for 11ac
  1947. * @psoc: psoc context
  1948. * @value: data to be set
  1949. *
  1950. * Return: QDF_STATUS
  1951. */
  1952. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1953. uint8_t *value);
  1954. /**
  1955. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1956. * @psoc: psoc context
  1957. * @value: data to be set
  1958. *
  1959. * Return: QDF_STATUS
  1960. */
  1961. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1962. uint8_t *value);
  1963. /**
  1964. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1965. * @psoc: psoc context
  1966. * @value: data to be set
  1967. *
  1968. * Return: QDF_STATUS
  1969. */
  1970. QDF_STATUS
  1971. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1972. /**
  1973. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1974. * @psoc: psoc context
  1975. * @value: data to be set
  1976. *
  1977. * Return: QDF_STATUS
  1978. */
  1979. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1980. uint8_t *value);
  1981. /**
  1982. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1983. * @psoc: psoc context
  1984. * @value: data to be set
  1985. *
  1986. * Return: QDF_STATUS
  1987. */
  1988. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1989. uint8_t *value);
  1990. /**
  1991. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1992. * @psoc: psoc context
  1993. * @value: data to be set
  1994. *
  1995. * Return: QDF_STATUS
  1996. */
  1997. QDF_STATUS
  1998. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1999. /**
  2000. * wlan_mlme_get_srd_master_mode_for_vdev - Get SRD master mode for vdev
  2001. * @psoc: pointer to psoc object
  2002. * @vdev_opmode: vdev operating mode
  2003. * @value: pointer to the value which will be filled for the caller
  2004. *
  2005. * Return: QDF Status
  2006. */
  2007. QDF_STATUS
  2008. wlan_mlme_get_srd_master_mode_for_vdev(struct wlan_objmgr_psoc *psoc,
  2009. enum QDF_OPMODE vdev_opmode,
  2010. bool *value);
  2011. /**
  2012. * wlan_mlme_get_indoor_support_for_nan - Get indoor channel support for NAN
  2013. * @psoc: pointer to psoc object
  2014. * @value: pointer to the value which will be filled for the caller
  2015. *
  2016. * Return: QDF Status
  2017. */
  2018. QDF_STATUS
  2019. wlan_mlme_get_indoor_support_for_nan(struct wlan_objmgr_psoc *psoc,
  2020. bool *value);
  2021. /**
  2022. * wlan_mlme_get_force_sap_enabled() - Get the value of force SAP enabled
  2023. * @psoc: psoc context
  2024. * @value: data to get
  2025. *
  2026. * Get the value of force SAP enabled
  2027. *
  2028. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2029. */
  2030. QDF_STATUS
  2031. wlan_mlme_get_force_sap_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2032. /**
  2033. * wlan_mlme_get_enable_dynamic_nss_chains_cfg() - API to get whether dynamic
  2034. * nss and chain config is enabled or not
  2035. * @psoc: psoc context
  2036. * @value: data to be set
  2037. *
  2038. * API to get whether dynamic nss and chain config is enabled or not
  2039. *
  2040. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2041. */
  2042. QDF_STATUS
  2043. wlan_mlme_get_enable_dynamic_nss_chains_cfg(struct wlan_objmgr_psoc *psoc,
  2044. bool *value);
  2045. /**
  2046. * wlan_mlme_get_restart_sap_on_dynamic_nss_chains_cfg() - API to get whether
  2047. * SAP needs to be restarted or not on dynamic nss chain config
  2048. * @psoc: psoc context
  2049. * @value: data to be set
  2050. *
  2051. * API to get whether SAP needs to be restarted or not on dynamic nss chain
  2052. * config
  2053. *
  2054. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  2055. */
  2056. QDF_STATUS
  2057. wlan_mlme_get_restart_sap_on_dynamic_nss_chains_cfg(
  2058. struct wlan_objmgr_psoc *psoc,
  2059. bool *value);
  2060. /**
  2061. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2062. * @psoc: psoc context
  2063. * @value: data to be set
  2064. *
  2065. * Return: QDF_STATUS
  2066. */
  2067. QDF_STATUS
  2068. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  2069. /**
  2070. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  2071. * @psoc: psoc context
  2072. * @value: data to be set
  2073. *
  2074. * Return: QDF_STATUS
  2075. */
  2076. QDF_STATUS
  2077. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  2078. /**
  2079. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  2080. * @psoc: psoc context
  2081. * @value: data to be set
  2082. *
  2083. * Return: QDF_STATUS
  2084. */
  2085. QDF_STATUS
  2086. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  2087. /**
  2088. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  2089. * @psoc: psoc context
  2090. * @value: data to be set
  2091. *
  2092. * Return: QDF_STATUS
  2093. */
  2094. QDF_STATUS
  2095. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  2096. /**
  2097. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  2098. * @psoc: psoc context
  2099. * @value: data to be set
  2100. *
  2101. * Return: QDF_STATUS
  2102. */
  2103. QDF_STATUS
  2104. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  2105. /**
  2106. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  2107. * @psoc: psoc context
  2108. * @value: data to be set
  2109. *
  2110. * Return: QDF_STATUS
  2111. */
  2112. QDF_STATUS
  2113. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  2114. /**
  2115. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  2116. * @psoc: psoc context
  2117. * @value: data to be set
  2118. *
  2119. * Return: QDF_STATUS
  2120. */
  2121. QDF_STATUS
  2122. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  2123. /**
  2124. * mlme_update_vht_cap() - update vht capabilities
  2125. * @psoc: psoc context
  2126. * @cfg: data to be set
  2127. *
  2128. * Return: QDF_STATUS
  2129. */
  2130. QDF_STATUS
  2131. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  2132. /**
  2133. * mlme_update_nss_vht_cap() - Update the number of spatial
  2134. * streams supported for vht
  2135. * @psoc: psoc context
  2136. *
  2137. * Return: QDF_STATUS
  2138. */
  2139. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  2140. #ifdef WLAN_FEATURE_11BE
  2141. /**
  2142. * mlme_get_bss_11be_allowed() - Check BSS allowed in 11be mode
  2143. * @psoc: psoc context
  2144. * @bssid: bssid
  2145. * @ie_date: ie data
  2146. * @ie_length: ie data length
  2147. *
  2148. * Return: true if AP in 11be oui allow list
  2149. */
  2150. bool mlme_get_bss_11be_allowed(struct wlan_objmgr_psoc *psoc,
  2151. struct qdf_mac_addr *bssid,
  2152. uint8_t *ie_data,
  2153. uint32_t ie_length);
  2154. #else
  2155. static inline
  2156. bool mlme_get_bss_11be_allowed(struct wlan_objmgr_psoc *psoc,
  2157. struct qdf_mac_addr *bssid,
  2158. uint8_t *ie_data,
  2159. uint32_t ie_length)
  2160. {
  2161. return false;
  2162. }
  2163. #endif
  2164. /**
  2165. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  2166. * @psoc: psoc context
  2167. * @value: value to be filled for caller
  2168. *
  2169. * Return: QDF_STATUS
  2170. */
  2171. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  2172. bool *value);
  2173. /**
  2174. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  2175. * @psoc: psoc context
  2176. * @value: Enable/Disable control value for sap_uapsd_enabled field
  2177. *
  2178. * Return: QDF_STATUS
  2179. */
  2180. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  2181. bool value);
  2182. /**
  2183. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  2184. * @psoc: psoc context
  2185. *
  2186. * Return: QDF_STATUS
  2187. */
  2188. QDF_STATUS
  2189. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2190. /**
  2191. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  2192. * @psoc: psoc context
  2193. *
  2194. * Return: QDF_STATUS
  2195. */
  2196. QDF_STATUS
  2197. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2198. /**
  2199. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  2200. * @psoc: psoc context
  2201. *
  2202. * Return: QDF_STATUS
  2203. */
  2204. QDF_STATUS
  2205. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2206. /**
  2207. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  2208. * @psoc: psoc context
  2209. *
  2210. * Return: QDF_STATUS
  2211. */
  2212. QDF_STATUS
  2213. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2214. /**
  2215. * wlan_mlme_is_rf_test_mode_enabled() - Get the rf test mode flag
  2216. * @psoc: psoc context
  2217. * @value: Enable/Disable value ptr.
  2218. *
  2219. * Return: QDF_STATUS
  2220. */
  2221. QDF_STATUS
  2222. wlan_mlme_is_rf_test_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2223. /**
  2224. * wlan_mlme_set_rf_test_mode_enabled() - Set the rf test mode flag
  2225. * @psoc: psoc context
  2226. * @value: Enable/Disable value.
  2227. *
  2228. * Return: QDF_STATUS
  2229. */
  2230. QDF_STATUS
  2231. wlan_mlme_set_rf_test_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2232. #ifdef CONFIG_BAND_6GHZ
  2233. /**
  2234. * wlan_mlme_is_relaxed_6ghz_conn_policy_enabled() - Get the 6ghz relaxed
  2235. * connection policy flag
  2236. * @psoc: psoc context
  2237. * @value: Enable/Disable value ptr.
  2238. *
  2239. * Return: QDF_STATUS
  2240. */
  2241. QDF_STATUS
  2242. wlan_mlme_is_relaxed_6ghz_conn_policy_enabled(struct wlan_objmgr_psoc *psoc,
  2243. bool *value);
  2244. /**
  2245. * wlan_mlme_set_relaxed_6ghz_conn_policy_enabled() - Set the 6ghz relaxed
  2246. * connection policy flag
  2247. * @psoc: psoc context
  2248. * @value: True/False
  2249. *
  2250. * Return: QDF_STATUS
  2251. */
  2252. QDF_STATUS
  2253. wlan_mlme_set_relaxed_6ghz_conn_policy(struct wlan_objmgr_psoc *psoc,
  2254. bool value);
  2255. #else
  2256. static inline QDF_STATUS
  2257. wlan_mlme_is_relaxed_6ghz_conn_policy_enabled(struct wlan_objmgr_psoc *psoc,
  2258. bool *value)
  2259. {
  2260. *value = false;
  2261. return QDF_STATUS_SUCCESS;
  2262. }
  2263. static inline QDF_STATUS
  2264. wlan_mlme_set_relaxed_6ghz_conn_policy(struct wlan_objmgr_psoc *psoc,
  2265. bool value)
  2266. {
  2267. return QDF_STATUS_SUCCESS;
  2268. }
  2269. #endif
  2270. #ifdef WLAN_FEATURE_11BE_MLO
  2271. /**
  2272. * wlan_mlme_get_emlsr_mode_enabled() - Get the eMLSR mode flag
  2273. * @psoc: psoc context
  2274. * @value: Enable/Disable value ptr.
  2275. *
  2276. * Return: QDF_STATUS
  2277. */
  2278. QDF_STATUS
  2279. wlan_mlme_get_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  2280. /**
  2281. * wlan_mlme_set_emlsr_mode_enabled() - Set the eMLSR mode flag
  2282. * @psoc: psoc context
  2283. * @value: Enable/Disable value.
  2284. *
  2285. * Return: QDF_STATUS
  2286. */
  2287. QDF_STATUS
  2288. wlan_mlme_set_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  2289. /**
  2290. * wlan_mlme_set_eml_params() - Set EML subfields in psoc mlme obj that
  2291. * are received from FW
  2292. * @psoc: psoc context
  2293. * @cap: psoc mac/phy capability ptr
  2294. *
  2295. * Return: none
  2296. */
  2297. void
  2298. wlan_mlme_set_eml_params(struct wlan_objmgr_psoc *psoc,
  2299. struct wlan_psoc_host_mac_phy_caps_ext2 *cap);
  2300. /**
  2301. * wlan_mlme_get_eml_params() - Get EML subfields from psoc mlme obj
  2302. * @psoc: psoc context
  2303. * @cap: EML capability subfield ptr
  2304. *
  2305. * Return: none
  2306. */
  2307. void
  2308. wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
  2309. struct wlan_mlo_eml_cap *cap);
  2310. /**
  2311. * wlan_mlme_get_t2lm_negotiation_supported() - Get the T2LM
  2312. * negotiation supported value
  2313. * @psoc: psoc context
  2314. *
  2315. * Return: t2lm negotiation supported value
  2316. */
  2317. enum t2lm_negotiation_support
  2318. wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc);
  2319. /**
  2320. * wlan_mlme_set_t2lm_negotiation_supported() - Set the T2LM
  2321. * negotiation supported value
  2322. * @psoc: psoc context
  2323. * @value: t2lm negotiation supported value
  2324. *
  2325. * Return: qdf status
  2326. */
  2327. QDF_STATUS
  2328. wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
  2329. uint8_t value);
  2330. #else
  2331. static inline QDF_STATUS
  2332. wlan_mlme_get_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2333. {
  2334. *value = false;
  2335. return QDF_STATUS_SUCCESS;
  2336. }
  2337. static inline QDF_STATUS
  2338. wlan_mlme_set_emlsr_mode_enabled(struct wlan_objmgr_psoc *psoc, bool value)
  2339. {
  2340. return QDF_STATUS_SUCCESS;
  2341. }
  2342. static inline void
  2343. wlan_mlme_set_eml_params(struct wlan_objmgr_psoc *psoc,
  2344. struct wlan_psoc_host_mac_phy_caps_ext2 *cap)
  2345. {
  2346. }
  2347. static inline void
  2348. wlan_mlme_get_eml_params(struct wlan_objmgr_psoc *psoc,
  2349. struct wlan_mlo_eml_cap *cap)
  2350. {
  2351. }
  2352. static inline enum t2lm_negotiation_support
  2353. wlan_mlme_get_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc)
  2354. {
  2355. return T2LM_NEGOTIATION_DISABLED;
  2356. }
  2357. static inline QDF_STATUS
  2358. wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
  2359. uint8_t value)
  2360. {
  2361. return QDF_STATUS_E_NOSUPPORT;
  2362. }
  2363. #endif
  2364. /**
  2365. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  2366. * @psoc: pointer to psoc object
  2367. * @value: value which needs to filled by API
  2368. *
  2369. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  2370. *
  2371. * Return: QDF_STATUS
  2372. */
  2373. QDF_STATUS
  2374. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  2375. uint32_t *value);
  2376. /**
  2377. * wlan_mlme_get_max_modulated_dtim_ms() - get the max modulated dtim in ms
  2378. * restart
  2379. * @psoc: pointer to psoc object
  2380. * @value: Value that needs to be set from the caller
  2381. *
  2382. * Return: QDF Status
  2383. */
  2384. QDF_STATUS
  2385. wlan_mlme_get_max_modulated_dtim_ms(struct wlan_objmgr_psoc *psoc,
  2386. uint16_t *value);
  2387. /**
  2388. * wlan_mlme_get_scan_probe_unicast_ra() - Get scan probe unicast RA cfg
  2389. * @psoc: pointer to psoc object
  2390. * @value: value which needs to filled by API
  2391. *
  2392. * This API gives scan probe request with unicast RA user config
  2393. *
  2394. * Return: QDF_STATUS
  2395. */
  2396. QDF_STATUS
  2397. wlan_mlme_get_scan_probe_unicast_ra(struct wlan_objmgr_psoc *psoc,
  2398. bool *value);
  2399. /**
  2400. * wlan_mlme_set_scan_probe_unicast_ra() - Set scan probe unicast RA cfg
  2401. * @psoc: pointer to psoc object
  2402. * @value: set value
  2403. *
  2404. * This API sets scan probe request with unicast RA user config
  2405. *
  2406. * Return: QDF_STATUS
  2407. */
  2408. QDF_STATUS
  2409. wlan_mlme_set_scan_probe_unicast_ra(struct wlan_objmgr_psoc *psoc,
  2410. bool value);
  2411. /**
  2412. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  2413. * @psoc: pointer to psoc object
  2414. * @value: value which needs to filled by API
  2415. *
  2416. * This API fetches the user setting to determine if SAP MCC with other persona
  2417. * to be avoided.
  2418. *
  2419. * Return: QDF_STATUS
  2420. */
  2421. QDF_STATUS
  2422. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  2423. uint8_t *value);
  2424. /**
  2425. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  2426. * @psoc: pointer to psoc object
  2427. * @value: value which needs to filled by API
  2428. *
  2429. * To get INI value which helps to determe whether to enable/disable use of
  2430. * broadcast probe response to increase the detectability of SAP in MCC mode.
  2431. *
  2432. *
  2433. * Return: QDF_STATUS
  2434. */
  2435. QDF_STATUS
  2436. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  2437. uint8_t *value);
  2438. /**
  2439. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  2440. * @psoc: pointer to psoc object
  2441. * @value: value which needs to filled by API
  2442. *
  2443. * To get INI value which helps to determine whether to enable/disable
  2444. * use of long duration RTS-CTS protection when SAP goes off
  2445. * channel in MCC mode.
  2446. *
  2447. * Return: QDF_STATUS
  2448. */
  2449. QDF_STATUS
  2450. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  2451. uint8_t *value);
  2452. /**
  2453. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  2454. * @psoc: pointer to psoc object
  2455. * @value: value which needs to filled by API
  2456. *
  2457. * To get INI value which helps to determine whether to enable MCC feature
  2458. *
  2459. * Return: QDF_STATUS
  2460. */
  2461. QDF_STATUS
  2462. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  2463. uint8_t *value);
  2464. /**
  2465. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  2466. * @psoc: pointer to psoc object
  2467. * @value: pointer to the value which will be filled for the caller
  2468. *
  2469. * Return: QDF Status
  2470. */
  2471. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  2472. bool *value);
  2473. /**
  2474. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  2475. * bitmap
  2476. * @psoc: pointer to psoc object
  2477. * @dtim_selection_div: value that is requested by the caller
  2478. * This function gets the dtim selection diversity bitmap to be
  2479. * sent to the firmware
  2480. *
  2481. * Return: QDF_STATUS_SUCCESS - in case of success
  2482. */
  2483. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  2484. uint32_t *dtim_selection_div);
  2485. /**
  2486. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  2487. * minimum listen interval value
  2488. * @psoc: pointer to psoc object
  2489. * @value: value that is requested by the caller
  2490. *
  2491. * Return: QDF_STATUS_SUCCESS - in case of success
  2492. */
  2493. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  2494. uint32_t *value);
  2495. /**
  2496. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  2497. * maximum listen interval value
  2498. * @psoc: pointer to psoc object
  2499. * @value: value that is requested by the caller
  2500. *
  2501. * Return: QDF_STATUS_SUCCESS - in case of success
  2502. */
  2503. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  2504. uint32_t *value);
  2505. /**
  2506. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  2507. * @psoc: pointer to psoc object
  2508. * @value: value that is requested by the caller
  2509. *
  2510. * Return: QDF_STATUS_SUCCESS - in case of success
  2511. */
  2512. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  2513. uint32_t *value);
  2514. /**
  2515. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  2516. * enabled/disabled
  2517. * @psoc: pointer to psoc object
  2518. * @value: value that is requested by the caller
  2519. *
  2520. * Return: QDF_STATUS_SUCCESS - in case of success
  2521. */
  2522. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  2523. bool *value);
  2524. /**
  2525. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  2526. * @psoc: pointer to psoc object
  2527. *
  2528. * Return: QDF_STATUS_SUCCESS - in case of success
  2529. */
  2530. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  2531. /**
  2532. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  2533. * enabled/disabled
  2534. * @psoc: pointer to psoc object
  2535. * @value: value that is requested by the caller
  2536. *
  2537. * Return: QDF_STATUS_SUCCESS - in case of success
  2538. */
  2539. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  2540. bool *value);
  2541. /**
  2542. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  2543. * @wps_params: pointer to mlme wps parameters structure
  2544. * @data: data to which the parameter is to be copied
  2545. *
  2546. * Return None
  2547. *
  2548. */
  2549. void
  2550. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  2551. /**
  2552. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  2553. * @psoc: pointer to psoc object
  2554. * @val: Pointer to the value which will be filled for the caller
  2555. *
  2556. * Return: QDF Status
  2557. */
  2558. QDF_STATUS
  2559. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  2560. uint32_t *value);
  2561. /**
  2562. * wlan_mlme_get_4way_hs_offload() - get 4-way hs offload to fw cfg
  2563. * @psoc: pointer to psoc object
  2564. * @val: Pointer to the value which will be filled for the caller
  2565. *
  2566. * Return: QDF Status
  2567. */
  2568. QDF_STATUS
  2569. wlan_mlme_get_4way_hs_offload(struct wlan_objmgr_psoc *psoc, uint32_t *value);
  2570. /**
  2571. * wlan_mlme_get_bmiss_skip_full_scan_value() - To get value of
  2572. * bmiss_skip_full_scan ini
  2573. * @psoc: pointer to psoc object
  2574. * @val: Pointer to the value which will be filled for the caller
  2575. *
  2576. * Return: QDF Status
  2577. */
  2578. QDF_STATUS
  2579. wlan_mlme_get_bmiss_skip_full_scan_value(struct wlan_objmgr_psoc *psoc,
  2580. bool *value);
  2581. /**
  2582. * mlme_get_peer_phymode() - get phymode of peer
  2583. * @psoc: pointer to psoc object
  2584. * @mac: Pointer to the mac addr of the peer
  2585. * @peer_phymode: phymode
  2586. *
  2587. * Return: QDF Status
  2588. */
  2589. QDF_STATUS
  2590. mlme_get_peer_phymode(struct wlan_objmgr_psoc *psoc, uint8_t *mac,
  2591. enum wlan_phymode *peer_phymode);
  2592. /**
  2593. * mlme_set_tgt_wpa3_roam_cap() - Set the target WPA3 roam support
  2594. * to mlme
  2595. * @psoc: pointer to PSOC object
  2596. * @akm_bitmap: Bitmap of akm suites supported for roaming by the firmware
  2597. *
  2598. * Return: QDF Status
  2599. */
  2600. QDF_STATUS mlme_set_tgt_wpa3_roam_cap(struct wlan_objmgr_psoc *psoc,
  2601. uint32_t akm_bitmap);
  2602. /**
  2603. * wlan_mlme_get_ignore_fw_reg_offload_ind() - Get the
  2604. * ignore_fw_reg_offload_ind ini
  2605. * @psoc: pointer to psoc object
  2606. * @disabled: output pointer to hold user config
  2607. *
  2608. * Return: QDF Status
  2609. */
  2610. QDF_STATUS
  2611. wlan_mlme_get_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc,
  2612. bool *disabled);
  2613. /**
  2614. * mlme_get_roam_trigger_str() - Get the string for enum
  2615. * WMI_ROAM_TRIGGER_REASON_ID reason.
  2616. * @roam_scan_trigger: roam scan trigger ID
  2617. *
  2618. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_REASON_ID
  2619. */
  2620. char *mlme_get_roam_trigger_str(uint32_t roam_scan_trigger);
  2621. /**
  2622. * mlme_get_roam_scan_type_str() - Get the string for roam sacn type
  2623. * @roam_scan_type: roam scan type coming from fw via
  2624. * wmi_roam_scan_info tlv
  2625. *
  2626. * Return: Meaningful string for roam sacn type
  2627. */
  2628. char *mlme_get_roam_scan_type_str(uint32_t roam_scan_type);
  2629. /**
  2630. * mlme_get_roam_status_str() - Get the string for roam status
  2631. * @roam_status: roam status coming from fw via
  2632. * wmi_roam_scan_info tlv
  2633. *
  2634. * Return: Meaningful string for roam status
  2635. */
  2636. char *mlme_get_roam_status_str(uint32_t roam_status);
  2637. /**
  2638. * mlme_get_converted_timestamp() - Return time of the day
  2639. * from timestamp
  2640. * @timestamp: Timestamp value in milliseconds
  2641. * @time: Output buffer to fill time into
  2642. *
  2643. * Return: Time of the day in [HH:MM:SS.uS]
  2644. */
  2645. void mlme_get_converted_timestamp(uint32_t timestamp, char *time);
  2646. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2647. /**
  2648. * wlan_mlme_set_sae_single_pmk_bss_cap - API to set WPA3 single pmk AP IE
  2649. * @psoc: Pointer to psoc object
  2650. * @vdev_id: vdev id
  2651. * @val: value to be set
  2652. *
  2653. * Return : None
  2654. */
  2655. void wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2656. uint8_t vdev_id, bool val);
  2657. /**
  2658. * wlan_mlme_update_sae_single_pmk - API to update mlme_pmkid_info
  2659. * @vdev: vdev object
  2660. * @sae_single_pmk: pointer to sae_single_pmk_info struct
  2661. *
  2662. * Return : None
  2663. */
  2664. void
  2665. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2666. struct mlme_pmk_info *sae_single_pmk);
  2667. /**
  2668. * wlan_mlme_get_sae_single_pmk_info - API to get mlme_pmkid_info
  2669. * @vdev: vdev object
  2670. * @pmksa: pointer to PMKSA struct
  2671. *
  2672. * Return : None
  2673. */
  2674. void
  2675. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2676. struct wlan_mlme_sae_single_pmk *pmksa);
  2677. /**
  2678. * wlan_mlme_is_sae_single_pmk_enabled() - Get is SAE single pmk feature enabled
  2679. * @psoc: Pointer to Global psoc
  2680. *
  2681. * Return: True if SAE single PMK is enabled
  2682. */
  2683. bool wlan_mlme_is_sae_single_pmk_enabled(struct wlan_objmgr_psoc *psoc);
  2684. /**
  2685. * wlan_mlme_clear_sae_single_pmk_info - API to clear mlme_pmkid_info ap caps
  2686. * @vdev: vdev object
  2687. * @pmk : pmk info to clear
  2688. *
  2689. * Return : None
  2690. */
  2691. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2692. struct mlme_pmk_info *pmk);
  2693. #else
  2694. static inline void
  2695. wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2696. uint8_t vdev_id, bool val)
  2697. {
  2698. }
  2699. static inline
  2700. bool wlan_mlme_is_sae_single_pmk_enabled(struct wlan_objmgr_psoc *psoc)
  2701. {
  2702. return false;
  2703. }
  2704. static inline void
  2705. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2706. struct mlme_pmk_info *sae_single_pmk)
  2707. {
  2708. }
  2709. static inline void
  2710. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2711. struct wlan_mlme_sae_single_pmk *pmksa)
  2712. {
  2713. }
  2714. static inline
  2715. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2716. struct mlme_pmk_info *pmk)
  2717. {
  2718. }
  2719. #endif
  2720. /**
  2721. * mlme_get_roam_fail_reason_str() - Get fail string from enum
  2722. * WMI_ROAM_FAIL_REASON_ID
  2723. * @result: Roam fail reason
  2724. *
  2725. * Return: Meaningful string from enum
  2726. */
  2727. char *mlme_get_roam_fail_reason_str(uint32_t result);
  2728. /**
  2729. * mlme_get_sub_reason_str() - Get roam trigger sub reason from enum
  2730. * WMI_ROAM_TRIGGER_SUB_REASON_ID
  2731. * @sub_reason: Sub reason value
  2732. *
  2733. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_SUB_REASON_ID
  2734. */
  2735. char *mlme_get_sub_reason_str(uint32_t sub_reason);
  2736. /**
  2737. * wlan_mlme_get_mgmt_max_retry() - Get the
  2738. * max mgmt retry
  2739. * @psoc: pointer to psoc object
  2740. * @max_retry: output pointer to hold user config
  2741. *
  2742. * Return: QDF Status
  2743. */
  2744. QDF_STATUS
  2745. wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
  2746. uint8_t *max_retry);
  2747. /**
  2748. * wlan_mlme_get_mgmt_6ghz_rate_support() - Get status of HE rates for
  2749. * 6GHz mgmt frames
  2750. * @psoc: pointer to psoc object
  2751. * @enable_he_mcs0_for_6ghz_mgmt: pointer to check for HE rates support
  2752. *
  2753. * Return: QDF Status
  2754. */
  2755. QDF_STATUS
  2756. wlan_mlme_get_mgmt_6ghz_rate_support(struct wlan_objmgr_psoc *psoc,
  2757. bool *enable_he_mcs0_for_6ghz_mgmt);
  2758. /**
  2759. * wlan_mlme_get_status_ring_buffer() - Get the
  2760. * status of ring buffer
  2761. * @psoc: pointer to psoc object
  2762. * @enable_ring_buffer: output pointer to point the configured value of
  2763. * ring buffer
  2764. *
  2765. * Return: QDF_STATUS
  2766. */
  2767. QDF_STATUS
  2768. wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
  2769. bool *enable_ring_buffer);
  2770. /**
  2771. * wlan_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
  2772. * support is enabled or disabled
  2773. * @psoc: pointer to psoc object
  2774. *
  2775. * Return: true if peer unmap confirmation support is enabled, else false
  2776. */
  2777. bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc);
  2778. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2779. /**
  2780. * wlan_mlme_get_roam_reason_vsie_status() - Indicate if roam reason
  2781. * vsie is enabled or disabled
  2782. * @psoc: pointer to psoc object
  2783. * @roam_reason_vsie_enabled: pointer to hold value of roam reason
  2784. * vsie
  2785. *
  2786. * Return: QDF_STATUS
  2787. */
  2788. QDF_STATUS
  2789. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2790. uint8_t *roam_reason_vsie_enabled);
  2791. /**
  2792. * wlan_mlme_set_roam_reason_vsie_status() - Update roam reason vsie status
  2793. * @psoc: pointer to psoc object
  2794. * @roam_reason_vsie_enabled: value of roam reason vsie
  2795. *
  2796. * Return: QDF_STATUS
  2797. */
  2798. QDF_STATUS
  2799. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2800. uint8_t roam_reason_vsie_enabled);
  2801. /**
  2802. * wlan_mlme_get_roaming_triggers - Get the roaming triggers bitmap
  2803. * @psoc: Pointer to PSOC object
  2804. *
  2805. * Return: Roaming triggers value
  2806. */
  2807. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc);
  2808. /**
  2809. * wlan_mlme_get_roaming_offload() - Get roaming offload setting
  2810. * @psoc: pointer to psoc object
  2811. * @val: Pointer to enable/disable roaming offload
  2812. *
  2813. * Return: QDF Status
  2814. */
  2815. QDF_STATUS
  2816. wlan_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  2817. bool *val);
  2818. /**
  2819. * wlan_mlme_get_enable_disconnect_roam_offload() - Get emergency roaming
  2820. * Enable/Disable status during deauth/disassoc
  2821. * @psoc: pointer to psoc object
  2822. * @val: Pointer to emergency roaming Enable/Disable status
  2823. * during deauth/disassoc
  2824. *
  2825. * Return: QDF Status
  2826. */
  2827. QDF_STATUS
  2828. wlan_mlme_get_enable_disconnect_roam_offload(struct wlan_objmgr_psoc *psoc,
  2829. bool *val);
  2830. /**
  2831. * wlan_mlme_get_enable_idle_roam() - Get Enable/Disable idle roaming status
  2832. * @psoc: pointer to psoc object
  2833. * @val: Pointer to Enable/Disable idle roaming status
  2834. *
  2835. * Return: QDF Status
  2836. */
  2837. QDF_STATUS
  2838. wlan_mlme_get_enable_idle_roam(struct wlan_objmgr_psoc *psoc, bool *val);
  2839. /**
  2840. * wlan_mlme_get_idle_roam_rssi_delta() - Get idle roam rssi delta
  2841. * @psoc: pointer to psoc object
  2842. * @val: Pointer to idle roam rssi delta
  2843. *
  2844. * Return: QDF Status
  2845. */
  2846. QDF_STATUS
  2847. wlan_mlme_get_idle_roam_rssi_delta(struct wlan_objmgr_psoc *psoc,
  2848. uint32_t *val);
  2849. /**
  2850. * wlan_mlme_get_idle_roam_inactive_time() - Get idle roam inactive time
  2851. * @psoc: pointer to psoc object
  2852. * @val: Pointer to idle roam inactive time
  2853. *
  2854. * Return: QDF Status
  2855. */
  2856. QDF_STATUS
  2857. wlan_mlme_get_idle_roam_inactive_time(struct wlan_objmgr_psoc *psoc,
  2858. uint32_t *val);
  2859. /**
  2860. * wlan_mlme_get_idle_data_packet_count() - Get idle data packet count
  2861. * @psoc: pointer to psoc object
  2862. * @val: Pointer to idle data packet count
  2863. *
  2864. * Return: QDF Status
  2865. */
  2866. QDF_STATUS
  2867. wlan_mlme_get_idle_data_packet_count(struct wlan_objmgr_psoc *psoc,
  2868. uint32_t *val);
  2869. /**
  2870. * wlan_mlme_get_idle_roam_min_rssi() - Get idle roam min rssi
  2871. * @psoc: pointer to psoc object
  2872. * @val: Pointer to idle roam min rssi
  2873. *
  2874. * Return: QDF Status
  2875. */
  2876. QDF_STATUS
  2877. wlan_mlme_get_idle_roam_min_rssi(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  2878. /**
  2879. * wlan_mlme_get_idle_roam_band() - Get idle roam band
  2880. * @psoc: pointer to psoc object
  2881. * @val: Pointer to idle roam band
  2882. *
  2883. * Return: QDF Status
  2884. */
  2885. QDF_STATUS
  2886. wlan_mlme_get_idle_roam_band(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  2887. /**
  2888. * wlan_mlme_get_self_bss_roam() - Get self bss roam enable status
  2889. * @psoc: pointer to psoc object
  2890. * @enable_self_bss_roam: Pointer to self bss roam enable status
  2891. *
  2892. * Return: QDF Status
  2893. */
  2894. QDF_STATUS
  2895. wlan_mlme_get_self_bss_roam(struct wlan_objmgr_psoc *psoc,
  2896. uint8_t *enable_self_bss_roam);
  2897. #else
  2898. static inline QDF_STATUS
  2899. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2900. uint8_t *roam_reason_vsie_enable)
  2901. {
  2902. return QDF_STATUS_E_FAILURE;
  2903. }
  2904. static inline QDF_STATUS
  2905. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2906. uint8_t roam_reason_vsie_enable)
  2907. {
  2908. return QDF_STATUS_E_FAILURE;
  2909. }
  2910. static inline
  2911. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc)
  2912. {
  2913. return 0xFFFF;
  2914. }
  2915. static inline QDF_STATUS
  2916. wlan_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  2917. bool *val)
  2918. {
  2919. *val = false;
  2920. return QDF_STATUS_SUCCESS;
  2921. }
  2922. #endif
  2923. /**
  2924. * wlan_mlme_set_ft_over_ds() - Update ft_over_ds
  2925. * @psoc: pointer to psoc object
  2926. * @ft_over_ds_enable: value of ft_over_ds
  2927. *
  2928. * Return: QDF_STATUS
  2929. */
  2930. QDF_STATUS wlan_mlme_set_ft_over_ds(struct wlan_objmgr_psoc *psoc,
  2931. uint8_t ft_over_ds_enable);
  2932. /**
  2933. * wlan_mlme_get_dfs_chan_ageout_time() - Get the DFS Channel ageout time
  2934. * @psoc: pointer to psoc object
  2935. * @dfs_chan_ageout_time: output pointer to hold configured value of DFS
  2936. * Channel ageout time
  2937. *
  2938. * Return: QDF Status
  2939. */
  2940. QDF_STATUS
  2941. wlan_mlme_get_dfs_chan_ageout_time(struct wlan_objmgr_psoc *psoc,
  2942. uint8_t *dfs_chan_ageout_time);
  2943. #ifdef WLAN_FEATURE_SAE
  2944. /**
  2945. * wlan_mlme_get_sae_assoc_retry_count() - Get the sae assoc retry count
  2946. * @psoc: pointer to psoc object
  2947. * @retry_count: assoc retry count
  2948. *
  2949. * Return: QDF Status
  2950. */
  2951. QDF_STATUS
  2952. wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
  2953. uint8_t *retry_count);
  2954. /**
  2955. * wlan_mlme_get_sae_assoc_retry_count() - Get the sae auth retry count
  2956. * @psoc: pointer to psoc object
  2957. * @retry_count: auth retry count
  2958. *
  2959. * Return: QDF Status
  2960. */
  2961. QDF_STATUS
  2962. wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  2963. uint8_t *retry_count);
  2964. /**
  2965. * wlan_mlme_get_sae_roam_auth_retry_count() - Get the sae roam auth retry count
  2966. * @psoc: pointer to psoc object
  2967. * @retry_count: auth retry count
  2968. *
  2969. * Return: QDF Status
  2970. */
  2971. QDF_STATUS
  2972. wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  2973. uint8_t *retry_count);
  2974. #else
  2975. static inline QDF_STATUS
  2976. wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
  2977. uint8_t *retry_count)
  2978. {
  2979. *retry_count = 0;
  2980. return QDF_STATUS_SUCCESS;
  2981. }
  2982. static inline QDF_STATUS
  2983. wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  2984. uint8_t *retry_count)
  2985. {
  2986. *retry_count = 0;
  2987. return QDF_STATUS_SUCCESS;
  2988. }
  2989. static inline QDF_STATUS
  2990. wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
  2991. uint8_t *retry_count)
  2992. {
  2993. *retry_count = 0;
  2994. return QDF_STATUS_SUCCESS;
  2995. }
  2996. #endif
  2997. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2998. /**
  2999. * wlan_mlme_get_dual_sta_roaming_enabled - API to get if the dual sta
  3000. * roaming support is enabled.
  3001. * @psoc: Pointer to global psoc object
  3002. *
  3003. * Return: True if dual sta roaming feature is enabled else return false
  3004. */
  3005. bool
  3006. wlan_mlme_get_dual_sta_roaming_enabled(struct wlan_objmgr_psoc *psoc);
  3007. #else
  3008. static inline bool
  3009. wlan_mlme_get_dual_sta_roaming_enabled(struct wlan_objmgr_psoc *psoc)
  3010. {
  3011. return false;
  3012. }
  3013. #endif
  3014. /**
  3015. * mlme_store_fw_scan_channels - Update the valid channel list to mlme.
  3016. * @psoc: Pointer to global psoc object
  3017. * @chan_list: Source channel list pointer
  3018. *
  3019. * Currently the channel list is saved to wma_handle to be updated in the
  3020. * PCL command. This cannot be accessed at target_if while sending vdev
  3021. * set pcl command. So save the channel list to mlme.
  3022. *
  3023. * Return: QDF_STATUS
  3024. */
  3025. QDF_STATUS
  3026. mlme_store_fw_scan_channels(struct wlan_objmgr_psoc *psoc,
  3027. tSirUpdateChanList *chan_list);
  3028. /**
  3029. * mlme_get_fw_scan_channels - Copy the saved valid channel
  3030. * list to the provided buffer
  3031. * @psoc: Pointer to global psoc object
  3032. * @freq_list: Pointer to the frequency list buffer to be filled
  3033. * @saved_num_chan: Number of channels filled
  3034. *
  3035. * Return: QDF_STATUS
  3036. */
  3037. QDF_STATUS mlme_get_fw_scan_channels(struct wlan_objmgr_psoc *psoc,
  3038. uint32_t *freq_list,
  3039. uint8_t *saved_num_chan);
  3040. /**
  3041. * wlan_mlme_get_roam_scan_offload_enabled() - Roam scan offload enable or not
  3042. * @psoc: pointer to psoc object
  3043. * @val: Pointer to the value which will be filled for the caller
  3044. *
  3045. * Return: QDF Status
  3046. */
  3047. QDF_STATUS
  3048. wlan_mlme_get_roam_scan_offload_enabled(struct wlan_objmgr_psoc *psoc,
  3049. bool *val);
  3050. /**
  3051. * wlan_mlme_get_roam_bmiss_final_bcnt() - Get roam bmiss final count
  3052. * @psoc: pointer to psoc object
  3053. * @val: Pointer to the value which will be filled for the caller
  3054. *
  3055. * Return: QDF Status
  3056. */
  3057. QDF_STATUS
  3058. wlan_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
  3059. uint8_t *val);
  3060. /**
  3061. * wlan_mlme_get_roam_bmiss_first_bcnt() - Get roam bmiss first count
  3062. * @psoc: pointer to psoc object
  3063. * @val: Pointer to the value which will be filled for the caller
  3064. *
  3065. * Return: QDF Status
  3066. */
  3067. QDF_STATUS
  3068. wlan_mlme_get_roam_bmiss_first_bcnt(struct wlan_objmgr_psoc *psoc,
  3069. uint8_t *val);
  3070. /**
  3071. * wlan_mlme_get_bmiss_timeout_on_wakeup() - Get bmiss timeout
  3072. * @psoc: pointer to psoc object
  3073. * @val: Pointer to the value which will be filled for the caller
  3074. *
  3075. * Return: QDF Status
  3076. */
  3077. QDF_STATUS
  3078. wlan_mlme_get_bmiss_timeout_on_wakeup(struct wlan_objmgr_psoc *psoc,
  3079. uint8_t *val);
  3080. /**
  3081. * wlan_mlme_get_bmiss_timeout_on_sleep() - Get roam conbmiss timeout
  3082. * @psoc: pointer to psoc object
  3083. * @val: Pointer to the value which will be filled for the caller
  3084. *
  3085. * Return: QDF Status
  3086. */
  3087. QDF_STATUS
  3088. wlan_mlme_get_bmiss_timeout_on_sleep(struct wlan_objmgr_psoc *psoc,
  3089. uint8_t *val);
  3090. /**
  3091. * wlan_mlme_adaptive_11r_enabled() - check if adaptive 11r feature is enaled
  3092. * or not
  3093. * @psoc: pointer to psoc object
  3094. *
  3095. * Return: bool
  3096. */
  3097. #ifdef WLAN_ADAPTIVE_11R
  3098. bool wlan_mlme_adaptive_11r_enabled(struct wlan_objmgr_psoc *psoc);
  3099. #else
  3100. static inline bool wlan_mlme_adaptive_11r_enabled(struct wlan_objmgr_psoc *psoc)
  3101. {
  3102. return false;
  3103. }
  3104. #endif
  3105. /**
  3106. * wlan_mlme_get_mawc_enabled() - Get mawc enabled status
  3107. * @psoc: pointer to psoc object
  3108. * @val: Pointer to the value which will be filled for the caller
  3109. *
  3110. * Return: QDF Status
  3111. */
  3112. QDF_STATUS
  3113. wlan_mlme_get_mawc_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3114. /**
  3115. * wlan_mlme_get_mawc_roam_enabled() - Get mawc roam enabled status
  3116. * @psoc: pointer to psoc object
  3117. * @val: Pointer to the value which will be filled for the caller
  3118. *
  3119. * Return: QDF Status
  3120. */
  3121. QDF_STATUS
  3122. wlan_mlme_get_mawc_roam_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3123. /**
  3124. * wlan_mlme_get_mawc_roam_traffic_threshold() - Get mawc traffic threshold
  3125. * @psoc: pointer to psoc object
  3126. * @val: Pointer to the value which will be filled for the caller
  3127. *
  3128. * Return: QDF Status
  3129. */
  3130. QDF_STATUS
  3131. wlan_mlme_get_mawc_roam_traffic_threshold(struct wlan_objmgr_psoc *psoc,
  3132. uint32_t *val);
  3133. /**
  3134. * wlan_mlme_get_mawc_roam_ap_rssi_threshold() - Get AP RSSI threshold for
  3135. * MAWC roaming
  3136. * @psoc: pointer to psoc object
  3137. * @val: Pointer to the value which will be filled for the caller
  3138. *
  3139. * Return: QDF Status
  3140. */
  3141. QDF_STATUS
  3142. wlan_mlme_get_mawc_roam_ap_rssi_threshold(struct wlan_objmgr_psoc *psoc,
  3143. uint32_t *val);
  3144. /**
  3145. * wlan_mlme_get_mawc_roam_rssi_high_adjust() - Get high adjustment value
  3146. * for suppressing scan
  3147. * @psoc: pointer to psoc object
  3148. * @val: Pointer to the value which will be filled for the caller
  3149. *
  3150. * Return: QDF Status
  3151. */
  3152. QDF_STATUS
  3153. wlan_mlme_get_mawc_roam_rssi_high_adjust(struct wlan_objmgr_psoc *psoc,
  3154. uint8_t *val);
  3155. /**
  3156. * wlan_mlme_get_mawc_roam_rssi_low_adjust() - Get low adjustment value
  3157. * for suppressing scan
  3158. * @psoc: pointer to psoc object
  3159. * @val: Pointer to the value which will be filled for the caller
  3160. *
  3161. * Return: QDF Status
  3162. */
  3163. QDF_STATUS
  3164. wlan_mlme_get_mawc_roam_rssi_low_adjust(struct wlan_objmgr_psoc *psoc,
  3165. uint8_t *val);
  3166. /**
  3167. * wlan_mlme_get_bss_load_enabled() - Get bss load based roam trigger
  3168. * enabled status
  3169. * @psoc: pointer to psoc object
  3170. * @val: Pointer to the value which will be filled for the caller
  3171. *
  3172. * Return: QDF Status
  3173. */
  3174. QDF_STATUS
  3175. wlan_mlme_get_bss_load_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  3176. /**
  3177. * wlan_mlme_get_bss_load_threshold() - Get bss load threshold
  3178. * @psoc: pointer to psoc object
  3179. * @val: Pointer to the value which will be filled for the caller
  3180. *
  3181. * Return: QDF Status
  3182. */
  3183. QDF_STATUS
  3184. wlan_mlme_get_bss_load_threshold(struct wlan_objmgr_psoc *psoc, uint32_t *val);
  3185. /**
  3186. * wlan_mlme_get_bss_load_sample_time() - Get bss load sample time
  3187. * @psoc: pointer to psoc object
  3188. * @val: Pointer to the value which will be filled for the caller
  3189. *
  3190. * Return: QDF Status
  3191. */
  3192. QDF_STATUS
  3193. wlan_mlme_get_bss_load_sample_time(struct wlan_objmgr_psoc *psoc,
  3194. uint32_t *val);
  3195. /**
  3196. * wlan_mlme_get_bss_load_rssi_threshold_6ghz() - Get bss load RSSI
  3197. * threshold on 6G
  3198. * @psoc: pointer to psoc object
  3199. * @val: Pointer to the value which will be filled for the caller
  3200. *
  3201. * Return: QDF Status
  3202. */
  3203. QDF_STATUS
  3204. wlan_mlme_get_bss_load_rssi_threshold_6ghz(struct wlan_objmgr_psoc *psoc,
  3205. int32_t *val);
  3206. /**
  3207. * wlan_mlme_get_bss_load_rssi_threshold_5ghz() - Get bss load RSSI
  3208. * threshold on 5G
  3209. * @psoc: pointer to psoc object
  3210. * @val: Pointer to the value which will be filled for the caller
  3211. *
  3212. * Return: QDF Status
  3213. */
  3214. QDF_STATUS
  3215. wlan_mlme_get_bss_load_rssi_threshold_5ghz(struct wlan_objmgr_psoc *psoc,
  3216. int32_t *val);
  3217. /**
  3218. * wlan_mlme_get_bss_load_rssi_threshold_24ghz() - Get bss load RSSI
  3219. * threshold on 2.4G
  3220. * @psoc: pointer to psoc object
  3221. * @val: Pointer to the value which will be filled for the caller
  3222. *
  3223. * Return: QDF Status
  3224. */
  3225. QDF_STATUS
  3226. wlan_mlme_get_bss_load_rssi_threshold_24ghz(struct wlan_objmgr_psoc *psoc,
  3227. int32_t *val);
  3228. /**
  3229. * wlan_mlme_check_chan_param_has_dfs() - Get dfs flag based on
  3230. * channel & channel parameters
  3231. * @pdev: pdev object
  3232. * @ch_params: channel parameters
  3233. * @chan_freq: channel frequency in MHz
  3234. *
  3235. * Return: True for dfs
  3236. */
  3237. bool
  3238. wlan_mlme_check_chan_param_has_dfs(struct wlan_objmgr_pdev *pdev,
  3239. struct ch_params *ch_params,
  3240. uint32_t chan_freq);
  3241. /**
  3242. * wlan_mlme_set_usr_disabled_roaming() - Set user config for roaming disable
  3243. * @psoc: pointer to psoc object
  3244. * @val: user config for roaming disable
  3245. *
  3246. * Return: QDF_STATUS
  3247. */
  3248. QDF_STATUS
  3249. wlan_mlme_set_usr_disabled_roaming(struct wlan_objmgr_psoc *psoc, bool val);
  3250. /**
  3251. * wlan_mlme_get_usr_disabled_roaming() - Get user config for roaming disable
  3252. * @psoc: pointer to psoc object
  3253. * @val: user config for roaming disable
  3254. *
  3255. * Return: QDF_STATUS
  3256. */
  3257. QDF_STATUS
  3258. wlan_mlme_get_usr_disabled_roaming(struct wlan_objmgr_psoc *psoc, bool *val);
  3259. /**
  3260. * mlme_get_opr_rate() - get operational rate
  3261. * @vdev: vdev pointer
  3262. * @dst: buffer to get rates set
  3263. * @len: length of the buffer
  3264. *
  3265. * Return: length of the rates set
  3266. */
  3267. qdf_size_t mlme_get_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3268. qdf_size_t len);
  3269. /**
  3270. * mlme_set_opr_rate() - set operational rate
  3271. * @vdev: vdev pointer
  3272. * @src: pointer to set operational rate
  3273. * @len: length of operational rate
  3274. *
  3275. * Return: QDF_SUCCESS if success
  3276. */
  3277. QDF_STATUS mlme_set_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3278. qdf_size_t len);
  3279. /**
  3280. * mlme_get_ext_opr_rate() - get extended operational rate
  3281. * @vdev: vdev pointer
  3282. * @dst: buffer to get rates set
  3283. * @len: length of the buffer
  3284. *
  3285. * Return: length of the rates set
  3286. */
  3287. qdf_size_t mlme_get_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3288. qdf_size_t len);
  3289. /**
  3290. * mlme_set_ext_opr_rate() - set extended operational rate
  3291. * @vdev: vdev pointer
  3292. * @src: pointer to set extended operational rate
  3293. * @len: length of extended operational rate
  3294. *
  3295. * Return: QDF_SUCCESS if success
  3296. */
  3297. QDF_STATUS mlme_set_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3298. qdf_size_t len);
  3299. /**
  3300. * mlme_clear_ext_opr_rate() - clear extended operational rate
  3301. * @vdev: vdev pointer
  3302. *
  3303. * Return: QDF_SUCCESS if success
  3304. */
  3305. QDF_STATUS mlme_clear_ext_opr_rate(struct wlan_objmgr_vdev *vdev);
  3306. /**
  3307. * mlme_get_mcs_rate() - get MCS based rate
  3308. * @vdev: vdev pointer
  3309. * @dst: buffer to get rates set
  3310. * @len: length of the buffer
  3311. *
  3312. * Return: length of the rates set
  3313. */
  3314. qdf_size_t mlme_get_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
  3315. qdf_size_t len);
  3316. /**
  3317. * mlme_set_mcs_rate() - set MCS based rate
  3318. * @vdev: vdev pointer
  3319. * @src: pointer to set MCS based rate
  3320. * @len: length of MCS based rate
  3321. *
  3322. * Return: QDF_SUCCESS if success
  3323. */
  3324. QDF_STATUS mlme_set_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
  3325. qdf_size_t len);
  3326. /**
  3327. * mlme_clear_mcs_rate() - clear MCS based rate
  3328. * @vdev: vdev pointer
  3329. *
  3330. * Return: QDF_SUCCESS if success
  3331. */
  3332. QDF_STATUS mlme_clear_mcs_rate(struct wlan_objmgr_vdev *vdev);
  3333. /**
  3334. * wlan_mlme_is_sta_mon_conc_supported() - Check if STA + Monitor mode
  3335. * concurrency is supported
  3336. * @psoc: pointer to psoc object
  3337. *
  3338. * Return: True if supported
  3339. */
  3340. bool wlan_mlme_is_sta_mon_conc_supported(struct wlan_objmgr_psoc *psoc);
  3341. #ifdef FEATURE_WDS
  3342. /**
  3343. * wlan_mlme_get_wds_mode() - Check wds mode supported
  3344. * @psoc: pointer to psoc object
  3345. *
  3346. * Return: supported wds mode
  3347. */
  3348. enum wlan_wds_mode
  3349. wlan_mlme_get_wds_mode(struct wlan_objmgr_psoc *psoc);
  3350. #else
  3351. static inline enum wlan_wds_mode
  3352. wlan_mlme_get_wds_mode(struct wlan_objmgr_psoc *psoc)
  3353. {
  3354. return WLAN_WDS_MODE_DISABLED;
  3355. }
  3356. #endif
  3357. #ifdef WLAN_SUPPORT_TWT
  3358. /**
  3359. * mlme_is_twt_enabled() - Get if TWT is enabled via ini.
  3360. * @psoc: pointer to psoc object
  3361. * @val: pointer to the value to be filled
  3362. *
  3363. * Return: True if TWT is enabled else false.
  3364. */
  3365. bool
  3366. mlme_is_twt_enabled(struct wlan_objmgr_psoc *psoc);
  3367. #else
  3368. static inline bool
  3369. mlme_is_twt_enabled(struct wlan_objmgr_psoc *psoc)
  3370. {
  3371. return false;
  3372. }
  3373. #endif /* WLAN_SUPPORT_TWT */
  3374. /**
  3375. * wlan_mlme_is_local_tpe_pref() - Get preference to use local TPE or
  3376. * regulatory TPE values
  3377. * @psoc: pointer to psoc object
  3378. *
  3379. * Return: True if there is local preference, false if there is regulatory
  3380. * preference
  3381. */
  3382. bool wlan_mlme_is_local_tpe_pref(struct wlan_objmgr_psoc *psoc);
  3383. /**
  3384. * wlan_mlme_skip_tpe() - Get preference to not consider TPE in 2G/5G case
  3385. *
  3386. * @psoc: pointer to psoc object
  3387. *
  3388. * Return: True if host should not consider TPE IE in TX power calculation when
  3389. * operating in 2G/5G bands, false if host should always consider TPE IE values
  3390. */
  3391. bool wlan_mlme_skip_tpe(struct wlan_objmgr_psoc *psoc);
  3392. /**
  3393. * wlan_mlme_is_data_stall_recovery_fw_supported() - Check if data stall
  3394. * recovery is supported by fw
  3395. * @psoc: pointer to psoc object
  3396. *
  3397. * Return: True if supported
  3398. */
  3399. bool
  3400. wlan_mlme_is_data_stall_recovery_fw_supported(struct wlan_objmgr_psoc *psoc);
  3401. /**
  3402. * mlme_cfg_get_eht_caps() - Get the EHT capability info
  3403. * @psoc: pointer to psoc object
  3404. * @eht_cap: Caps that needs to be filled.
  3405. *
  3406. * Return: QDF Status
  3407. */
  3408. QDF_STATUS mlme_cfg_get_eht_caps(struct wlan_objmgr_psoc *psoc,
  3409. tDot11fIEeht_cap *eht_cap);
  3410. #ifdef WLAN_FEATURE_11BE_MLO
  3411. /**
  3412. * wlan_mlme_get_sta_mlo_conn_max_num() - get max number of links that sta mlo
  3413. * connection can support
  3414. * @psoc: pointer to psoc object
  3415. *
  3416. * Return: max number of links that sta mlo connection can support
  3417. */
  3418. uint8_t wlan_mlme_get_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc);
  3419. /**
  3420. * wlan_mlme_set_sta_mlo_conn_max_num() - set max number of links that sta mlo
  3421. * connection can support
  3422. * @psoc: pointer to psoc object
  3423. * @value: value to set
  3424. *
  3425. * Return: QDF Status
  3426. */
  3427. QDF_STATUS wlan_mlme_set_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc,
  3428. uint8_t value);
  3429. /**
  3430. * wlan_mlme_get_sta_mlo_conn_band_bmp() - get band bitmap that sta mlo
  3431. * connection can support
  3432. * @psoc: pointer to psoc object
  3433. *
  3434. * Return: band bitmap that sta mlo connection can support
  3435. */
  3436. uint8_t wlan_mlme_get_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc);
  3437. /**
  3438. * wlan_mlme_set_sta_mlo_simultaneous_links() - set mlo simultaneous links
  3439. * @psoc: pointer to psoc object
  3440. * @value: value to set
  3441. *
  3442. * Return: QDF Status
  3443. */
  3444. QDF_STATUS
  3445. wlan_mlme_set_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc,
  3446. uint8_t value);
  3447. /**
  3448. * wlan_mlme_get_sta_mlo_simultaneous_links() - get mlo simultaneous links
  3449. * @psoc: pointer to psoc object
  3450. *
  3451. * Return: number of links
  3452. */
  3453. uint8_t wlan_mlme_get_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc);
  3454. /**
  3455. * wlan_mlme_set_sta_mlo_conn_band_bmp() - set band bitmap that sta mlo
  3456. * connection can support
  3457. * @psoc: pointer to psoc object
  3458. * @value: value to set
  3459. *
  3460. * Return: QDF Status
  3461. */
  3462. QDF_STATUS wlan_mlme_set_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc,
  3463. uint8_t value);
  3464. #else
  3465. static inline QDF_STATUS
  3466. wlan_mlme_set_sta_mlo_conn_max_num(struct wlan_objmgr_psoc *psoc,
  3467. uint8_t value)
  3468. {
  3469. return QDF_STATUS_SUCCESS;
  3470. }
  3471. static inline QDF_STATUS
  3472. wlan_mlme_set_sta_mlo_simultaneous_links(struct wlan_objmgr_psoc *psoc,
  3473. uint8_t value)
  3474. {
  3475. return QDF_STATUS_SUCCESS;
  3476. }
  3477. static inline QDF_STATUS
  3478. wlan_mlme_set_sta_mlo_conn_band_bmp(struct wlan_objmgr_psoc *psoc,
  3479. uint8_t value)
  3480. {
  3481. return QDF_STATUS_SUCCESS;
  3482. }
  3483. #endif
  3484. /**
  3485. * wlan_mlme_set_ba_2k_jump_iot_ap() - Set a flag if ba 2k jump IOT AP is found
  3486. * @vdev: vdev pointer
  3487. * @found: Carries the value true if ba 2k jump IOT AP is found
  3488. *
  3489. * Return: QDF Status
  3490. */
  3491. QDF_STATUS
  3492. wlan_mlme_set_ba_2k_jump_iot_ap(struct wlan_objmgr_vdev *vdev, bool found);
  3493. /**
  3494. * wlan_mlme_is_ba_2k_jump_iot_ap() - Check if ba 2k jump IOT AP is found
  3495. * @vdev: vdev pointer
  3496. *
  3497. * Return: true if ba 2k jump IOT AP is found
  3498. */
  3499. bool
  3500. wlan_mlme_is_ba_2k_jump_iot_ap(struct wlan_objmgr_vdev *vdev);
  3501. /**
  3502. * wlan_mlme_set_last_delba_sent_time() - Cache the last delba sent ts
  3503. * @vdev: vdev pointer
  3504. * @delba_sent_time: Last delba sent timestamp
  3505. *
  3506. * Return: QDF Status
  3507. */
  3508. QDF_STATUS
  3509. wlan_mlme_set_last_delba_sent_time(struct wlan_objmgr_vdev *vdev,
  3510. qdf_time_t delba_sent_time);
  3511. /**
  3512. * wlan_mlme_get_last_delba_sent_time() - Get the last delba sent ts
  3513. * @vdev: vdev pointer
  3514. *
  3515. * Return: Last delba timestamp if cached, 0 otherwise
  3516. */
  3517. qdf_time_t
  3518. wlan_mlme_get_last_delba_sent_time(struct wlan_objmgr_vdev *vdev);
  3519. /**
  3520. * mlme_set_user_ps() - Set the PS user config
  3521. * @vdev: Vdev object pointer
  3522. * @ps_enable: User PS enable
  3523. *
  3524. * Return: QDF_STATUS
  3525. */
  3526. QDF_STATUS mlme_set_user_ps(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
  3527. bool ps_enable);
  3528. /**
  3529. * mlme_get_user_ps() - Set the user ps flag
  3530. * @psoc: Pointer to psoc object
  3531. * @vdev_id: vdev id
  3532. *
  3533. * Return: True if user_ps flag is set
  3534. */
  3535. bool mlme_get_user_ps(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id);
  3536. #ifdef WLAN_FEATURE_P2P_P2P_STA
  3537. /**
  3538. * wlan_mlme_get_p2p_p2p_conc_support() - Get p2p+p2p conc support
  3539. * @psoc: pointer to psoc object
  3540. * @val : value
  3541. *
  3542. * Return: Success/failure
  3543. */
  3544. bool
  3545. wlan_mlme_get_p2p_p2p_conc_support(struct wlan_objmgr_psoc *psoc);
  3546. #else
  3547. static inline bool
  3548. wlan_mlme_get_p2p_p2p_conc_support(struct wlan_objmgr_psoc *psoc)
  3549. {
  3550. return false;
  3551. }
  3552. #endif
  3553. /**
  3554. * mlme_get_vht_ch_width() - get vht channel width of fw capability
  3555. *
  3556. * Return: vht channel width
  3557. */
  3558. enum phy_ch_width mlme_get_vht_ch_width(void);
  3559. /**
  3560. * wlan_mlme_get_mgmt_hw_tx_retry_count() - Get mgmt frame hw tx retry count
  3561. * @psoc: pointer to psoc object
  3562. * @frm_type: frame type of the query
  3563. *
  3564. * Return: hw tx retry count
  3565. */
  3566. uint8_t
  3567. wlan_mlme_get_mgmt_hw_tx_retry_count(struct wlan_objmgr_psoc *psoc,
  3568. enum mlme_cfg_frame_type frm_type);
  3569. /**
  3570. * wlan_mlme_get_tx_retry_multiplier() - Get the tx retry multiplier percentage
  3571. * @psoc: pointer to psoc object
  3572. * @tx_retry_multiplier: pointer to hold user config value of
  3573. * tx_retry_multiplier
  3574. *
  3575. * Return: QDF Status
  3576. */
  3577. QDF_STATUS
  3578. wlan_mlme_get_tx_retry_multiplier(struct wlan_objmgr_psoc *psoc,
  3579. uint32_t *tx_retry_multiplier);
  3580. /**
  3581. * wlan_mlme_get_channel_bonding_5ghz - Get the channel bonding
  3582. * val for 5ghz freq
  3583. * @psoc: pointer to psoc object
  3584. * @value: pointer to the value which will be filled for the caller
  3585. *
  3586. * Return: QDF Status
  3587. */
  3588. QDF_STATUS
  3589. wlan_mlme_get_channel_bonding_5ghz(struct wlan_objmgr_psoc *psoc,
  3590. uint32_t *value);
  3591. /**
  3592. * wlan_mlme_update_ratemask_params() - Update ratemask params
  3593. *
  3594. * @vdev: pointer to vdev object
  3595. * @num_ratemask: number of rate masks
  3596. * @rate_params: pointer to ratemask structure
  3597. *
  3598. * Return: QDF Status
  3599. */
  3600. QDF_STATUS
  3601. wlan_mlme_update_ratemask_params(struct wlan_objmgr_vdev *vdev,
  3602. uint8_t num_ratemask,
  3603. struct config_ratemask_params *rate_params);
  3604. /**
  3605. * wlan_mlme_is_channel_valid() - validate channel frequency
  3606. * @psoc: psoc object manager
  3607. * @chan_freq: channel frequency
  3608. *
  3609. * This function validates channel frequency present in valid channel
  3610. * list or not.
  3611. *
  3612. * Return: true or false
  3613. */
  3614. bool wlan_mlme_is_channel_valid(struct wlan_objmgr_psoc *psoc,
  3615. uint32_t chan_freq);
  3616. #ifdef WLAN_FEATURE_MCC_QUOTA
  3617. /**
  3618. * wlan_mlme_set_user_mcc_quota() - set the user mcc quota in mlme
  3619. * @psoc: pointer to psoc object
  3620. * @quota: pointer to user set mcc quota object
  3621. *
  3622. * Return: QDF Status
  3623. */
  3624. QDF_STATUS wlan_mlme_set_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3625. struct wlan_user_mcc_quota *quota);
  3626. /**
  3627. * wlan_mlme_get_user_mcc_quota() - Get the user mcc quota from mlme
  3628. * @psoc: pointer to psoc object
  3629. * @quota: pointer to user set mcc quota object
  3630. *
  3631. * Return: QDF Status
  3632. */
  3633. QDF_STATUS wlan_mlme_get_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3634. struct wlan_user_mcc_quota *quota);
  3635. /**
  3636. * wlan_mlme_get_user_mcc_duty_cycle_percentage() - Get user mcc duty cycle
  3637. * @psoc: pointer to psoc object
  3638. *
  3639. * Return: MCC duty cycle if MCC exists for the user MCC quota, else 0
  3640. */
  3641. uint32_t
  3642. wlan_mlme_get_user_mcc_duty_cycle_percentage(struct wlan_objmgr_psoc *psoc);
  3643. #else
  3644. static inline QDF_STATUS
  3645. wlan_mlme_set_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3646. struct wlan_user_mcc_quota *quota)
  3647. {
  3648. return QDF_STATUS_SUCCESS;
  3649. }
  3650. static inline QDF_STATUS
  3651. wlan_mlme_get_user_mcc_quota(struct wlan_objmgr_psoc *psoc,
  3652. struct wlan_user_mcc_quota *quota)
  3653. {
  3654. return QDF_STATUS_E_NOSUPPORT;
  3655. }
  3656. static inline uint32_t
  3657. wlan_mlme_get_user_mcc_duty_cycle_percentage(struct wlan_objmgr_psoc *psoc)
  3658. {
  3659. return 0;
  3660. }
  3661. #endif /* WLAN_FEATURE_MCC_QUOTA */
  3662. /**
  3663. * mlme_get_max_he_mcs_idx() - get max mcs index from he cap information
  3664. * @mcs_ch_width: channel width
  3665. * @hecap_rxmcsnssmap: rx mcs map from he cap
  3666. * @hecap_txmcsnssmap: tx mcs map from he cap
  3667. *
  3668. * Return: the maximum MCS supported
  3669. */
  3670. uint8_t mlme_get_max_he_mcs_idx(enum phy_ch_width mcs_ch_width,
  3671. u_int16_t *hecap_rxmcsnssmap,
  3672. u_int16_t *hecap_txmcsnssmap);
  3673. /**
  3674. * mlme_get_max_vht_mcs_idx() - get max mcs index from vht cap information
  3675. * @rx_vht_mcs_map: rx mcs map from vht cap
  3676. * @tx_vht_mcs_map: tx mcs map from vht cap
  3677. *
  3678. * Return: the maximum MCS supported
  3679. */
  3680. uint8_t mlme_get_max_vht_mcs_idx(u_int16_t rx_vht_mcs_map,
  3681. u_int16_t tx_vht_mcs_map);
  3682. #ifdef WLAN_FEATURE_SON
  3683. /**
  3684. * mlme_set_vdev_max_mcs_idx() - Save max mcs index of vdev
  3685. * @vdev: pointer to vdev object
  3686. * @max_mcs_idx: max_mcs_idx to save
  3687. *
  3688. * Return: QDF Status
  3689. */
  3690. QDF_STATUS mlme_save_vdev_max_mcs_idx(struct wlan_objmgr_vdev *vdev,
  3691. uint8_t max_mcs_idx);
  3692. /**
  3693. * mlme_get_vdev_max_mcs_idx() - Get max mcs index of vdev
  3694. * @vdev: pointer to vdev object
  3695. *
  3696. * Return max mcs index of vdev
  3697. */
  3698. uint8_t mlme_get_vdev_max_mcs_idx(struct wlan_objmgr_vdev *vdev);
  3699. #endif /* WLAN_FEATURE_SON */
  3700. /**
  3701. * wlan_mlme_set_safe_mode_enable() - set safe_mode_enable flag
  3702. * based on value set by user space.
  3703. *
  3704. * @psoc: psoc context
  3705. * @safe_mode_enable: safe mode enabled or not
  3706. *
  3707. * Return: none
  3708. */
  3709. void wlan_mlme_set_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
  3710. bool safe_mode_enable);
  3711. /**
  3712. * wlan_mlme_get_safe_mode_enable() - get safe_mode_enable set by user
  3713. * space
  3714. *
  3715. * @psoc: psoc context
  3716. * @safe_mode_enable: safe mode enabled or not
  3717. *
  3718. * Return: none
  3719. */
  3720. void wlan_mlme_get_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
  3721. bool *safe_mode_enable);
  3722. /**
  3723. * wlan_mlme_get_6g_ap_power_type() - get the power type of the
  3724. * vdev operating on 6GHz.
  3725. *
  3726. * @vdev: vdev context
  3727. *
  3728. * Return: 6g_power_type
  3729. */
  3730. uint32_t wlan_mlme_get_6g_ap_power_type(struct wlan_objmgr_vdev *vdev);
  3731. QDF_STATUS wlan_connect_hw_mode_change_resp(struct wlan_objmgr_pdev *pdev,
  3732. uint8_t vdev_id,
  3733. wlan_cm_id cm_id,
  3734. QDF_STATUS status);
  3735. /**
  3736. * wlan_mlme_get_ch_width_from_phymode() - Convert phymode to ch_width
  3737. * @phy_mode: Phy mode
  3738. *
  3739. * Return: enum phy_ch_width
  3740. */
  3741. enum phy_ch_width
  3742. wlan_mlme_get_ch_width_from_phymode(enum wlan_phymode phy_mode);
  3743. /**
  3744. * wlan_mlme_get_peer_ch_width() - get ch_width of the given peer
  3745. * @psoc: psoc context
  3746. * @mac: peer mac
  3747. *
  3748. * Return: enum phy_ch_width
  3749. */
  3750. enum phy_ch_width
  3751. wlan_mlme_get_peer_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t *mac);
  3752. #if defined(WLAN_FEATURE_SR)
  3753. /**
  3754. * wlan_mlme_get_sr_enable_modes() - get mode for which SR is enabled
  3755. *
  3756. * @psoc: psoc context
  3757. * @val: pointer to hold the value of SR(Spatial Reuse) enable modes
  3758. *
  3759. * Return: void
  3760. */
  3761. void
  3762. wlan_mlme_get_sr_enable_modes(struct wlan_objmgr_psoc *psoc, uint8_t *val);
  3763. #endif
  3764. /**
  3765. * wlan_mlme_set_edca_pifs_param() - set edca/pifs param for ll sap
  3766. * @ep: pointer to wlan_edca_pifs_param_ie
  3767. * @type: edca_param_type
  3768. *
  3769. * Return: None
  3770. */
  3771. void
  3772. wlan_mlme_set_edca_pifs_param(struct wlan_edca_pifs_param_ie *ep,
  3773. enum host_edca_param_type type);
  3774. /**
  3775. * wlan_mlme_stats_get_periodic_display_time() - get display time
  3776. * @psoc: pointer to psoc object
  3777. * @periodic_display_time: buffer to hold value
  3778. *
  3779. * Return: QDF Status
  3780. */
  3781. QDF_STATUS
  3782. wlan_mlme_stats_get_periodic_display_time(struct wlan_objmgr_psoc *psoc,
  3783. uint32_t *periodic_display_time);
  3784. #endif /* _WLAN_MLME_API_H_ */