wlan_mlme_api.h 104 KB

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