wlan_mlme_api.h 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510
  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_is_chain_mask_supported() - check if configure chainmask can
  454. * be supported
  455. * @psoc: pointer to psoc object
  456. *
  457. * Return: true if supported else false
  458. */
  459. bool wlan_mlme_is_chain_mask_supported(struct wlan_objmgr_psoc *psoc);
  460. /**
  461. * wlan_mlme_get_listen_interval() - Get listen interval
  462. * @psoc: pointer to psoc object
  463. * @value: Pointer to value that needs to be filled by MLME
  464. *
  465. * Return: QDF Status
  466. */
  467. QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
  468. int *value);
  469. /**
  470. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  471. * @psoc: pointer to psoc object
  472. * @value: Value that needs to be set from the caller
  473. *
  474. * Return: QDF Status
  475. */
  476. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  477. int value);
  478. /**
  479. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  480. * @psoc: pointer to psoc object
  481. * @value: Value that needs to be set from the caller
  482. *
  483. * Return: QDF Status
  484. */
  485. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  486. int value);
  487. /**
  488. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  489. * @psoc: pointer to psoc object
  490. * @value: Value that needs to be set from the caller
  491. *
  492. * Return: QDF Status
  493. */
  494. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  495. bool *value);
  496. /**
  497. * wlan_mlme_set_sap_get_peer_info() - set the sap get peer info
  498. * @psoc: pointer to psoc object
  499. * @value: value to overwrite the sap get peer info
  500. *
  501. * Return: QDF Status
  502. */
  503. QDF_STATUS wlan_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  504. bool value);
  505. /**
  506. * wlan_mlme_get_sap_bcast_deauth_enabled() - get the enable/disable value
  507. * for broadcast deauth in sap
  508. * @psoc: pointer to psoc object
  509. * @value: Value that needs to get from the caller
  510. *
  511. * Return: QDF Status
  512. */
  513. QDF_STATUS
  514. wlan_mlme_get_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
  515. bool *value);
  516. /**
  517. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  518. * channels
  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 wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  525. bool *value);
  526. /**
  527. * wlan_mlme_is_6g_sap_fd_enabled() - get the enable/disable value
  528. * for 6g sap fils discovery
  529. * @psoc: pointer to psoc object
  530. * @value: Value that needs to get from the caller
  531. *
  532. * Return: QDF Status
  533. */
  534. QDF_STATUS
  535. wlan_mlme_is_6g_sap_fd_enabled(struct wlan_objmgr_psoc *psoc,
  536. bool *value);
  537. /**
  538. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  539. * @psoc: pointer to psoc object
  540. * @value: Value that needs to be set from the caller
  541. *
  542. * Return: QDF Status
  543. */
  544. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  545. int *value);
  546. /**
  547. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  548. * @psoc: pointer to psoc object
  549. * @value: Value that needs to be set from the caller
  550. *
  551. * Return: QDF Status
  552. */
  553. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  554. int value);
  555. /**
  556. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  557. * @psoc: pointer to psoc object
  558. * @value: Value that needs to be set from the caller
  559. *
  560. * Return: QDF Status
  561. */
  562. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  563. int *value);
  564. /**
  565. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  566. * reorder buffs.
  567. * @psoc: pointer to psoc object
  568. * @value: Value that needs to be set from the caller
  569. *
  570. * Return: QDF Status
  571. */
  572. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  573. *psoc, int *value);
  574. /**
  575. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  576. * switch beacon count
  577. * @psoc: pointer to psoc object
  578. * @value: Value that needs to be set from the caller
  579. *
  580. * Return: QDF Status
  581. */
  582. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  583. int *value);
  584. /**
  585. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  586. * switch mode
  587. * @psoc: pointer to psoc object
  588. * @value: Value that needs to be set from the caller
  589. *
  590. * Return: QDF Status
  591. */
  592. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  593. bool *value);
  594. /**
  595. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  596. * restart
  597. * @psoc: pointer to psoc object
  598. * @value: Value that needs to be set from the caller
  599. *
  600. * Return: QDF Status
  601. */
  602. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  603. bool *value);
  604. /**
  605. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  606. * restart
  607. * @psoc: pointer to psoc object
  608. * @value: Value that needs to be set from the caller
  609. *
  610. * Return: QDF Status
  611. */
  612. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  613. uint8_t *value);
  614. /**
  615. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  616. * restart
  617. * @psoc: pointer to psoc object
  618. * @value: Value that needs to be set from the caller
  619. *
  620. * Return: QDF Status
  621. */
  622. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  623. uint8_t *value);
  624. /**
  625. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  626. * restart
  627. * @psoc: pointer to psoc object
  628. * @value: Value that needs to be set from the caller
  629. *
  630. * Return: QDF Status
  631. */
  632. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  633. bool *value);
  634. /**
  635. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  636. * beacon interval
  637. * @psoc: pointer to psoc object
  638. * @value: Value that needs to be set from the caller
  639. *
  640. * Return: QDF Status
  641. */
  642. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  643. *psoc, int *value);
  644. /**
  645. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  646. * enabled beacon interval
  647. * @psoc: pointer to psoc object
  648. * @value: Value that needs to be set from the caller
  649. *
  650. * Return: QDF Status
  651. */
  652. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  653. *psoc, bool *value);
  654. /**
  655. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  656. *
  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_force_11n_for_11ac(struct wlan_objmgr_psoc
  663. *psoc, bool *value);
  664. /**
  665. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  666. *
  667. * @psoc: pointer to psoc object
  668. * @value: Value that needs to be set from the caller
  669. *
  670. * Return: QDF Status
  671. */
  672. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  673. *psoc, bool *value);
  674. /**
  675. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  676. *
  677. * @psoc: pointer to psoc object
  678. * @value: pointer to the value which will be filled for the caller
  679. *
  680. * Return: QDF Status
  681. */
  682. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  683. bool *value);
  684. /**
  685. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  686. *
  687. * @psoc: pointer to psoc object
  688. * @value: pointer to the value which will be filled for the caller
  689. *
  690. * Return: QDF Status
  691. */
  692. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  693. bool *value);
  694. /**
  695. * wlan_mlme_set_go_11ac_override() - set override 11ac bandwdith for P2P GO
  696. *
  697. * @psoc: pointer to psoc object
  698. * @value: pointer to the value which will be filled for the caller
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS wlan_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  703. bool value);
  704. /**
  705. * wlan_mlme_set_sap_11ac_override() - set override 11ac bandwdith for SAP
  706. *
  707. * @psoc: pointer to psoc object
  708. * @value: pointer to the value which will be filled for the caller
  709. *
  710. * Return: QDF Status
  711. */
  712. QDF_STATUS wlan_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  713. bool value);
  714. /**
  715. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  716. * info for STA
  717. * @psoc: pointer to psoc object
  718. * @value: pointer to the value which will be filled for the caller
  719. *
  720. * Return: QDF Status
  721. */
  722. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  723. bool *value);
  724. /**
  725. * wlan_mlme_get_bigtk_support() - Get the BIGTK support
  726. * @psoc: pointer to psoc object
  727. * @value: pointer to the value which will be filled for the caller
  728. *
  729. * Return: QDF Status
  730. */
  731. QDF_STATUS wlan_mlme_get_bigtk_support(struct wlan_objmgr_psoc *psoc,
  732. bool *value);
  733. /**
  734. * wlan_mlme_get_host_scan_abort_support() - Get support for stop all host
  735. * scans service capability.
  736. * @psoc: PSOC object pointer
  737. *
  738. * Return: True if capability is supported, else False
  739. */
  740. bool wlan_mlme_get_host_scan_abort_support(struct wlan_objmgr_psoc *psoc);
  741. /**
  742. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  743. * info for SAP
  744. * @psoc: pointer to psoc object
  745. * @value: pointer to the value which will be filled for the caller
  746. *
  747. * Return: QDF Status
  748. */
  749. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  750. bool *value);
  751. /**
  752. * wlan_mlme_update_oce_flags() - Update the oce flags to FW
  753. * @pdev: pointer to pdev object
  754. *
  755. * Return: void
  756. */
  757. void wlan_mlme_update_oce_flags(struct wlan_objmgr_pdev *pdev);
  758. #ifdef WLAN_FEATURE_11AX
  759. /**
  760. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  761. * @psoc: pointer to psoc object
  762. * @value: Value that needs to be set from the caller
  763. *
  764. * Return: QDF Status
  765. */
  766. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  767. uint32_t *value);
  768. /**
  769. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  770. * @psoc: pointer to psoc object
  771. * @value: Value that needs to be set from the caller
  772. *
  773. * Return: QDF Status
  774. */
  775. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  776. uint32_t value);
  777. /**
  778. * mlme_cfg_get_he_caps() - Get the HE capability info
  779. * @psoc: pointer to psoc object
  780. * @he_cap: Caps that needs to be filled.
  781. *
  782. * Return: QDF Status
  783. */
  784. QDF_STATUS mlme_cfg_get_he_caps(struct wlan_objmgr_psoc *psoc,
  785. tDot11fIEhe_cap *he_cap);
  786. /**
  787. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  788. * @psoc: pointer to psoc object
  789. * @value: Value that needs to be set from the caller
  790. *
  791. * Return: QDF Status
  792. */
  793. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  794. uint8_t *value);
  795. /**
  796. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  797. * @psoc: pointer to psoc object
  798. * @value: Value that needs to be set from the caller
  799. *
  800. * Return: QDF Status
  801. */
  802. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  803. uint8_t *value);
  804. /**
  805. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  806. *
  807. * @psoc: pointer to psoc object
  808. * @cfg: pointer to config params from target
  809. *
  810. * This api to be used by callers to update
  811. * he caps in mlme.
  812. *
  813. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  814. */
  815. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  816. struct wma_tgt_cfg *cfg);
  817. #endif
  818. /**
  819. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  820. * @psoc: pointer to psoc object
  821. *
  822. * Return: is_ap_prot_enabled flag
  823. */
  824. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  825. /**
  826. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  827. * @psoc: pointer to psoc object
  828. * @value: pointer to the value which needs to be filled for the caller
  829. *
  830. * Return: QDF Status
  831. */
  832. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  833. uint16_t *value);
  834. /**
  835. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  836. * enabled/disabled
  837. * @psoc: pointer to psoc object
  838. * @value: pointer to the value which needs to be filled for the caller
  839. *
  840. * Return: QDF Status
  841. */
  842. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  843. bool *value);
  844. /**
  845. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  846. * @psoc: pointer to psoc object
  847. * @value: pointer to the value which will be filled for the caller
  848. *
  849. * Return: QDF Status
  850. */
  851. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  852. uint32_t *value);
  853. /**
  854. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  855. * @psoc: pointer to psoc object
  856. * @value: Value that needs to be set from the caller
  857. *
  858. * Return: QDF Status
  859. */
  860. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  861. uint32_t value);
  862. /**
  863. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  864. * config
  865. * @psoc: pointer to psoc object
  866. * @value: pointer to the value which will be filled for the caller
  867. *
  868. * Return: QDF Status
  869. */
  870. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  871. uint32_t *value);
  872. /**
  873. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  874. * config
  875. * @psoc: pointer to psoc object
  876. * @value: Value that needs to be set from the caller
  877. *
  878. * Return: QDF Status
  879. */
  880. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  881. uint32_t value);
  882. /**
  883. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  884. * @psoc: pointer to psoc object
  885. * @value: pointer to the value which will be filled for the caller
  886. *
  887. * Return: QDF Status
  888. */
  889. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  890. bool *value);
  891. /**
  892. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  893. * @psoc: pointer to psoc object
  894. * @value: value that needs to be set from the caller
  895. *
  896. * Return: QDF Status
  897. */
  898. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  899. bool value);
  900. /**
  901. * wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  902. * of UAPSD auto trigger
  903. * @psoc: pointer to psoc object
  904. * @value: Value that needs to be set from the caller
  905. *
  906. * Return: None
  907. */
  908. void wlan_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  909. uint32_t *value);
  910. /**
  911. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  912. * for VI
  913. * @psoc: pointer to psoc object
  914. * @value: Value that needs to be set from the caller
  915. *
  916. * Return: QDF Status
  917. */
  918. QDF_STATUS
  919. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  920. /**
  921. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  922. * MSDU size for VI
  923. * @psoc: pointer to psoc object
  924. * @value: Value that needs to be set from the caller
  925. *
  926. * Return: QDF Status
  927. */
  928. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  929. uint16_t *value);
  930. /**
  931. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  932. * rate for VI
  933. * @psoc: pointer to psoc object
  934. * @value: Value that needs to be set from the caller
  935. *
  936. * Return: QDF Status
  937. */
  938. QDF_STATUS
  939. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  940. uint32_t *value);
  941. /**
  942. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  943. * rate for VI
  944. * @psoc: pointer to psoc object
  945. * @value: Value that needs to be set from the caller
  946. *
  947. * Return: QDF Status
  948. */
  949. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  950. uint32_t *value);
  951. /**
  952. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  953. * allowance for VI
  954. * @psoc: pointer to psoc object
  955. * @value: Value that needs to be set from the caller
  956. *
  957. * Return: QDF Status
  958. */
  959. QDF_STATUS
  960. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  961. /**
  962. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  963. * interval for video
  964. * @psoc: pointer to psoc object
  965. * @value: pointer to the value which will be filled for the caller
  966. *
  967. * Return: QDF Status
  968. */
  969. QDF_STATUS
  970. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  971. uint32_t *value);
  972. /**
  973. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  974. * interval for video
  975. * @psoc: pointer to psoc object
  976. * @value: pointer to the value which will be filled for the caller
  977. *
  978. * Return: QDF Status
  979. */
  980. QDF_STATUS
  981. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  982. uint32_t *value);
  983. /**
  984. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  985. * for BE
  986. * @psoc: pointer to psoc object
  987. * @value: Value that needs to be set from the caller
  988. *
  989. * Return: QDF Status
  990. */
  991. QDF_STATUS
  992. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  993. uint8_t *value);
  994. /**
  995. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  996. * MSDU size for BE
  997. * @psoc: pointer to psoc object
  998. * @value: Value that needs to be set from the caller
  999. *
  1000. * Return: QDF Status
  1001. */
  1002. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1003. uint16_t *value);
  1004. /**
  1005. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1006. * rate for BE
  1007. * @psoc: pointer to psoc object
  1008. * @value: Value that needs to be set from the caller
  1009. *
  1010. * Return: QDF Status
  1011. */
  1012. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1013. uint32_t *value);
  1014. /**
  1015. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1016. * rate for BE
  1017. * @psoc: pointer to psoc object
  1018. * @value: Value that needs to be set from the caller
  1019. *
  1020. * Return: QDF Status
  1021. */
  1022. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1023. uint32_t *value);
  1024. /**
  1025. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1026. * allowance for BE
  1027. * @psoc: pointer to psoc object
  1028. * @value: Value that needs to be set from the caller
  1029. *
  1030. * Return: QDF Status
  1031. */
  1032. QDF_STATUS
  1033. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1034. /**
  1035. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1036. * interval for BE
  1037. * @psoc: pointer to psoc object
  1038. * @value: pointer to the value which will be filled for the caller
  1039. *
  1040. * Return: QDF Status
  1041. */
  1042. QDF_STATUS
  1043. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1044. uint32_t *value);
  1045. /**
  1046. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1047. * interval for BE
  1048. * @psoc: pointer to psoc object
  1049. * @value: pointer to the value which will be filled for the caller
  1050. *
  1051. * Return: QDF Status
  1052. */
  1053. QDF_STATUS
  1054. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1055. uint32_t *value);
  1056. /**
  1057. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1058. * for BK
  1059. * @psoc: pointer to psoc object
  1060. * @value: Value that needs to be set from the caller
  1061. *
  1062. * Return: QDF Status
  1063. */
  1064. QDF_STATUS
  1065. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1066. /**
  1067. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  1068. * MSDU size for BK
  1069. * @psoc: pointer to psoc object
  1070. * @value: Value that needs to be set from the caller
  1071. *
  1072. * Return: QDF Status
  1073. */
  1074. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1075. uint16_t *value);
  1076. /**
  1077. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1078. * rate for BK
  1079. * @psoc: pointer to psoc object
  1080. * @value: Value that needs to be set from the caller
  1081. *
  1082. * Return: QDF Status
  1083. */
  1084. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1085. uint32_t *value);
  1086. /**
  1087. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1088. * rate for BK
  1089. * @psoc: pointer to psoc object
  1090. * @value: Value that needs to be set from the caller
  1091. *
  1092. * Return: QDF Status
  1093. */
  1094. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1095. uint32_t *value);
  1096. /**
  1097. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1098. * allowance for BE
  1099. * @psoc: pointer to psoc object
  1100. * @value: Value that needs to be set from the caller
  1101. *
  1102. * Return: QDF Status
  1103. */
  1104. QDF_STATUS
  1105. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1106. /**
  1107. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1108. * interval for BK
  1109. * @psoc: pointer to psoc object
  1110. * @value: pointer to the value which will be filled for the caller
  1111. *
  1112. * Return: QDF Status
  1113. */
  1114. QDF_STATUS
  1115. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1116. uint32_t *value);
  1117. /**
  1118. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1119. * interval for BK
  1120. * @psoc: pointer to psoc object
  1121. * @value: pointer to the value which will be filled for the caller
  1122. *
  1123. * Return: QDF Status
  1124. */
  1125. QDF_STATUS
  1126. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1127. uint32_t *value);
  1128. /**
  1129. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1130. * @psoc: pointer to psoc object
  1131. * @value: pointer to the value which will be filled for the caller
  1132. *
  1133. * Return: QDF Status
  1134. */
  1135. QDF_STATUS
  1136. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1137. /**
  1138. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1139. * @psoc: pointer to psoc object
  1140. * @value: pointer to the value which will be filled for the caller
  1141. *
  1142. * Return: QDF Status
  1143. */
  1144. QDF_STATUS
  1145. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1146. /**
  1147. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1148. * @psoc: pointer to psoc object
  1149. * @value: pointer to the value which will be filled for the caller
  1150. *
  1151. * Return: QDF Status
  1152. */
  1153. QDF_STATUS
  1154. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1155. /**
  1156. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1157. * @psoc: pointer to psoc object
  1158. * @value: pointer to the value which will be filled for the caller
  1159. *
  1160. * Return: QDF Status
  1161. */
  1162. QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1163. bool *value);
  1164. #ifdef FEATURE_WLAN_ESE
  1165. /**
  1166. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1167. * @psoc: pointer to psoc object
  1168. * @value: pointer to the value which will be filled for the caller
  1169. *
  1170. * Return: None
  1171. */
  1172. void
  1173. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1174. uint32_t *value);
  1175. #endif
  1176. /**
  1177. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1178. * @psoc: pointer to psoc object
  1179. * @value: pointer to the value which will be filled for the caller
  1180. *
  1181. * Return: None
  1182. */
  1183. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1184. bool *value);
  1185. /**
  1186. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1187. * @psoc: pointer to psoc object
  1188. * @value: pointer to the value which will be filled for the caller
  1189. *
  1190. * Return: None
  1191. */
  1192. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1193. enum mlme_ts_info_ack_policy *value);
  1194. /**
  1195. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1196. * @psoc: pointer to psoc object
  1197. * @value: pointer to the value which will be filled for the caller
  1198. *
  1199. * Return: QDF Status
  1200. */
  1201. QDF_STATUS
  1202. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1203. /**
  1204. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1205. * for VO
  1206. * @psoc: pointer to psoc object
  1207. * @value: Value that needs to be set from the caller
  1208. *
  1209. * Return: QDF Status
  1210. */
  1211. QDF_STATUS
  1212. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1213. /**
  1214. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1215. * MSDU size for VO
  1216. * @psoc: pointer to psoc object
  1217. * @value: Value that needs to be set from the caller
  1218. *
  1219. * Return: QDF Status
  1220. */
  1221. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1222. uint16_t *value);
  1223. /**
  1224. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1225. * @psoc: pointer to psoc object
  1226. * @value: Value that needs to be set from the caller
  1227. *
  1228. * Return: QDF Status
  1229. */
  1230. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1231. uint32_t *value);
  1232. /**
  1233. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1234. * rate for VO
  1235. * @psoc: pointer to psoc object
  1236. * @value: Value that needs to be set from the caller
  1237. *
  1238. * Return: QDF Status
  1239. */
  1240. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1241. uint32_t *value);
  1242. /**
  1243. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1244. * @psoc: pointer to psoc object
  1245. * @value: Value that needs to be set from the caller
  1246. *
  1247. * Return: QDF Status
  1248. */
  1249. QDF_STATUS
  1250. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1251. /**
  1252. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1253. * @psoc: pointer to psoc object
  1254. * @value: value that needs to be set from the caller
  1255. *
  1256. * Return: QDF Status
  1257. */
  1258. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1259. bool value);
  1260. /**
  1261. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1262. * interval for voice
  1263. * @psoc: pointer to psoc object
  1264. * @value: pointer to the value which will be filled for the caller
  1265. *
  1266. * Return: QDF Status
  1267. */
  1268. QDF_STATUS
  1269. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1270. uint32_t *value);
  1271. /**
  1272. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1273. * interval for voice
  1274. * @psoc: pointer to psoc object
  1275. * @value: pointer to the value which will be filled for the caller
  1276. *
  1277. * Return: QDF Status
  1278. */
  1279. QDF_STATUS
  1280. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1281. uint32_t *value);
  1282. /**
  1283. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1284. * @psoc: psoc context
  1285. * @value: pointer to get required data
  1286. *
  1287. * Return: QDF_STATUS
  1288. */
  1289. QDF_STATUS
  1290. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1291. uint8_t *value);
  1292. /**
  1293. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1294. * @psoc: psoc context
  1295. * @value: data to be set
  1296. *
  1297. * Return: QDF_STATUS
  1298. */
  1299. QDF_STATUS
  1300. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1301. uint8_t value);
  1302. /**
  1303. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1304. * cfg item
  1305. * @psoc: psoc context
  1306. * @value: pointer to get required data
  1307. *
  1308. * Return: QDF_STATUS
  1309. */
  1310. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1311. uint8_t *value);
  1312. /**
  1313. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1314. * cfg item
  1315. * @psoc: psoc context
  1316. * @value: data to be set
  1317. *
  1318. * Return: QDF_STATUS
  1319. */
  1320. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1321. uint8_t value);
  1322. /**
  1323. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1324. * cfg item
  1325. * @psoc: psoc context
  1326. * @value: data to be set
  1327. *
  1328. * Return: QDF_STATUS
  1329. */
  1330. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1331. uint8_t *value);
  1332. /**
  1333. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1334. * cfg item
  1335. * @psoc: psoc context
  1336. * @value: pointer to get required data
  1337. *
  1338. * Return: QDF_STATUS
  1339. */
  1340. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1341. bool *value);
  1342. /**
  1343. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1344. * cfg item
  1345. * @psoc: psoc context
  1346. * @value: data to be set
  1347. *
  1348. * Return: QDF_STATUS
  1349. */
  1350. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1351. bool value);
  1352. /**
  1353. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1354. * cfg item
  1355. * @psoc: psoc context
  1356. * @value: pointer to get required data
  1357. *
  1358. * Return: QDF_STATUS
  1359. */
  1360. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1361. bool *value);
  1362. /**
  1363. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1364. * cfg item
  1365. * @psoc: psoc context
  1366. * @value: data to be set
  1367. *
  1368. * Return: QDF_STATUS
  1369. */
  1370. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1371. bool value);
  1372. /**
  1373. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1374. * cfg item
  1375. * @psoc: psoc context
  1376. * @value: pointer to get required data
  1377. *
  1378. * Return: QDF_STATUS
  1379. */
  1380. QDF_STATUS
  1381. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1382. /**
  1383. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1384. * cfg item
  1385. * @psoc: psoc context
  1386. * @value: data to be set
  1387. *
  1388. * Return: QDF_STATUS
  1389. */
  1390. QDF_STATUS
  1391. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1392. /**
  1393. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1394. * cfg item
  1395. * @psoc: psoc context
  1396. * @value: pointer to get required data
  1397. *
  1398. * Return: QDF_STATUS
  1399. */
  1400. QDF_STATUS
  1401. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1402. /**
  1403. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1404. * cfg item
  1405. * @psoc: psoc context
  1406. * @value: pointer to get required data
  1407. *
  1408. * Return: QDF_STATUS
  1409. */
  1410. QDF_STATUS
  1411. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1412. /**
  1413. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1414. * cfg item
  1415. * @psoc: psoc context
  1416. * @value: data to be set
  1417. *
  1418. * Return: QDF_STATUS
  1419. */
  1420. QDF_STATUS
  1421. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1422. /**
  1423. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1424. * cfg item
  1425. * @psoc: psoc context
  1426. * @value: pointer to get required data
  1427. *
  1428. * Return: QDF_STATUS
  1429. */
  1430. QDF_STATUS
  1431. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1432. /**
  1433. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1434. * cfg item
  1435. * @psoc: psoc context
  1436. * @value: data to be set
  1437. *
  1438. * Return: QDF_STATUS
  1439. */
  1440. QDF_STATUS
  1441. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1442. /**
  1443. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1444. * cfg item
  1445. * @psoc: psoc context
  1446. * @value: pointer to get required data
  1447. *
  1448. * Return: QDF_STATUS
  1449. */
  1450. QDF_STATUS
  1451. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1452. /**
  1453. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1454. * cfg item
  1455. * @psoc: psoc context
  1456. * @value: data to be set
  1457. *
  1458. * Return: QDF_STATUS
  1459. */
  1460. QDF_STATUS
  1461. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1462. /**
  1463. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1464. * cfg item
  1465. * @psoc: psoc context
  1466. * @value: data to be set
  1467. *
  1468. * Return: QDF_STATUS
  1469. */
  1470. QDF_STATUS
  1471. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1472. /**
  1473. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1474. * support cap
  1475. * into cfg item
  1476. * @psoc: psoc context
  1477. * @value: data to be set
  1478. *
  1479. * Return: QDF_STATUS
  1480. */
  1481. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1482. uint8_t value);
  1483. /**
  1484. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1485. * support cap into cfg item
  1486. *
  1487. * @psoc: psoc context
  1488. * @value: data to be set
  1489. *
  1490. * Return: QDF_STATUS
  1491. */
  1492. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1493. uint8_t *value);
  1494. /**
  1495. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1496. * into cfg item
  1497. * @psoc: psoc context
  1498. * @value: data to be set
  1499. *
  1500. * Return: QDF_STATUS
  1501. */
  1502. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1503. uint8_t value);
  1504. /**
  1505. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1506. * cfg item
  1507. * @psoc: psoc context
  1508. * @value: pointer to get required data
  1509. *
  1510. * Return: QDF_STATUS
  1511. */
  1512. QDF_STATUS
  1513. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1514. /**
  1515. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1516. * cfg item
  1517. * @psoc: psoc context
  1518. * @value: data to be set
  1519. *
  1520. * Return: QDF_STATUS
  1521. */
  1522. QDF_STATUS
  1523. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1524. /**
  1525. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1526. * cfg item
  1527. * @psoc: psoc context
  1528. * @value: pointer to get required data
  1529. *
  1530. * Return: QDF_STATUS
  1531. */
  1532. QDF_STATUS
  1533. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1534. /**
  1535. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1536. * cfg item
  1537. * @psoc: psoc context
  1538. * @value: data to be set
  1539. *
  1540. * Return: QDF_STATUS
  1541. */
  1542. QDF_STATUS
  1543. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1544. /**
  1545. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1546. * cfg item
  1547. * @psoc: psoc context
  1548. * @value: pointer to get required data
  1549. *
  1550. * Return: QDF_STATUS
  1551. */
  1552. QDF_STATUS
  1553. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1554. /**
  1555. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1556. * cfg item
  1557. * @psoc: psoc context
  1558. * @value: data to be set
  1559. *
  1560. * Return: QDF_STATUS
  1561. */
  1562. QDF_STATUS
  1563. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1564. /**
  1565. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1566. * cfg item
  1567. * @psoc: psoc context
  1568. * @value: pointer to get required data
  1569. *
  1570. * Return: QDF_STATUS
  1571. */
  1572. QDF_STATUS
  1573. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1574. uint8_t *value);
  1575. /**
  1576. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1577. * cfg item
  1578. * @psoc: psoc context
  1579. * @value: data to be set
  1580. *
  1581. * Return: QDF_STATUS
  1582. */
  1583. QDF_STATUS
  1584. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1585. uint8_t value);
  1586. /**
  1587. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1588. * cfg item
  1589. * @psoc: psoc context
  1590. * @value: pointer to get required data
  1591. *
  1592. * Return: QDF_STATUS
  1593. */
  1594. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1595. uint32_t *value);
  1596. /**
  1597. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1598. * cfg item
  1599. * @psoc: psoc context
  1600. * @value: data to be set
  1601. *
  1602. * Return: QDF_STATUS
  1603. */
  1604. QDF_STATUS
  1605. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1606. /**
  1607. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1608. * cfg item
  1609. * @psoc: psoc context
  1610. * @value: pointer to get required data
  1611. *
  1612. * Return: QDF_STATUS
  1613. */
  1614. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1615. uint32_t *value);
  1616. /**
  1617. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1618. * cfg item
  1619. * @psoc: psoc context
  1620. * @value: data to be set
  1621. *
  1622. * Return: QDF_STATUS
  1623. */
  1624. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1625. uint32_t value);
  1626. /**
  1627. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1628. * cfg item
  1629. * @psoc: psoc context
  1630. * @value: data to be set
  1631. *
  1632. * Return: QDF_STATUS
  1633. */
  1634. QDF_STATUS
  1635. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1636. uint32_t value);
  1637. /**
  1638. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1639. * cfg item
  1640. * @psoc: psoc context
  1641. * @value: data to be set
  1642. *
  1643. * Return: QDF_STATUS
  1644. */
  1645. QDF_STATUS
  1646. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1647. uint32_t value);
  1648. /**
  1649. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1650. * cfg item
  1651. * @psoc: psoc context
  1652. * @value: data to be set
  1653. *
  1654. * Return: QDF_STATUS
  1655. */
  1656. QDF_STATUS
  1657. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1658. uint32_t *value);
  1659. /**
  1660. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1661. * cfg item
  1662. * @psoc: psoc context
  1663. * @value: data to be set
  1664. *
  1665. * Return: QDF_STATUS
  1666. */
  1667. QDF_STATUS
  1668. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1669. uint32_t value);
  1670. /**
  1671. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1672. * @psoc: psoc context
  1673. * @value: data to be set
  1674. *
  1675. * Return: QDF_STATUS
  1676. */
  1677. QDF_STATUS
  1678. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1679. /**
  1680. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1681. * @psoc: psoc context
  1682. * @value: data to be set
  1683. *
  1684. * Return: QDF_STATUS
  1685. */
  1686. QDF_STATUS
  1687. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1688. /**
  1689. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1690. * for 11ac
  1691. * @psoc: psoc context
  1692. * @value: data to be set
  1693. *
  1694. * Return: QDF_STATUS
  1695. */
  1696. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1697. uint8_t *value);
  1698. /**
  1699. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1700. * @psoc: psoc context
  1701. * @value: data to be set
  1702. *
  1703. * Return: QDF_STATUS
  1704. */
  1705. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1706. uint8_t *value);
  1707. /**
  1708. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1709. * @psoc: psoc context
  1710. * @value: data to be set
  1711. *
  1712. * Return: QDF_STATUS
  1713. */
  1714. QDF_STATUS
  1715. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1716. /**
  1717. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1718. * @psoc: psoc context
  1719. * @value: data to be set
  1720. *
  1721. * Return: QDF_STATUS
  1722. */
  1723. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1724. uint8_t *value);
  1725. /**
  1726. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1727. * @psoc: psoc context
  1728. * @value: data to be set
  1729. *
  1730. * Return: QDF_STATUS
  1731. */
  1732. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1733. uint8_t *value);
  1734. /**
  1735. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1736. * @psoc: psoc context
  1737. * @value: data to be set
  1738. *
  1739. * Return: QDF_STATUS
  1740. */
  1741. QDF_STATUS
  1742. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1743. /**
  1744. * wlan_mlme_get_force_sap_enabled() - Get the value of force SAP enabled
  1745. * @psoc: psoc context
  1746. * @value: data to get
  1747. *
  1748. * Get the value of force SAP enabled
  1749. *
  1750. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1751. */
  1752. QDF_STATUS
  1753. wlan_mlme_get_force_sap_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1754. /**
  1755. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1756. * @psoc: psoc context
  1757. * @value: data to be set
  1758. *
  1759. * Return: QDF_STATUS
  1760. */
  1761. QDF_STATUS
  1762. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  1763. /**
  1764. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1765. * @psoc: psoc context
  1766. * @value: data to be set
  1767. *
  1768. * Return: QDF_STATUS
  1769. */
  1770. QDF_STATUS
  1771. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  1772. /**
  1773. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1774. * @psoc: psoc context
  1775. * @value: data to be set
  1776. *
  1777. * Return: QDF_STATUS
  1778. */
  1779. QDF_STATUS
  1780. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  1781. /**
  1782. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1783. * @psoc: psoc context
  1784. * @value: data to be set
  1785. *
  1786. * Return: QDF_STATUS
  1787. */
  1788. QDF_STATUS
  1789. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  1790. /**
  1791. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1792. * @psoc: psoc context
  1793. * @value: data to be set
  1794. *
  1795. * Return: QDF_STATUS
  1796. */
  1797. QDF_STATUS
  1798. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1799. /**
  1800. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1801. * @psoc: psoc context
  1802. * @value: data to be set
  1803. *
  1804. * Return: QDF_STATUS
  1805. */
  1806. QDF_STATUS
  1807. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  1808. /**
  1809. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1810. * @psoc: psoc context
  1811. * @value: data to be set
  1812. *
  1813. * Return: QDF_STATUS
  1814. */
  1815. QDF_STATUS
  1816. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1817. /**
  1818. * mlme_update_vht_cap() - update vht capabilities
  1819. * @psoc: psoc context
  1820. * @cfg: data to be set
  1821. *
  1822. * Return: QDF_STATUS
  1823. */
  1824. QDF_STATUS
  1825. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  1826. /**
  1827. * mlme_update_nss_vht_cap() - Update the number of spatial
  1828. * streams supported for vht
  1829. * @psoc: psoc context
  1830. *
  1831. * Return: QDF_STATUS
  1832. */
  1833. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1834. /**
  1835. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1836. * @psoc: psoc context
  1837. * @value: value to be filled for caller
  1838. *
  1839. * Return: QDF_STATUS
  1840. */
  1841. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1842. bool *value);
  1843. /**
  1844. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1845. * @psoc: psoc context
  1846. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1847. *
  1848. * Return: QDF_STATUS
  1849. */
  1850. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1851. bool value);
  1852. /**
  1853. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  1854. * @psoc: psoc context
  1855. *
  1856. * Return: QDF_STATUS
  1857. */
  1858. QDF_STATUS
  1859. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1860. /**
  1861. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  1862. * @psoc: psoc context
  1863. *
  1864. * Return: QDF_STATUS
  1865. */
  1866. QDF_STATUS
  1867. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1868. /**
  1869. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  1870. * @psoc: psoc context
  1871. *
  1872. * Return: QDF_STATUS
  1873. */
  1874. QDF_STATUS
  1875. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1876. /**
  1877. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  1878. * @psoc: psoc context
  1879. *
  1880. * Return: QDF_STATUS
  1881. */
  1882. QDF_STATUS
  1883. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1884. /**
  1885. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  1886. *
  1887. * @psoc: pointer to psoc object
  1888. * @value: value which needs to filled by API
  1889. *
  1890. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  1891. *
  1892. * Return: QDF_STATUS
  1893. */
  1894. QDF_STATUS
  1895. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  1896. uint32_t *value);
  1897. /**
  1898. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  1899. *
  1900. * @psoc: pointer to psoc object
  1901. * @value: value which needs to filled by API
  1902. *
  1903. * This API fetches the user setting to determine if SAP MCC with other persona
  1904. * to be avoided.
  1905. *
  1906. * Return: QDF_STATUS
  1907. */
  1908. QDF_STATUS
  1909. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  1910. uint8_t *value);
  1911. /**
  1912. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  1913. *
  1914. * @psoc: pointer to psoc object
  1915. * @value: value which needs to filled by API
  1916. *
  1917. * To get INI value which helps to determe whether to enable/disable use of
  1918. * broadcast probe response to increase the detectability of SAP in MCC mode.
  1919. *
  1920. *
  1921. * Return: QDF_STATUS
  1922. */
  1923. QDF_STATUS
  1924. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  1925. uint8_t *value);
  1926. /**
  1927. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  1928. *
  1929. * @psoc: pointer to psoc object
  1930. * @value: value which needs to filled by API
  1931. *
  1932. * To get INI value which helps to determine whether to enable/disable
  1933. * use of long duration RTS-CTS protection when SAP goes off
  1934. * channel in MCC mode.
  1935. *
  1936. * Return: QDF_STATUS
  1937. */
  1938. QDF_STATUS
  1939. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  1940. uint8_t *value);
  1941. /**
  1942. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  1943. *
  1944. * @psoc: pointer to psoc object
  1945. * @value: value which needs to filled by API
  1946. *
  1947. * To get INI value which helps to determine whether to enable MCC feature
  1948. *
  1949. * Return: QDF_STATUS
  1950. */
  1951. QDF_STATUS
  1952. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  1953. uint8_t *value);
  1954. /**
  1955. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  1956. * @psoc: pointer to psoc object
  1957. * @value: pointer to the value which will be filled for the caller
  1958. *
  1959. * Return: QDF Status
  1960. */
  1961. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  1962. bool *value);
  1963. /**
  1964. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  1965. * bitmap
  1966. * @psoc: pointer to psoc object
  1967. * @dtim_selection_div: value that is requested by the caller
  1968. * This function gets the dtim selection diversity bitmap to be
  1969. * sent to the firmware
  1970. *
  1971. * Return: QDF_STATUS_SUCCESS - in case of success
  1972. */
  1973. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  1974. uint32_t *dtim_selection_div);
  1975. /**
  1976. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  1977. * minimum listen interval value
  1978. * @psoc: pointer to psoc object
  1979. * @value: value that is requested by the caller
  1980. *
  1981. * Return: QDF_STATUS_SUCCESS - in case of success
  1982. */
  1983. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  1984. uint32_t *value);
  1985. /**
  1986. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  1987. * maximum listen interval value
  1988. * @psoc: pointer to psoc object
  1989. * @value: value that is requested by the caller
  1990. *
  1991. * Return: QDF_STATUS_SUCCESS - in case of success
  1992. */
  1993. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  1994. uint32_t *value);
  1995. /**
  1996. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  1997. * @psoc: pointer to psoc object
  1998. * @value: value that is requested by the caller
  1999. *
  2000. * Return: QDF_STATUS_SUCCESS - in case of success
  2001. */
  2002. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  2003. uint32_t *value);
  2004. /**
  2005. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  2006. * enabled/disabled
  2007. * @psoc: pointer to psoc object
  2008. * @value: value that is requested by the caller
  2009. *
  2010. * Return: QDF_STATUS_SUCCESS - in case of success
  2011. */
  2012. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  2013. bool *value);
  2014. /**
  2015. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  2016. * @psoc: pointer to psoc object
  2017. * @value: value that is requested by the caller
  2018. *
  2019. * Return: QDF_STATUS_SUCCESS - in case of success
  2020. */
  2021. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  2022. /**
  2023. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  2024. * enabled/disabled
  2025. * @psoc: pointer to psoc object
  2026. * @value: value that is requested by the caller
  2027. *
  2028. * Return: QDF_STATUS_SUCCESS - in case of success
  2029. */
  2030. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  2031. bool *value);
  2032. /**
  2033. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  2034. * @wps_params: pointer to mlme wps parameters structure
  2035. * @data: data to which the parameter is to be copied
  2036. *
  2037. * Return None
  2038. *
  2039. */
  2040. void
  2041. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  2042. /**
  2043. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  2044. * @psoc: pointer to psoc object
  2045. * @val: Pointer to the value which will be filled for the caller
  2046. *
  2047. * Return: QDF Status
  2048. */
  2049. QDF_STATUS
  2050. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  2051. uint32_t *value);
  2052. /**
  2053. * wlan_mlme_get_4way_hs_offload() - get 4-way hs offload to fw cfg
  2054. * @psoc: pointer to psoc object
  2055. * @val: Pointer to the value which will be filled for the caller
  2056. *
  2057. * Return: QDF Status
  2058. */
  2059. QDF_STATUS
  2060. wlan_mlme_get_4way_hs_offload(struct wlan_objmgr_psoc *psoc, bool *value);
  2061. /**
  2062. * wlan_mlme_get_bmiss_skip_full_scan_value() - To get value of
  2063. * bmiss_skip_full_scan ini
  2064. * @psoc: pointer to psoc object
  2065. * @val: Pointer to the value which will be filled for the caller
  2066. *
  2067. * Return: QDF Status
  2068. */
  2069. QDF_STATUS
  2070. wlan_mlme_get_bmiss_skip_full_scan_value(struct wlan_objmgr_psoc *psoc,
  2071. bool *value);
  2072. /**
  2073. * mlme_get_peer_phymode() - get phymode of peer
  2074. * @psoc: pointer to psoc object
  2075. * @mac: Pointer to the mac addr of the peer
  2076. * @peer_phymode: phymode
  2077. *
  2078. * Return: QDF Status
  2079. */
  2080. QDF_STATUS
  2081. mlme_get_peer_phymode(struct wlan_objmgr_psoc *psoc, uint8_t *mac,
  2082. enum wlan_phymode *peer_phymode);
  2083. /**
  2084. * mlme_set_tgt_wpa3_roam_cap() - Set the target WPA3 roam support
  2085. * to mlme
  2086. * @psoc: pointer to PSOC object
  2087. * @akm_bitmap: Bitmap of akm suites supported for roaming by the firmware
  2088. *
  2089. * Return: QDF Status
  2090. */
  2091. QDF_STATUS mlme_set_tgt_wpa3_roam_cap(struct wlan_objmgr_psoc *psoc,
  2092. uint32_t akm_bitmap);
  2093. /**
  2094. * wlan_mlme_get_ignore_fw_reg_offload_ind() - Get the
  2095. * ignore_fw_reg_offload_ind ini
  2096. * @psoc: pointer to psoc object
  2097. * @disabled: output pointer to hold user config
  2098. *
  2099. * Return: QDF Status
  2100. */
  2101. QDF_STATUS
  2102. wlan_mlme_get_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc,
  2103. bool *disabled);
  2104. /**
  2105. * mlme_get_roam_trigger_str() - Get the string for enum
  2106. * WMI_ROAM_TRIGGER_REASON_ID reason.
  2107. * @roam_scan_trigger: roam scan trigger ID
  2108. *
  2109. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_REASON_ID
  2110. */
  2111. char *mlme_get_roam_trigger_str(uint32_t roam_scan_trigger);
  2112. /**
  2113. * mlme_get_converted_timestamp() - Return time of the day
  2114. * from timestamp
  2115. * @timestamp: Timestamp value in milliseconds
  2116. * @time: Output buffer to fill time into
  2117. *
  2118. * Return: Time of the day in [HH:MM:SS.uS]
  2119. */
  2120. void mlme_get_converted_timestamp(uint32_t timestamp, char *time);
  2121. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2122. /**
  2123. * wlan_mlme_set_sae_single_pmk_bss_cap - API to set WPA3 single pmk AP IE
  2124. * @psoc: Pointer to psoc object
  2125. * @vdev_id: vdev id
  2126. * @val: value to be set
  2127. *
  2128. * Return : None
  2129. */
  2130. void wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2131. uint8_t vdev_id, bool val);
  2132. /**
  2133. * wlan_mlme_update_sae_single_pmk - API to update mlme_pmkid_info
  2134. * @vdev: vdev object
  2135. * @sae_single_pmk: pointer to sae_single_pmk_info struct
  2136. *
  2137. * Return : None
  2138. */
  2139. void
  2140. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2141. struct mlme_pmk_info *sae_single_pmk);
  2142. /**
  2143. * wlan_mlme_get_sae_single_pmk_info - API to get mlme_pmkid_info
  2144. * @vdev: vdev object
  2145. * @pmksa: pointer to PMKSA struct
  2146. *
  2147. * Return : None
  2148. */
  2149. void
  2150. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2151. struct wlan_mlme_sae_single_pmk *pmksa);
  2152. /**
  2153. * wlan_mlme_clear_sae_single_pmk_info - API to clear mlme_pmkid_info ap caps
  2154. * @vdev: vdev object
  2155. * @pmk : pmk info to clear
  2156. *
  2157. * Return : None
  2158. */
  2159. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2160. struct mlme_pmk_info *pmk);
  2161. #else
  2162. static inline void
  2163. wlan_mlme_set_sae_single_pmk_bss_cap(struct wlan_objmgr_psoc *psoc,
  2164. uint8_t vdev_id, bool val)
  2165. {
  2166. }
  2167. static inline void
  2168. wlan_mlme_update_sae_single_pmk(struct wlan_objmgr_vdev *vdev,
  2169. struct mlme_pmk_info *sae_single_pmk)
  2170. {
  2171. }
  2172. static inline void
  2173. wlan_mlme_get_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2174. struct wlan_mlme_sae_single_pmk *pmksa)
  2175. {
  2176. }
  2177. static inline
  2178. void wlan_mlme_clear_sae_single_pmk_info(struct wlan_objmgr_vdev *vdev,
  2179. struct mlme_pmk_info *pmk)
  2180. {
  2181. }
  2182. #endif
  2183. /**
  2184. * mlme_get_roam_fail_reason_str() - Get fail string from enum
  2185. * WMI_ROAM_FAIL_REASON_ID
  2186. * @result: Roam fail reason
  2187. *
  2188. * Return: Meaningful string from enum
  2189. */
  2190. char *mlme_get_roam_fail_reason_str(uint32_t result);
  2191. /**
  2192. * mlme_get_sub_reason_str() - Get roam trigger sub reason from enum
  2193. * WMI_ROAM_TRIGGER_SUB_REASON_ID
  2194. * @sub_reason: Sub reason value
  2195. *
  2196. * Return: Meaningful string from enum WMI_ROAM_TRIGGER_SUB_REASON_ID
  2197. */
  2198. char *mlme_get_sub_reason_str(uint32_t sub_reason);
  2199. /**
  2200. * wlan_mlme_get_mgmt_max_retry() - Get the
  2201. * max mgmt retry
  2202. * @psoc: pointer to psoc object
  2203. * @max_retry: output pointer to hold user config
  2204. *
  2205. * Return: QDF Status
  2206. */
  2207. QDF_STATUS
  2208. wlan_mlme_get_mgmt_max_retry(struct wlan_objmgr_psoc *psoc,
  2209. uint8_t *max_retry);
  2210. /**
  2211. * wlan_mlme_get_status_ring_buffer() - Get the
  2212. * status of ring buffer
  2213. * @psoc: pointer to psoc object
  2214. * @enable_ring_buffer: output pointer to point the configured value of
  2215. * ring buffer
  2216. *
  2217. * Return: QDF_STATUS
  2218. */
  2219. QDF_STATUS
  2220. wlan_mlme_get_status_ring_buffer(struct wlan_objmgr_psoc *psoc,
  2221. bool *enable_ring_buffer);
  2222. /**
  2223. * wlan_mlme_get_peer_unmap_conf() - Indicate if peer unmap confirmation
  2224. * support is enabled or disabled
  2225. * @psoc: pointer to psoc object
  2226. *
  2227. * Return: true if peer unmap confirmation support is enabled, else false
  2228. */
  2229. bool wlan_mlme_get_peer_unmap_conf(struct wlan_objmgr_psoc *psoc);
  2230. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2231. /**
  2232. * wlan_mlme_get_roam_reason_vsie_status() - Indicate if roam reason
  2233. * vsie is enabled or disabled
  2234. * @psoc: pointer to psoc object
  2235. * @roam_reason_vsie_enabled: pointer to hold value of roam reason
  2236. * vsie
  2237. *
  2238. * Return: QDF_STATUS
  2239. */
  2240. QDF_STATUS
  2241. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2242. uint8_t *roam_reason_vsie_enabled);
  2243. /**
  2244. * wlan_mlme_set_roam_reason_vsie_status() - Update roam reason vsie status
  2245. * @psoc: pointer to psoc object
  2246. * @roam_reason_vsie_enabled: value of roam reason vsie
  2247. *
  2248. * Return: QDF_STATUS
  2249. */
  2250. QDF_STATUS
  2251. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2252. uint8_t roam_reason_vsie_enabled);
  2253. /**
  2254. * wlan_mlme_get_roaming_triggers - Get the roaming triggers bitmap
  2255. * @psoc: Pointer to PSOC object
  2256. *
  2257. * Return: Roaming triggers value
  2258. */
  2259. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc);
  2260. #else
  2261. static inline QDF_STATUS
  2262. wlan_mlme_get_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2263. uint8_t *roam_reason_vsie_enable)
  2264. {
  2265. return QDF_STATUS_E_FAILURE;
  2266. }
  2267. static inline QDF_STATUS
  2268. wlan_mlme_set_roam_reason_vsie_status(struct wlan_objmgr_psoc *psoc,
  2269. uint8_t roam_reason_vsie_enable)
  2270. {
  2271. return QDF_STATUS_E_FAILURE;
  2272. }
  2273. static inline
  2274. uint32_t wlan_mlme_get_roaming_triggers(struct wlan_objmgr_psoc *psoc)
  2275. {
  2276. return 0xFFFF;
  2277. }
  2278. #endif
  2279. /**
  2280. * wlan_mlme_get_dfs_chan_ageout_time() - Get the DFS Channel ageout time
  2281. * @psoc: pointer to psoc object
  2282. * @dfs_chan_ageout_time: output pointer to hold configured value of DFS
  2283. * Channel ageout time
  2284. *
  2285. * Return: QDF Status
  2286. */
  2287. QDF_STATUS
  2288. wlan_mlme_get_dfs_chan_ageout_time(struct wlan_objmgr_psoc *psoc,
  2289. uint8_t *dfs_chan_ageout_time);
  2290. #endif /* _WLAN_MLME_API_H_ */