wlan_mlme_api.h 92 KB

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