wlan_mlme_api.h 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501
  1. /*
  2. * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: declare public APIs exposed by the mlme component
  20. */
  21. #ifndef _WLAN_MLME_API_H_
  22. #define _WLAN_MLME_API_H_
  23. #include <wlan_mlme_public_struct.h>
  24. #include <wlan_objmgr_psoc_obj.h>
  25. #include <wlan_cmn.h>
  26. #include "sme_api.h"
  27. /**
  28. * wlan_mlme_get_cfg_str() - Copy the uint8_t array for a particular CFG
  29. * @dst: pointer to the destination buffer.
  30. * @cfg_str: pointer to the cfg string structure
  31. * @len: length to be copied
  32. *
  33. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  34. */
  35. QDF_STATUS wlan_mlme_get_cfg_str(uint8_t *dst, struct mlme_cfg_str *cfg_str,
  36. qdf_size_t *len);
  37. /**
  38. * wlan_mlme_set_cfg_str() - Set values for a particular CFG
  39. * @src: pointer to the source buffer.
  40. * @dst_cfg_str: pointer to the cfg string structure to be modified
  41. * @len: length to be written
  42. *
  43. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  44. */
  45. QDF_STATUS wlan_mlme_set_cfg_str(uint8_t *src, struct mlme_cfg_str *dst_cfg_str,
  46. qdf_size_t len);
  47. /**
  48. * wlan_mlme_get_edca_params() - get the EDCA parameters corresponding to the
  49. * edca profile access category
  50. * @edca_params: pointer to mlme edca parameters structure
  51. * @data: data to which the parameter is to be copied
  52. * @edca_ac: edca ac type enum passed to get the cfg value
  53. *
  54. * Return QDF_STATUS_SUCCESS or QDF_STATUS_E_FAILURE
  55. *
  56. */
  57. QDF_STATUS wlan_mlme_get_edca_params(struct wlan_mlme_edca_params *edca_params,
  58. uint8_t *data, enum e_edca_type edca_ac);
  59. /**
  60. * wlan_mlme_update_cfg_with_tgt_caps() - Update mlme cfg with tgt caps
  61. * @psoc: pointer to psoc object
  62. * @tgt_caps: Pointer to the mlme related capability structure
  63. *
  64. * Return: None
  65. */
  66. void
  67. wlan_mlme_update_cfg_with_tgt_caps(struct wlan_objmgr_psoc *psoc,
  68. struct mlme_tgt_caps *tgt_caps);
  69. /*
  70. * mlme_get_wep_key() - get the wep key to process during auth frame
  71. * @vdev: VDEV object for which the wep key is being requested
  72. * @wep_params: cfg wep parameters structure
  73. * @wep_key_id: default key number
  74. * @default_key: default key to be copied
  75. * @key_len: length of the key to copy
  76. *
  77. * Return QDF_STATUS
  78. */
  79. QDF_STATUS mlme_get_wep_key(struct wlan_objmgr_vdev *vdev,
  80. struct wlan_mlme_wep_cfg *wep_params,
  81. enum wep_key_id wep_keyid, uint8_t *default_key,
  82. qdf_size_t *key_len);
  83. /**
  84. * mlme_set_wep_key() - set the wep keys during auth
  85. * @wep_params: cfg wep parametrs structure
  86. * @wep_key_id: default key number that needs to be copied
  87. * @key_to_set: destination buffer to be copied
  88. * @len: size to be copied
  89. */
  90. QDF_STATUS mlme_set_wep_key(struct wlan_mlme_wep_cfg *wep_params,
  91. enum wep_key_id wep_keyid, uint8_t *key_to_set,
  92. qdf_size_t len);
  93. /**
  94. * wlan_mlme_get_tx_power() - Get the max tx power in particular band
  95. * @psoc: pointer to psoc object
  96. * @band: 2ghz/5ghz band
  97. *
  98. * Return: value of tx power in the respective band
  99. */
  100. uint8_t wlan_mlme_get_tx_power(struct wlan_objmgr_psoc *psoc,
  101. enum band_info band);
  102. /**
  103. * wlan_mlme_get_power_usage() - Get the power usage info
  104. * @psoc: pointer to psoc object
  105. *
  106. * Return: pointer to character array of power usage
  107. */
  108. char *wlan_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc);
  109. /**
  110. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  111. * @psoc: pointer to psoc object
  112. * @value: pointer to the value which will be filled for the caller
  113. *
  114. * Return: QDF Status
  115. */
  116. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  117. struct mlme_ht_capabilities_info
  118. *ht_cap_info);
  119. /**
  120. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  121. * @psoc: pointer to psoc object
  122. * @pbuf: pointer of the buff which will be filled for the caller
  123. * @plen: pointer of max buffer length
  124. * actual length will be returned at this address
  125. * This function gets manufacturer name
  126. *
  127. * Return: QDF_STATUS_SUCCESS - in case of success
  128. */
  129. QDF_STATUS
  130. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  131. uint8_t *pbuf, uint32_t *plen);
  132. /**
  133. * wlan_mlme_get_model_number() - get model number
  134. * @psoc: pointer to psoc object
  135. * @pbuf: pointer of the buff which will be filled for the caller
  136. * @plen: pointer of max buffer length
  137. * actual length will be returned at this address
  138. * This function gets model number
  139. *
  140. * Return: QDF_STATUS_SUCCESS - in case of success
  141. */
  142. QDF_STATUS
  143. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  144. uint8_t *pbuf, uint32_t *plen);
  145. /**
  146. * wlan_mlme_get_model_name() - get model name
  147. * @psoc: pointer to psoc object
  148. * @pbuf: pointer of the buff which will be filled for the caller
  149. * @plen: pointer of max buffer length
  150. * actual length will be returned at this address
  151. * This function gets model name
  152. *
  153. * Return: QDF_STATUS_SUCCESS - in case of success
  154. */
  155. QDF_STATUS
  156. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  157. uint8_t *pbuf, uint32_t *plen);
  158. /**
  159. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  160. * @psoc: pointer to psoc object
  161. * @pbuf: pointer of the buff which will be filled for the caller
  162. * @plen: pointer of max buffer length
  163. * actual length will be returned at this address
  164. * This function gets manufacture product name
  165. *
  166. * Return: QDF_STATUS_SUCCESS - in case of success
  167. */
  168. QDF_STATUS
  169. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  170. uint8_t *pbuf, uint32_t *plen);
  171. /**
  172. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  173. * @psoc: pointer to psoc object
  174. * @pbuf: pointer of the buff which will be filled for the caller
  175. * @plen: pointer of max buffer length
  176. * actual length will be returned at this address
  177. * This function gets manufacture product version
  178. *
  179. * Return: QDF_STATUS_SUCCESS - in case of success
  180. */
  181. QDF_STATUS
  182. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  183. uint8_t *pbuf, uint32_t *plen);
  184. /**
  185. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  186. * @psoc: pointer to psoc object
  187. * @value: Value that needs to be set from the caller
  188. *
  189. * Return: QDF Status
  190. */
  191. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  192. struct mlme_ht_capabilities_info
  193. ht_cap_info);
  194. /**
  195. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  196. * @psoc: pointer to psoc object
  197. * @value: pointer to the value where the max_amsdu num is to be filled
  198. *
  199. * Return: QDF_STATUS
  200. */
  201. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  202. uint8_t *value);
  203. /**
  204. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  205. * @psoc: pointer to psoc object
  206. * @value: value to be set for max_amsdu_num
  207. *
  208. * Return: QDF_STATUS
  209. */
  210. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  211. uint8_t value);
  212. /**
  213. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  214. * @psoc: pointer to psoc object
  215. * @value: pointer to the value where the ht mpdu density is to be filled
  216. *
  217. * Return: QDF_STATUS
  218. */
  219. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  220. uint8_t *value);
  221. /**
  222. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  223. * @psoc: pointer to psoc object
  224. * @value: value to be set for ht mpdu density
  225. *
  226. * Return: QDF_STATUS
  227. */
  228. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  229. uint8_t value);
  230. /**
  231. * wlan_mlme_get_band_capability() - Get the Band capability config
  232. * @psoc: pointer to psoc object
  233. * @band_capability: Pointer to the variable from caller
  234. *
  235. * Return: QDF Status
  236. */
  237. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  238. uint8_t *band_capability);
  239. /**
  240. * wlan_mlme_set_band_capability() - Set the Band capability config
  241. * @psoc: pointer to psoc object
  242. * @band_capability: Value to be set from the caller
  243. *
  244. * Return: QDF Status
  245. */
  246. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  247. uint8_t band_capability);
  248. /**
  249. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  250. * @psoc: pointer to psoc object
  251. * @prevent_link_down: Pointer to the variable from caller
  252. *
  253. * Return: QDF Status
  254. */
  255. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  256. bool *prevent_link_down);
  257. /**
  258. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  259. * @psoc: pointer to psoc object
  260. * @select_5ghz_margin: Pointer to the variable from caller
  261. *
  262. * Return: QDF Status
  263. */
  264. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  265. uint8_t *select_5ghz_margin);
  266. /**
  267. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  268. * @psoc: pointer to psoc object
  269. * @rtt_mac_randomization: Pointer to the variable from caller
  270. *
  271. * Return: QDF Status
  272. */
  273. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  274. bool *rtt_mac_randomization);
  275. /**
  276. * wlan_mlme_get_crash_inject() - Get the crash inject config
  277. * @psoc: pointer to psoc object
  278. * @crash_inject: Pointer to the variable from caller
  279. *
  280. * Return: QDF Status
  281. */
  282. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  283. bool *crash_inject);
  284. /**
  285. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  286. * @psoc: pointer to psoc object
  287. * @lpass_support: Pointer to the variable from caller
  288. *
  289. * Return: QDF Status
  290. */
  291. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  292. bool *lpass_support);
  293. /**
  294. * wlan_mlme_get_self_recovery() - Get the self recovery config
  295. * @psoc: pointer to psoc object
  296. * @self_recovery: Pointer to the variable from caller
  297. *
  298. * Return: QDF Status
  299. */
  300. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  301. bool *self_recovery);
  302. /**
  303. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  304. * @psoc: pointer to psoc object
  305. * @sub_20_chan_width: Pointer to the variable from caller
  306. *
  307. * Return: QDF Status
  308. */
  309. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  310. uint8_t *sub_20_chan_width);
  311. /**
  312. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  313. * @psoc: pointer to psoc object
  314. * @fw_timeout_crash: Pointer to the variable from caller
  315. *
  316. * Return: QDF Status
  317. */
  318. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  319. bool *fw_timeout_crash);
  320. /**
  321. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  322. * @psoc: pointer to psoc object
  323. * @ito_repeat_count: Pointer to the variable from caller
  324. *
  325. * Return: QDF Status
  326. */
  327. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  328. uint8_t *ito_repeat_count);
  329. /**
  330. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  331. * @psoc: pointer to psoc object
  332. * @value: Value that needs to be set from the caller
  333. *
  334. * Return: QDF Status
  335. */
  336. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  337. bool *value);
  338. /**
  339. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  340. * @psoc: pointer to psoc object
  341. * @value: Value that needs to be set from the caller
  342. *
  343. * Return: QDF Status
  344. */
  345. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  346. uint32_t *value);
  347. /**
  348. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  349. * @psoc: pointer to psoc object
  350. * @value: Value that needs to be set from the caller
  351. *
  352. * Return: QDF Status
  353. */
  354. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  355. bool *value);
  356. /**
  357. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  358. * acs support for dfs ltecoex
  359. * @psoc: pointer to psoc object
  360. * @value: Value that needs to be set from the caller
  361. *
  362. * Return: QDF Status
  363. */
  364. QDF_STATUS
  365. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  366. bool *value);
  367. /**
  368. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  369. * @psoc: pointer to psoc object
  370. * @value: Value that needs to be set from the caller
  371. *
  372. * Return: QDF Status
  373. */
  374. QDF_STATUS
  375. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  376. bool *value);
  377. /**
  378. *
  379. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  380. * override flag is set.
  381. * @psoc: pointer to psoc object
  382. * @sme_config - Sme config struct
  383. *
  384. * Return: QDF Status
  385. */
  386. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  387. bool *value);
  388. /**
  389. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  390. * @psoc: pointer to psoc object
  391. * @value: Value that needs to be set from the caller
  392. *
  393. * Return: QDF Status
  394. */
  395. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  396. bool *value);
  397. /**
  398. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  399. * @psoc: pointer to psoc object
  400. * @value: Value that needs to be set from the caller
  401. *
  402. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  403. */
  404. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  405. bool *value);
  406. /**
  407. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  408. * @psoc: pointer to psoc object
  409. * @value: Value that caller needs to get
  410. *
  411. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  412. */
  413. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  414. uint8_t *value);
  415. /**
  416. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  417. * @psoc: pointer to psoc object
  418. * @value: Value that needs to be set from the caller
  419. *
  420. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  421. */
  422. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  423. uint16_t *value);
  424. /**
  425. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  426. * @psoc: pointer to psoc object
  427. * @value: Value that caller needs to get
  428. *
  429. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  430. */
  431. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  432. uint16_t *value);
  433. /**
  434. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  435. * flag
  436. * @psoc: pointer to psoc object
  437. * @value: Value that needs to be set from the caller
  438. *
  439. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  440. */
  441. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  442. bool *value);
  443. /**
  444. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  445. * @psoc: pointer to psoc object
  446. * @session_id: vdev_id
  447. *
  448. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  449. */
  450. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  451. uint8_t session_id);
  452. /**
  453. * wlan_mlme_get_listen_interval() - Get listen interval
  454. * @psoc: pointer to psoc object
  455. * @value: Pointer to value that needs to be filled by MLME
  456. *
  457. * Return: QDF Status
  458. */
  459. QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
  460. int *value);
  461. /**
  462. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  463. * @psoc: pointer to psoc object
  464. * @value: Value that needs to be set from the caller
  465. *
  466. * Return: QDF Status
  467. */
  468. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  469. int value);
  470. /**
  471. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  472. * @psoc: pointer to psoc object
  473. * @value: Value that needs to be set from the caller
  474. *
  475. * Return: QDF Status
  476. */
  477. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  478. int value);
  479. /**
  480. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  481. * @psoc: pointer to psoc object
  482. * @value: Value that needs to be set from the caller
  483. *
  484. * Return: QDF Status
  485. */
  486. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  487. bool *value);
  488. /**
  489. * wlan_mlme_set_sap_get_peer_info() - set the sap get peer info
  490. * @psoc: pointer to psoc object
  491. * @value: value to overwrite the sap get peer info
  492. *
  493. * Return: QDF Status
  494. */
  495. QDF_STATUS wlan_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  496. bool value);
  497. /**
  498. * wlan_mlme_get_sap_bcast_deauth_enabled() - get the enable/disable value
  499. * for broadcast deauth in sap
  500. * @psoc: pointer to psoc object
  501. * @value: Value that needs to get from the caller
  502. *
  503. * Return: QDF Status
  504. */
  505. QDF_STATUS
  506. wlan_mlme_get_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
  507. bool *value);
  508. /**
  509. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  510. * channels
  511. * @psoc: pointer to psoc object
  512. * @value: Value that needs to be set from the caller
  513. *
  514. * Return: QDF Status
  515. */
  516. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  517. bool *value);
  518. /**
  519. * wlan_mlme_is_6g_sap_fd_enabled() - get the enable/disable value
  520. * for 6g sap fils discovery
  521. * @psoc: pointer to psoc object
  522. * @value: Value that needs to get from the caller
  523. *
  524. * Return: QDF Status
  525. */
  526. QDF_STATUS
  527. wlan_mlme_is_6g_sap_fd_enabled(struct wlan_objmgr_psoc *psoc,
  528. bool *value);
  529. /**
  530. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  531. * @psoc: pointer to psoc object
  532. * @value: Value that needs to be set from the caller
  533. *
  534. * Return: QDF Status
  535. */
  536. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  537. int *value);
  538. /**
  539. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  540. * @psoc: pointer to psoc object
  541. * @value: Value that needs to be set from the caller
  542. *
  543. * Return: QDF Status
  544. */
  545. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  546. int value);
  547. /**
  548. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  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_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  555. int *value);
  556. /**
  557. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  558. * reorder buffs.
  559. * @psoc: pointer to psoc object
  560. * @value: Value that needs to be set from the caller
  561. *
  562. * Return: QDF Status
  563. */
  564. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  565. *psoc, int *value);
  566. /**
  567. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  568. * switch beacon count
  569. * @psoc: pointer to psoc object
  570. * @value: Value that needs to be set from the caller
  571. *
  572. * Return: QDF Status
  573. */
  574. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  575. int *value);
  576. /**
  577. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  578. * switch mode
  579. * @psoc: pointer to psoc object
  580. * @value: Value that needs to be set from the caller
  581. *
  582. * Return: QDF Status
  583. */
  584. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  585. bool *value);
  586. /**
  587. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  588. * restart
  589. * @psoc: pointer to psoc object
  590. * @value: Value that needs to be set from the caller
  591. *
  592. * Return: QDF Status
  593. */
  594. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  595. bool *value);
  596. /**
  597. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  598. * restart
  599. * @psoc: pointer to psoc object
  600. * @value: Value that needs to be set from the caller
  601. *
  602. * Return: QDF Status
  603. */
  604. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  605. uint8_t *value);
  606. /**
  607. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  608. * restart
  609. * @psoc: pointer to psoc object
  610. * @value: Value that needs to be set from the caller
  611. *
  612. * Return: QDF Status
  613. */
  614. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  615. uint8_t *value);
  616. /**
  617. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  618. * restart
  619. * @psoc: pointer to psoc object
  620. * @value: Value that needs to be set from the caller
  621. *
  622. * Return: QDF Status
  623. */
  624. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  625. bool *value);
  626. /**
  627. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  628. * beacon interval
  629. * @psoc: pointer to psoc object
  630. * @value: Value that needs to be set from the caller
  631. *
  632. * Return: QDF Status
  633. */
  634. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  635. *psoc, int *value);
  636. /**
  637. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  638. * enabled beacon interval
  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_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  645. *psoc, bool *value);
  646. /**
  647. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  648. *
  649. * @psoc: pointer to psoc object
  650. * @value: Value that needs to be set from the caller
  651. *
  652. * Return: QDF Status
  653. */
  654. QDF_STATUS wlan_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  655. *psoc, bool *value);
  656. /**
  657. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  658. *
  659. * @psoc: pointer to psoc object
  660. * @value: Value that needs to be set from the caller
  661. *
  662. * Return: QDF Status
  663. */
  664. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  665. *psoc, bool *value);
  666. /**
  667. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  668. *
  669. * @psoc: pointer to psoc object
  670. * @value: pointer to the value which will be filled for the caller
  671. *
  672. * Return: QDF Status
  673. */
  674. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  675. bool *value);
  676. /**
  677. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  678. *
  679. * @psoc: pointer to psoc object
  680. * @value: pointer to the value which will be filled for the caller
  681. *
  682. * Return: QDF Status
  683. */
  684. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  685. bool *value);
  686. /**
  687. * wlan_mlme_set_go_11ac_override() - set override 11ac bandwdith for P2P GO
  688. *
  689. * @psoc: pointer to psoc object
  690. * @value: pointer to the value which will be filled for the caller
  691. *
  692. * Return: QDF Status
  693. */
  694. QDF_STATUS wlan_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  695. bool value);
  696. /**
  697. * wlan_mlme_set_sap_11ac_override() - set override 11ac bandwdith for SAP
  698. *
  699. * @psoc: pointer to psoc object
  700. * @value: pointer to the value which will be filled for the caller
  701. *
  702. * Return: QDF Status
  703. */
  704. QDF_STATUS wlan_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  705. bool value);
  706. /**
  707. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  708. * info for STA
  709. * @psoc: pointer to psoc object
  710. * @value: pointer to the value which will be filled for the caller
  711. *
  712. * Return: QDF Status
  713. */
  714. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  715. bool *value);
  716. /**
  717. * wlan_mlme_get_bigtk_support() - Get the BIGTK support
  718. * @psoc: pointer to psoc object
  719. * @value: pointer to the value which will be filled for the caller
  720. *
  721. * Return: QDF Status
  722. */
  723. QDF_STATUS wlan_mlme_get_bigtk_support(struct wlan_objmgr_psoc *psoc,
  724. bool *value);
  725. /**
  726. * wlan_mlme_get_host_scan_abort_support() - Get support for stop all host
  727. * scans service capability.
  728. * @psoc: PSOC object pointer
  729. *
  730. * Return: True if capability is supported, else False
  731. */
  732. bool wlan_mlme_get_host_scan_abort_support(struct wlan_objmgr_psoc *psoc);
  733. /**
  734. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  735. * info for SAP
  736. * @psoc: pointer to psoc object
  737. * @value: pointer to the value which will be filled for the caller
  738. *
  739. * Return: QDF Status
  740. */
  741. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  742. bool *value);
  743. /**
  744. * wlan_mlme_update_oce_flags() - Update the oce flags to FW
  745. * @pdev: pointer to pdev object
  746. *
  747. * Return: void
  748. */
  749. void wlan_mlme_update_oce_flags(struct wlan_objmgr_pdev *pdev);
  750. #ifdef WLAN_FEATURE_11AX
  751. /**
  752. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  753. * @psoc: pointer to psoc object
  754. * @value: Value that needs to be set from the caller
  755. *
  756. * Return: QDF Status
  757. */
  758. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  759. uint32_t *value);
  760. /**
  761. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  762. * @psoc: pointer to psoc object
  763. * @value: Value that needs to be set from the caller
  764. *
  765. * Return: QDF Status
  766. */
  767. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  768. uint32_t value);
  769. /**
  770. * mlme_cfg_get_he_caps() - Get the HE capability info
  771. * @psoc: pointer to psoc object
  772. * @he_cap: Caps that needs to be filled.
  773. *
  774. * Return: QDF Status
  775. */
  776. QDF_STATUS mlme_cfg_get_he_caps(struct wlan_objmgr_psoc *psoc,
  777. tDot11fIEhe_cap *he_cap);
  778. /**
  779. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  780. * @psoc: pointer to psoc object
  781. * @value: Value that needs to be set from the caller
  782. *
  783. * Return: QDF Status
  784. */
  785. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  786. uint8_t *value);
  787. /**
  788. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  789. * @psoc: pointer to psoc object
  790. * @value: Value that needs to be set from the caller
  791. *
  792. * Return: QDF Status
  793. */
  794. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  795. uint8_t *value);
  796. /**
  797. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  798. *
  799. * @psoc: pointer to psoc object
  800. * @cfg: pointer to config params from target
  801. *
  802. * This api to be used by callers to update
  803. * he caps in mlme.
  804. *
  805. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  806. */
  807. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  808. struct wma_tgt_cfg *cfg);
  809. #endif
  810. /**
  811. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  812. * @psoc: pointer to psoc object
  813. *
  814. * Return: is_ap_prot_enabled flag
  815. */
  816. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  817. /**
  818. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  819. * @psoc: pointer to psoc object
  820. * @value: pointer to the value which needs to be filled for the caller
  821. *
  822. * Return: QDF Status
  823. */
  824. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  825. uint16_t *value);
  826. /**
  827. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  828. * enabled/disabled
  829. * @psoc: pointer to psoc object
  830. * @value: pointer to the value which needs to be filled for the caller
  831. *
  832. * Return: QDF Status
  833. */
  834. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  835. bool *value);
  836. /**
  837. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  838. * @psoc: pointer to psoc object
  839. * @value: pointer to the value which will be filled for the caller
  840. *
  841. * Return: QDF Status
  842. */
  843. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  844. uint32_t *value);
  845. /**
  846. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  847. * @psoc: pointer to psoc object
  848. * @value: Value that needs to be set from the caller
  849. *
  850. * Return: QDF Status
  851. */
  852. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  853. uint32_t value);
  854. /**
  855. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  856. * config
  857. * @psoc: pointer to psoc object
  858. * @value: pointer to the value which will be filled for the caller
  859. *
  860. * Return: QDF Status
  861. */
  862. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  863. uint32_t *value);
  864. /**
  865. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  866. * config
  867. * @psoc: pointer to psoc object
  868. * @value: Value that needs to be set from the caller
  869. *
  870. * Return: QDF Status
  871. */
  872. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  873. uint32_t value);
  874. /**
  875. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  876. * @psoc: pointer to psoc object
  877. * @value: pointer to the value which will be filled for the caller
  878. *
  879. * Return: QDF Status
  880. */
  881. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  882. bool *value);
  883. /**
  884. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  885. * @psoc: pointer to psoc object
  886. * @value: value that needs to be set from the caller
  887. *
  888. * Return: QDF Status
  889. */
  890. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  891. bool value);
  892. /**
  893. * wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  894. * of UAPSD auto trigger
  895. * @psoc: pointer to psoc object
  896. * @value: Value that needs to be set from the caller
  897. *
  898. * Return: None
  899. */
  900. void wlan_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  901. uint32_t *value);
  902. /**
  903. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  904. * for VI
  905. * @psoc: pointer to psoc object
  906. * @value: Value that needs to be set from the caller
  907. *
  908. * Return: QDF Status
  909. */
  910. QDF_STATUS
  911. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  912. /**
  913. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  914. * MSDU size for VI
  915. * @psoc: pointer to psoc object
  916. * @value: Value that needs to be set from the caller
  917. *
  918. * Return: QDF Status
  919. */
  920. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  921. uint16_t *value);
  922. /**
  923. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  924. * rate for VI
  925. * @psoc: pointer to psoc object
  926. * @value: Value that needs to be set from the caller
  927. *
  928. * Return: QDF Status
  929. */
  930. QDF_STATUS
  931. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  932. uint32_t *value);
  933. /**
  934. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  935. * rate for VI
  936. * @psoc: pointer to psoc object
  937. * @value: Value that needs to be set from the caller
  938. *
  939. * Return: QDF Status
  940. */
  941. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  942. uint32_t *value);
  943. /**
  944. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  945. * allowance for VI
  946. * @psoc: pointer to psoc object
  947. * @value: Value that needs to be set from the caller
  948. *
  949. * Return: QDF Status
  950. */
  951. QDF_STATUS
  952. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  953. /**
  954. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  955. * interval for video
  956. * @psoc: pointer to psoc object
  957. * @value: pointer to the value which will be filled for the caller
  958. *
  959. * Return: QDF Status
  960. */
  961. QDF_STATUS
  962. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  963. uint32_t *value);
  964. /**
  965. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  966. * interval for video
  967. * @psoc: pointer to psoc object
  968. * @value: pointer to the value which will be filled for the caller
  969. *
  970. * Return: QDF Status
  971. */
  972. QDF_STATUS
  973. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  974. uint32_t *value);
  975. /**
  976. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  977. * for BE
  978. * @psoc: pointer to psoc object
  979. * @value: Value that needs to be set from the caller
  980. *
  981. * Return: QDF Status
  982. */
  983. QDF_STATUS
  984. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  985. uint8_t *value);
  986. /**
  987. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  988. * MSDU size for BE
  989. * @psoc: pointer to psoc object
  990. * @value: Value that needs to be set from the caller
  991. *
  992. * Return: QDF Status
  993. */
  994. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  995. uint16_t *value);
  996. /**
  997. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  998. * rate for BE
  999. * @psoc: pointer to psoc object
  1000. * @value: Value that needs to be set from the caller
  1001. *
  1002. * Return: QDF Status
  1003. */
  1004. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1005. uint32_t *value);
  1006. /**
  1007. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1008. * rate for BE
  1009. * @psoc: pointer to psoc object
  1010. * @value: Value that needs to be set from the caller
  1011. *
  1012. * Return: QDF Status
  1013. */
  1014. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1015. uint32_t *value);
  1016. /**
  1017. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1018. * allowance for BE
  1019. * @psoc: pointer to psoc object
  1020. * @value: Value that needs to be set from the caller
  1021. *
  1022. * Return: QDF Status
  1023. */
  1024. QDF_STATUS
  1025. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1026. /**
  1027. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1028. * interval for BE
  1029. * @psoc: pointer to psoc object
  1030. * @value: pointer to the value which will be filled for the caller
  1031. *
  1032. * Return: QDF Status
  1033. */
  1034. QDF_STATUS
  1035. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1036. uint32_t *value);
  1037. /**
  1038. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1039. * interval for BE
  1040. * @psoc: pointer to psoc object
  1041. * @value: pointer to the value which will be filled for the caller
  1042. *
  1043. * Return: QDF Status
  1044. */
  1045. QDF_STATUS
  1046. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1047. uint32_t *value);
  1048. /**
  1049. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1050. * for BK
  1051. * @psoc: pointer to psoc object
  1052. * @value: Value that needs to be set from the caller
  1053. *
  1054. * Return: QDF Status
  1055. */
  1056. QDF_STATUS
  1057. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1058. /**
  1059. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  1060. * MSDU size for BK
  1061. * @psoc: pointer to psoc object
  1062. * @value: Value that needs to be set from the caller
  1063. *
  1064. * Return: QDF Status
  1065. */
  1066. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1067. uint16_t *value);
  1068. /**
  1069. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1070. * rate for BK
  1071. * @psoc: pointer to psoc object
  1072. * @value: Value that needs to be set from the caller
  1073. *
  1074. * Return: QDF Status
  1075. */
  1076. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1077. uint32_t *value);
  1078. /**
  1079. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1080. * rate for BK
  1081. * @psoc: pointer to psoc object
  1082. * @value: Value that needs to be set from the caller
  1083. *
  1084. * Return: QDF Status
  1085. */
  1086. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1087. uint32_t *value);
  1088. /**
  1089. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1090. * allowance for BE
  1091. * @psoc: pointer to psoc object
  1092. * @value: Value that needs to be set from the caller
  1093. *
  1094. * Return: QDF Status
  1095. */
  1096. QDF_STATUS
  1097. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1098. /**
  1099. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1100. * interval for BK
  1101. * @psoc: pointer to psoc object
  1102. * @value: pointer to the value which will be filled for the caller
  1103. *
  1104. * Return: QDF Status
  1105. */
  1106. QDF_STATUS
  1107. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1108. uint32_t *value);
  1109. /**
  1110. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1111. * interval for BK
  1112. * @psoc: pointer to psoc object
  1113. * @value: pointer to the value which will be filled for the caller
  1114. *
  1115. * Return: QDF Status
  1116. */
  1117. QDF_STATUS
  1118. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1119. uint32_t *value);
  1120. /**
  1121. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1122. * @psoc: pointer to psoc object
  1123. * @value: pointer to the value which will be filled for the caller
  1124. *
  1125. * Return: QDF Status
  1126. */
  1127. QDF_STATUS
  1128. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1129. /**
  1130. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1131. * @psoc: pointer to psoc object
  1132. * @value: pointer to the value which will be filled for the caller
  1133. *
  1134. * Return: QDF Status
  1135. */
  1136. QDF_STATUS
  1137. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1138. /**
  1139. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1140. * @psoc: pointer to psoc object
  1141. * @value: pointer to the value which will be filled for the caller
  1142. *
  1143. * Return: QDF Status
  1144. */
  1145. QDF_STATUS
  1146. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1147. /**
  1148. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1149. * @psoc: pointer to psoc object
  1150. * @value: pointer to the value which will be filled for the caller
  1151. *
  1152. * Return: QDF Status
  1153. */
  1154. QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1155. bool *value);
  1156. #ifdef FEATURE_WLAN_ESE
  1157. /**
  1158. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1159. * @psoc: pointer to psoc object
  1160. * @value: pointer to the value which will be filled for the caller
  1161. *
  1162. * Return: None
  1163. */
  1164. void
  1165. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1166. uint32_t *value);
  1167. #endif
  1168. /**
  1169. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1170. * @psoc: pointer to psoc object
  1171. * @value: pointer to the value which will be filled for the caller
  1172. *
  1173. * Return: None
  1174. */
  1175. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1176. bool *value);
  1177. /**
  1178. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1179. * @psoc: pointer to psoc object
  1180. * @value: pointer to the value which will be filled for the caller
  1181. *
  1182. * Return: None
  1183. */
  1184. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1185. enum mlme_ts_info_ack_policy *value);
  1186. /**
  1187. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1188. * @psoc: pointer to psoc object
  1189. * @value: pointer to the value which will be filled for the caller
  1190. *
  1191. * Return: QDF Status
  1192. */
  1193. QDF_STATUS
  1194. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1195. /**
  1196. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1197. * for VO
  1198. * @psoc: pointer to psoc object
  1199. * @value: Value that needs to be set from the caller
  1200. *
  1201. * Return: QDF Status
  1202. */
  1203. QDF_STATUS
  1204. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1205. /**
  1206. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1207. * MSDU size for VO
  1208. * @psoc: pointer to psoc object
  1209. * @value: Value that needs to be set from the caller
  1210. *
  1211. * Return: QDF Status
  1212. */
  1213. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1214. uint16_t *value);
  1215. /**
  1216. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1217. * @psoc: pointer to psoc object
  1218. * @value: Value that needs to be set from the caller
  1219. *
  1220. * Return: QDF Status
  1221. */
  1222. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1223. uint32_t *value);
  1224. /**
  1225. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1226. * rate for VO
  1227. * @psoc: pointer to psoc object
  1228. * @value: Value that needs to be set from the caller
  1229. *
  1230. * Return: QDF Status
  1231. */
  1232. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1233. uint32_t *value);
  1234. /**
  1235. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1236. * @psoc: pointer to psoc object
  1237. * @value: Value that needs to be set from the caller
  1238. *
  1239. * Return: QDF Status
  1240. */
  1241. QDF_STATUS
  1242. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1243. /**
  1244. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  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_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1251. bool value);
  1252. /**
  1253. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1254. * interval for voice
  1255. * @psoc: pointer to psoc object
  1256. * @value: pointer to the value which will be filled for the caller
  1257. *
  1258. * Return: QDF Status
  1259. */
  1260. QDF_STATUS
  1261. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1262. uint32_t *value);
  1263. /**
  1264. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1265. * interval for voice
  1266. * @psoc: pointer to psoc object
  1267. * @value: pointer to the value which will be filled for the caller
  1268. *
  1269. * Return: QDF Status
  1270. */
  1271. QDF_STATUS
  1272. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1273. uint32_t *value);
  1274. /**
  1275. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1276. * @psoc: psoc context
  1277. * @value: pointer to get required data
  1278. *
  1279. * Return: QDF_STATUS
  1280. */
  1281. QDF_STATUS
  1282. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1283. uint8_t *value);
  1284. /**
  1285. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1286. * @psoc: psoc context
  1287. * @value: data to be set
  1288. *
  1289. * Return: QDF_STATUS
  1290. */
  1291. QDF_STATUS
  1292. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1293. uint8_t value);
  1294. /**
  1295. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1296. * cfg item
  1297. * @psoc: psoc context
  1298. * @value: pointer to get required data
  1299. *
  1300. * Return: QDF_STATUS
  1301. */
  1302. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1303. uint8_t *value);
  1304. /**
  1305. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1306. * cfg item
  1307. * @psoc: psoc context
  1308. * @value: data to be set
  1309. *
  1310. * Return: QDF_STATUS
  1311. */
  1312. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1313. uint8_t value);
  1314. /**
  1315. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1316. * cfg item
  1317. * @psoc: psoc context
  1318. * @value: data to be set
  1319. *
  1320. * Return: QDF_STATUS
  1321. */
  1322. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1323. uint8_t *value);
  1324. /**
  1325. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1326. * cfg item
  1327. * @psoc: psoc context
  1328. * @value: pointer to get required data
  1329. *
  1330. * Return: QDF_STATUS
  1331. */
  1332. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1333. bool *value);
  1334. /**
  1335. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1336. * cfg item
  1337. * @psoc: psoc context
  1338. * @value: data to be set
  1339. *
  1340. * Return: QDF_STATUS
  1341. */
  1342. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1343. bool value);
  1344. /**
  1345. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1346. * cfg item
  1347. * @psoc: psoc context
  1348. * @value: pointer to get required data
  1349. *
  1350. * Return: QDF_STATUS
  1351. */
  1352. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1353. bool *value);
  1354. /**
  1355. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1356. * cfg item
  1357. * @psoc: psoc context
  1358. * @value: data to be set
  1359. *
  1360. * Return: QDF_STATUS
  1361. */
  1362. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1363. bool value);
  1364. /**
  1365. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1366. * cfg item
  1367. * @psoc: psoc context
  1368. * @value: pointer to get required data
  1369. *
  1370. * Return: QDF_STATUS
  1371. */
  1372. QDF_STATUS
  1373. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1374. /**
  1375. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1376. * cfg item
  1377. * @psoc: psoc context
  1378. * @value: data to be set
  1379. *
  1380. * Return: QDF_STATUS
  1381. */
  1382. QDF_STATUS
  1383. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1384. /**
  1385. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1386. * cfg item
  1387. * @psoc: psoc context
  1388. * @value: pointer to get required data
  1389. *
  1390. * Return: QDF_STATUS
  1391. */
  1392. QDF_STATUS
  1393. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1394. /**
  1395. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1396. * cfg item
  1397. * @psoc: psoc context
  1398. * @value: pointer to get required data
  1399. *
  1400. * Return: QDF_STATUS
  1401. */
  1402. QDF_STATUS
  1403. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1404. /**
  1405. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1406. * cfg item
  1407. * @psoc: psoc context
  1408. * @value: data to be set
  1409. *
  1410. * Return: QDF_STATUS
  1411. */
  1412. QDF_STATUS
  1413. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1414. /**
  1415. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1416. * cfg item
  1417. * @psoc: psoc context
  1418. * @value: pointer to get required data
  1419. *
  1420. * Return: QDF_STATUS
  1421. */
  1422. QDF_STATUS
  1423. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1424. /**
  1425. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1426. * cfg item
  1427. * @psoc: psoc context
  1428. * @value: data to be set
  1429. *
  1430. * Return: QDF_STATUS
  1431. */
  1432. QDF_STATUS
  1433. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1434. /**
  1435. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1436. * cfg item
  1437. * @psoc: psoc context
  1438. * @value: pointer to get required data
  1439. *
  1440. * Return: QDF_STATUS
  1441. */
  1442. QDF_STATUS
  1443. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1444. /**
  1445. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1446. * cfg item
  1447. * @psoc: psoc context
  1448. * @value: data to be set
  1449. *
  1450. * Return: QDF_STATUS
  1451. */
  1452. QDF_STATUS
  1453. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1454. /**
  1455. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1456. * cfg item
  1457. * @psoc: psoc context
  1458. * @value: data to be set
  1459. *
  1460. * Return: QDF_STATUS
  1461. */
  1462. QDF_STATUS
  1463. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1464. /**
  1465. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1466. * support cap
  1467. * into cfg item
  1468. * @psoc: psoc context
  1469. * @value: data to be set
  1470. *
  1471. * Return: QDF_STATUS
  1472. */
  1473. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1474. uint8_t value);
  1475. /**
  1476. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1477. * support cap into cfg item
  1478. *
  1479. * @psoc: psoc context
  1480. * @value: data to be set
  1481. *
  1482. * Return: QDF_STATUS
  1483. */
  1484. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1485. uint8_t *value);
  1486. /**
  1487. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1488. * into cfg item
  1489. * @psoc: psoc context
  1490. * @value: data to be set
  1491. *
  1492. * Return: QDF_STATUS
  1493. */
  1494. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1495. uint8_t value);
  1496. /**
  1497. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1498. * cfg item
  1499. * @psoc: psoc context
  1500. * @value: pointer to get required data
  1501. *
  1502. * Return: QDF_STATUS
  1503. */
  1504. QDF_STATUS
  1505. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1506. /**
  1507. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1508. * cfg item
  1509. * @psoc: psoc context
  1510. * @value: data to be set
  1511. *
  1512. * Return: QDF_STATUS
  1513. */
  1514. QDF_STATUS
  1515. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1516. /**
  1517. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1518. * cfg item
  1519. * @psoc: psoc context
  1520. * @value: pointer to get required data
  1521. *
  1522. * Return: QDF_STATUS
  1523. */
  1524. QDF_STATUS
  1525. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1526. /**
  1527. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1528. * cfg item
  1529. * @psoc: psoc context
  1530. * @value: data to be set
  1531. *
  1532. * Return: QDF_STATUS
  1533. */
  1534. QDF_STATUS
  1535. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1536. /**
  1537. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1538. * cfg item
  1539. * @psoc: psoc context
  1540. * @value: pointer to get required data
  1541. *
  1542. * Return: QDF_STATUS
  1543. */
  1544. QDF_STATUS
  1545. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1546. /**
  1547. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1548. * cfg item
  1549. * @psoc: psoc context
  1550. * @value: data to be set
  1551. *
  1552. * Return: QDF_STATUS
  1553. */
  1554. QDF_STATUS
  1555. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1556. /**
  1557. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1558. * cfg item
  1559. * @psoc: psoc context
  1560. * @value: pointer to get required data
  1561. *
  1562. * Return: QDF_STATUS
  1563. */
  1564. QDF_STATUS
  1565. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1566. uint8_t *value);
  1567. /**
  1568. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1569. * cfg item
  1570. * @psoc: psoc context
  1571. * @value: data to be set
  1572. *
  1573. * Return: QDF_STATUS
  1574. */
  1575. QDF_STATUS
  1576. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1577. uint8_t value);
  1578. /**
  1579. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1580. * cfg item
  1581. * @psoc: psoc context
  1582. * @value: pointer to get required data
  1583. *
  1584. * Return: QDF_STATUS
  1585. */
  1586. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1587. uint32_t *value);
  1588. /**
  1589. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1590. * cfg item
  1591. * @psoc: psoc context
  1592. * @value: data to be set
  1593. *
  1594. * Return: QDF_STATUS
  1595. */
  1596. QDF_STATUS
  1597. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1598. /**
  1599. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1600. * cfg item
  1601. * @psoc: psoc context
  1602. * @value: pointer to get required data
  1603. *
  1604. * Return: QDF_STATUS
  1605. */
  1606. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1607. uint32_t *value);
  1608. /**
  1609. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1610. * cfg item
  1611. * @psoc: psoc context
  1612. * @value: data to be set
  1613. *
  1614. * Return: QDF_STATUS
  1615. */
  1616. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1617. uint32_t value);
  1618. /**
  1619. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1620. * cfg item
  1621. * @psoc: psoc context
  1622. * @value: data to be set
  1623. *
  1624. * Return: QDF_STATUS
  1625. */
  1626. QDF_STATUS
  1627. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1628. uint32_t value);
  1629. /**
  1630. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1631. * cfg item
  1632. * @psoc: psoc context
  1633. * @value: data to be set
  1634. *
  1635. * Return: QDF_STATUS
  1636. */
  1637. QDF_STATUS
  1638. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1639. uint32_t value);
  1640. /**
  1641. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1642. * cfg item
  1643. * @psoc: psoc context
  1644. * @value: data to be set
  1645. *
  1646. * Return: QDF_STATUS
  1647. */
  1648. QDF_STATUS
  1649. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1650. uint32_t *value);
  1651. /**
  1652. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1653. * cfg item
  1654. * @psoc: psoc context
  1655. * @value: data to be set
  1656. *
  1657. * Return: QDF_STATUS
  1658. */
  1659. QDF_STATUS
  1660. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1661. uint32_t value);
  1662. /**
  1663. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1664. * @psoc: psoc context
  1665. * @value: data to be set
  1666. *
  1667. * Return: QDF_STATUS
  1668. */
  1669. QDF_STATUS
  1670. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1671. /**
  1672. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1673. * @psoc: psoc context
  1674. * @value: data to be set
  1675. *
  1676. * Return: QDF_STATUS
  1677. */
  1678. QDF_STATUS
  1679. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1680. /**
  1681. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1682. * for 11ac
  1683. * @psoc: psoc context
  1684. * @value: data to be set
  1685. *
  1686. * Return: QDF_STATUS
  1687. */
  1688. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1689. uint8_t *value);
  1690. /**
  1691. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1692. * @psoc: psoc context
  1693. * @value: data to be set
  1694. *
  1695. * Return: QDF_STATUS
  1696. */
  1697. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1698. uint8_t *value);
  1699. /**
  1700. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1701. * @psoc: psoc context
  1702. * @value: data to be set
  1703. *
  1704. * Return: QDF_STATUS
  1705. */
  1706. QDF_STATUS
  1707. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1708. /**
  1709. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1710. * @psoc: psoc context
  1711. * @value: data to be set
  1712. *
  1713. * Return: QDF_STATUS
  1714. */
  1715. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1716. uint8_t *value);
  1717. /**
  1718. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1719. * @psoc: psoc context
  1720. * @value: data to be set
  1721. *
  1722. * Return: QDF_STATUS
  1723. */
  1724. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1725. uint8_t *value);
  1726. /**
  1727. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1728. * @psoc: psoc context
  1729. * @value: data to be set
  1730. *
  1731. * Return: QDF_STATUS
  1732. */
  1733. QDF_STATUS
  1734. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1735. /**
  1736. * wlan_mlme_get_force_sap_enabled() - Get the value of force SAP enabled
  1737. * @psoc: psoc context
  1738. * @value: data to get
  1739. *
  1740. * Get the value of force SAP enabled
  1741. *
  1742. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1743. */
  1744. QDF_STATUS
  1745. wlan_mlme_get_force_sap_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1746. /**
  1747. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1748. * @psoc: psoc context
  1749. * @value: data to be set
  1750. *
  1751. * Return: QDF_STATUS
  1752. */
  1753. QDF_STATUS
  1754. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  1755. /**
  1756. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1757. * @psoc: psoc context
  1758. * @value: data to be set
  1759. *
  1760. * Return: QDF_STATUS
  1761. */
  1762. QDF_STATUS
  1763. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  1764. /**
  1765. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1766. * @psoc: psoc context
  1767. * @value: data to be set
  1768. *
  1769. * Return: QDF_STATUS
  1770. */
  1771. QDF_STATUS
  1772. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  1773. /**
  1774. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1775. * @psoc: psoc context
  1776. * @value: data to be set
  1777. *
  1778. * Return: QDF_STATUS
  1779. */
  1780. QDF_STATUS
  1781. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  1782. /**
  1783. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1784. * @psoc: psoc context
  1785. * @value: data to be set
  1786. *
  1787. * Return: QDF_STATUS
  1788. */
  1789. QDF_STATUS
  1790. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1791. /**
  1792. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1793. * @psoc: psoc context
  1794. * @value: data to be set
  1795. *
  1796. * Return: QDF_STATUS
  1797. */
  1798. QDF_STATUS
  1799. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  1800. /**
  1801. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1802. * @psoc: psoc context
  1803. * @value: data to be set
  1804. *
  1805. * Return: QDF_STATUS
  1806. */
  1807. QDF_STATUS
  1808. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1809. /**
  1810. * mlme_update_vht_cap() - update vht capabilities
  1811. * @psoc: psoc context
  1812. * @cfg: data to be set
  1813. *
  1814. * Return: QDF_STATUS
  1815. */
  1816. QDF_STATUS
  1817. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  1818. /**
  1819. * mlme_update_nss_vht_cap() - Update the number of spatial
  1820. * streams supported for vht
  1821. * @psoc: psoc context
  1822. *
  1823. * Return: QDF_STATUS
  1824. */
  1825. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1826. /**
  1827. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1828. * @psoc: psoc context
  1829. * @value: value to be filled for caller
  1830. *
  1831. * Return: QDF_STATUS
  1832. */
  1833. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1834. bool *value);
  1835. /**
  1836. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1837. * @psoc: psoc context
  1838. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1839. *
  1840. * Return: QDF_STATUS
  1841. */
  1842. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1843. bool value);
  1844. /**
  1845. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  1846. * @psoc: psoc context
  1847. *
  1848. * Return: QDF_STATUS
  1849. */
  1850. QDF_STATUS
  1851. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1852. /**
  1853. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  1854. * @psoc: psoc context
  1855. *
  1856. * Return: QDF_STATUS
  1857. */
  1858. QDF_STATUS
  1859. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1860. /**
  1861. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  1862. * @psoc: psoc context
  1863. *
  1864. * Return: QDF_STATUS
  1865. */
  1866. QDF_STATUS
  1867. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1868. /**
  1869. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  1870. * @psoc: psoc context
  1871. *
  1872. * Return: QDF_STATUS
  1873. */
  1874. QDF_STATUS
  1875. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1876. /**
  1877. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  1878. *
  1879. * @psoc: pointer to psoc object
  1880. * @value: value which needs to filled by API
  1881. *
  1882. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  1883. *
  1884. * Return: QDF_STATUS
  1885. */
  1886. QDF_STATUS
  1887. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  1888. uint32_t *value);
  1889. /**
  1890. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  1891. *
  1892. * @psoc: pointer to psoc object
  1893. * @value: value which needs to filled by API
  1894. *
  1895. * This API fetches the user setting to determine if SAP MCC with other persona
  1896. * to be avoided.
  1897. *
  1898. * Return: QDF_STATUS
  1899. */
  1900. QDF_STATUS
  1901. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  1902. uint8_t *value);
  1903. /**
  1904. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  1905. *
  1906. * @psoc: pointer to psoc object
  1907. * @value: value which needs to filled by API
  1908. *
  1909. * To get INI value which helps to determe whether to enable/disable use of
  1910. * broadcast probe response to increase the detectability of SAP in MCC mode.
  1911. *
  1912. *
  1913. * Return: QDF_STATUS
  1914. */
  1915. QDF_STATUS
  1916. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  1917. uint8_t *value);
  1918. /**
  1919. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  1920. *
  1921. * @psoc: pointer to psoc object
  1922. * @value: value which needs to filled by API
  1923. *
  1924. * To get INI value which helps to determine whether to enable/disable
  1925. * use of long duration RTS-CTS protection when SAP goes off
  1926. * channel in MCC mode.
  1927. *
  1928. * Return: QDF_STATUS
  1929. */
  1930. QDF_STATUS
  1931. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  1932. uint8_t *value);
  1933. /**
  1934. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  1935. *
  1936. * @psoc: pointer to psoc object
  1937. * @value: value which needs to filled by API
  1938. *
  1939. * To get INI value which helps to determine whether to enable MCC feature
  1940. *
  1941. * Return: QDF_STATUS
  1942. */
  1943. QDF_STATUS
  1944. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  1945. uint8_t *value);
  1946. /**
  1947. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  1948. * @psoc: pointer to psoc object
  1949. * @value: pointer to the value which will be filled for the caller
  1950. *
  1951. * Return: QDF Status
  1952. */
  1953. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  1954. bool *value);
  1955. /**
  1956. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  1957. * bitmap
  1958. * @psoc: pointer to psoc object
  1959. * @dtim_selection_div: value that is requested by the caller
  1960. * This function gets the dtim selection diversity bitmap to be
  1961. * sent to the firmware
  1962. *
  1963. * Return: QDF_STATUS_SUCCESS - in case of success
  1964. */
  1965. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  1966. uint32_t *dtim_selection_div);
  1967. /**
  1968. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  1969. * minimum listen interval value
  1970. * @psoc: pointer to psoc object
  1971. * @value: value that is requested by the caller
  1972. *
  1973. * Return: QDF_STATUS_SUCCESS - in case of success
  1974. */
  1975. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  1976. uint32_t *value);
  1977. /**
  1978. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  1979. * maximum listen interval value
  1980. * @psoc: pointer to psoc object
  1981. * @value: value that is requested by the caller
  1982. *
  1983. * Return: QDF_STATUS_SUCCESS - in case of success
  1984. */
  1985. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  1986. uint32_t *value);
  1987. /**
  1988. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  1989. * @psoc: pointer to psoc object
  1990. * @value: value that is requested by the caller
  1991. *
  1992. * Return: QDF_STATUS_SUCCESS - in case of success
  1993. */
  1994. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  1995. uint32_t *value);
  1996. /**
  1997. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  1998. * enabled/disabled
  1999. * @psoc: pointer to psoc object
  2000. * @value: value that is requested by the caller
  2001. *
  2002. * Return: QDF_STATUS_SUCCESS - in case of success
  2003. */
  2004. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  2005. bool *value);
  2006. /**
  2007. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  2008. * @psoc: pointer to psoc object
  2009. * @value: value that is requested by the caller
  2010. *
  2011. * Return: QDF_STATUS_SUCCESS - in case of success
  2012. */
  2013. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  2014. /**
  2015. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  2016. * enabled/disabled
  2017. * @psoc: pointer to psoc object
  2018. * @value: value that is requested by the caller
  2019. *
  2020. * Return: QDF_STATUS_SUCCESS - in case of success
  2021. */
  2022. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  2023. bool *value);
  2024. /**
  2025. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  2026. * @wps_params: pointer to mlme wps parameters structure
  2027. * @data: data to which the parameter is to be copied
  2028. *
  2029. * Return None
  2030. *
  2031. */
  2032. void
  2033. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  2034. /**
  2035. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  2036. * @psoc: pointer to psoc object
  2037. * @val: Pointer to the value which will be filled for the caller
  2038. *
  2039. * Return: QDF Status
  2040. */
  2041. QDF_STATUS
  2042. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  2043. uint32_t *value);
  2044. /**
  2045. * wlan_mlme_get_4way_hs_offload() - get 4-way hs offload to fw cfg
  2046. * @psoc: pointer to psoc object
  2047. * @val: Pointer to the value which will be filled for the caller
  2048. *
  2049. * Return: QDF Status
  2050. */
  2051. QDF_STATUS
  2052. wlan_mlme_get_4way_hs_offload(struct wlan_objmgr_psoc *psoc, bool *value);
  2053. /**
  2054. * wlan_mlme_get_bmiss_skip_full_scan_value() - To get value of
  2055. * bmiss_skip_full_scan ini
  2056. * @psoc: pointer to psoc object
  2057. * @val: Pointer to the value which will be filled for the caller
  2058. *
  2059. * Return: QDF Status
  2060. */
  2061. QDF_STATUS
  2062. wlan_mlme_get_bmiss_skip_full_scan_value(struct wlan_objmgr_psoc *psoc,
  2063. bool *value);
  2064. /**
  2065. * mlme_get_peer_phymode() - get phymode of peer
  2066. * @psoc: pointer to psoc object
  2067. * @mac: Pointer to the mac addr of the peer
  2068. * @peer_phymode: phymode
  2069. *
  2070. * Return: QDF Status
  2071. */
  2072. QDF_STATUS
  2073. mlme_get_peer_phymode(struct wlan_objmgr_psoc *psoc, uint8_t *mac,
  2074. enum wlan_phymode *peer_phymode);
  2075. /**
  2076. * mlme_set_tgt_wpa3_roam_cap() - Set the target WPA3 roam support
  2077. * to mlme
  2078. * @psoc: pointer to PSOC object
  2079. * @akm_bitmap: Bitmap of akm suites supported for roaming by the firmware
  2080. *
  2081. * Return: QDF Status
  2082. */
  2083. QDF_STATUS mlme_set_tgt_wpa3_roam_cap(struct wlan_objmgr_psoc *psoc,
  2084. uint32_t akm_bitmap);
  2085. /**
  2086. * wlan_mlme_get_ignore_fw_reg_offload_ind() - Get the
  2087. * ignore_fw_reg_offload_ind ini
  2088. * @psoc: pointer to psoc object
  2089. * @disabled: output pointer to hold user config
  2090. *
  2091. * Return: QDF Status
  2092. */
  2093. QDF_STATUS
  2094. wlan_mlme_get_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc,
  2095. bool *disabled);
  2096. /**
  2097. * mlme_get_roam_trigger_str() - Get the string for enum
  2098. * WMI_ROAM_TRIGGER_REASON_ID reason.
  2099. * @roam_scan_trigger: roam scan trigger ID
  2100. *
  2101. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_REASON_ID
  2102. */
  2103. char *mlme_get_roam_trigger_str(uint32_t roam_scan_trigger);
  2104. /**
  2105. * mlme_get_converted_timestamp() - Return time of the day
  2106. * from timestamp
  2107. * @timestamp: Timestamp value in milliseconds
  2108. * @time: Output buffer to fill time into
  2109. *
  2110. * Return: Time of the day in [HH:MM:SS.uS]
  2111. */
  2112. void mlme_get_converted_timestamp(uint32_t timestamp, char *time);
  2113. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2114. /**
  2115. * wlan_mlme_set_sae_single_pmk_bss_cap - API to set WPA3 single pmk AP IE
  2116. * @psoc: Pointer to psoc object
  2117. * @vdev_id: vdev id
  2118. * @val: value to be set
  2119. *
  2120. * Return : None
  2121. */
  2122. void wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2123. uint8_t vdev_id, bool val);
  2124. /**
  2125. * wlan_mlme_update_sae_single_pmk - API to update mlme_pmkid_info
  2126. * @vdev: vdev object
  2127. * @sae_single_pmk: pointer to sae_single_pmk_info struct
  2128. *
  2129. * Return : None
  2130. */
  2131. void
  2132. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2133. struct mlme_pmk_info *sae_single_pmk);
  2134. /**
  2135. * wlan_mlme_get_sae_single_pmk_info - API to get mlme_pmkid_info
  2136. * @vdev: vdev object
  2137. * @pmksa: pointer to PMKSA struct
  2138. *
  2139. * Return : None
  2140. */
  2141. void
  2142. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2143. struct wlan_mlme_sae_single_pmk *pmksa);
  2144. /**
  2145. * wlan_mlme_clear_sae_single_pmk_info - API to clear mlme_pmkid_info ap caps
  2146. * @vdev: vdev object
  2147. * @pmk : pmk info to clear
  2148. *
  2149. * Return : None
  2150. */
  2151. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2152. struct mlme_pmk_info *pmk);
  2153. #else
  2154. static inline void
  2155. wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2156. uint8_t vdev_id, bool val)
  2157. {
  2158. }
  2159. static inline void
  2160. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2161. struct mlme_pmk_info *sae_single_pmk)
  2162. {
  2163. }
  2164. static inline void
  2165. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2166. struct wlan_mlme_sae_single_pmk *pmksa)
  2167. {
  2168. }
  2169. static inline
  2170. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2171. struct mlme_pmk_info *pmk)
  2172. {
  2173. }
  2174. #endif
  2175. /**
  2176. * mlme_get_roam_fail_reason_str() - Get fail string from enum
  2177. * WMI_ROAM_FAIL_REASON_ID
  2178. * @result: Roam fail reason
  2179. *
  2180. * Return: Meaningful string from enum
  2181. */
  2182. char *mlme_get_roam_fail_reason_str(uint32_t result);
  2183. /**
  2184. * mlme_get_sub_reason_str() - Get roam trigger sub reason from enum
  2185. * WMI_ROAM_TRIGGER_SUB_REASON_ID
  2186. * @sub_reason: Sub reason value
  2187. *
  2188. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_SUB_REASON_ID
  2189. */
  2190. char *mlme_get_sub_reason_str(uint32_t sub_reason);
  2191. /**
  2192. * wlan_mlme_get_mgmt_max_retry() - Get the
  2193. * max mgmt retry
  2194. * @psoc: pointer to psoc object
  2195. * @max_retry: output pointer to hold user config
  2196. *
  2197. * Return: QDF Status
  2198. */
  2199. QDF_STATUS
  2200. wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
  2201. uint8_t *max_retry);
  2202. /**
  2203. * wlan_mlme_get_status_ring_buffer() - Get the
  2204. * status of ring buffer
  2205. * @psoc: pointer to psoc object
  2206. * @enable_ring_buffer: output pointer to point the configured value of
  2207. * ring buffer
  2208. *
  2209. * Return: QDF_STATUS
  2210. */
  2211. QDF_STATUS
  2212. wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
  2213. bool *enable_ring_buffer);
  2214. /**
  2215. * wlan_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
  2216. * support is enabled or disabled
  2217. * @psoc: pointer to psoc object
  2218. *
  2219. * Return: true if peer unmap confirmation support is enabled, else false
  2220. */
  2221. bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc);
  2222. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2223. /**
  2224. * wlan_mlme_get_roam_reason_vsie_status() - Indicate if roam reason
  2225. * vsie is enabled or disabled
  2226. * @psoc: pointer to psoc object
  2227. * @roam_reason_vsie_enabled: pointer to hold value of roam reason
  2228. * vsie
  2229. *
  2230. * Return: QDF_STATUS
  2231. */
  2232. QDF_STATUS
  2233. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2234. uint8_t *roam_reason_vsie_enabled);
  2235. /**
  2236. * wlan_mlme_set_roam_reason_vsie_status() - Update roam reason vsie status
  2237. * @psoc: pointer to psoc object
  2238. * @roam_reason_vsie_enabled: value of roam reason vsie
  2239. *
  2240. * Return: QDF_STATUS
  2241. */
  2242. QDF_STATUS
  2243. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2244. uint8_t roam_reason_vsie_enabled);
  2245. /**
  2246. * wlan_mlme_get_roaming_triggers - Get the roaming triggers bitmap
  2247. * @psoc: Pointer to PSOC object
  2248. *
  2249. * Return: Roaming triggers value
  2250. */
  2251. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc);
  2252. #else
  2253. static inline QDF_STATUS
  2254. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2255. uint8_t *roam_reason_vsie_enable)
  2256. {
  2257. return QDF_STATUS_E_FAILURE;
  2258. }
  2259. static inline QDF_STATUS
  2260. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2261. uint8_t roam_reason_vsie_enable)
  2262. {
  2263. return QDF_STATUS_E_FAILURE;
  2264. }
  2265. static inline
  2266. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc)
  2267. {
  2268. return 0xFFFF;
  2269. }
  2270. #endif
  2271. /**
  2272. * wlan_mlme_get_dfs_chan_ageout_time() - Get the DFS Channel ageout time
  2273. * @psoc: pointer to psoc object
  2274. * @dfs_chan_ageout_time: output pointer to hold configured value of DFS
  2275. * Channel ageout time
  2276. *
  2277. * Return: QDF Status
  2278. */
  2279. QDF_STATUS
  2280. wlan_mlme_get_dfs_chan_ageout_time(struct wlan_objmgr_psoc *psoc,
  2281. uint8_t *dfs_chan_ageout_time);
  2282. #endif /* _WLAN_MLME_API_H_ */