wlan_mlme_api.h 122 KB

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