wlan_mlme_api.h 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198
  1. /*
  2. * Copyright (c) 2018-2019 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. * mlme_get_wep_key() - get the wep key to process during auth frame
  61. * @vdev: VDEV object for which the wep key is being requested
  62. * @wep_params: cfg wep parameters structure
  63. * @wep_key_id: default key number
  64. * @default_key: default key to be copied
  65. * @key_len: length of the key to copy
  66. *
  67. * Return QDF_STATUS
  68. */
  69. QDF_STATUS mlme_get_wep_key(struct wlan_objmgr_vdev *vdev,
  70. struct wlan_mlme_wep_cfg *wep_params,
  71. enum wep_key_id wep_keyid, uint8_t *default_key,
  72. qdf_size_t *key_len);
  73. /**
  74. * mlme_set_wep_key() - set the wep keys during auth
  75. * @wep_params: cfg wep parametrs structure
  76. * @wep_key_id: default key number that needs to be copied
  77. * @key_to_set: destination buffer to be copied
  78. * @len: size to be copied
  79. */
  80. QDF_STATUS mlme_set_wep_key(struct wlan_mlme_wep_cfg *wep_params,
  81. enum wep_key_id wep_keyid, uint8_t *key_to_set,
  82. qdf_size_t len);
  83. /**
  84. * wlan_mlme_get_tx_power() - Get the max tx power in particular band
  85. * @psoc: pointer to psoc object
  86. * @band: 2ghz/5ghz band
  87. *
  88. * Return: value of tx power in the respective band
  89. */
  90. uint8_t wlan_mlme_get_tx_power(struct wlan_objmgr_psoc *psoc,
  91. enum band_info band);
  92. /**
  93. * wlan_mlme_get_power_usage() - Get the power usage info
  94. * @psoc: pointer to psoc object
  95. *
  96. * Return: pointer to character array of power usage
  97. */
  98. char *wlan_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc);
  99. /**
  100. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  101. * @psoc: pointer to psoc object
  102. * @value: pointer to the value which will be filled for the caller
  103. *
  104. * Return: QDF Status
  105. */
  106. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  107. struct mlme_ht_capabilities_info
  108. *ht_cap_info);
  109. /**
  110. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  111. * @psoc: pointer to psoc object
  112. * @pbuf: pointer of the buff which will be filled for the caller
  113. * @plen: pointer of max buffer length
  114. * actual length will be returned at this address
  115. * This function gets manufacturer name
  116. *
  117. * Return: QDF_STATUS_SUCCESS - in case of success
  118. */
  119. QDF_STATUS
  120. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  121. uint8_t *pbuf, uint32_t *plen);
  122. /**
  123. * wlan_mlme_get_model_number() - get model number
  124. * @psoc: pointer to psoc object
  125. * @pbuf: pointer of the buff which will be filled for the caller
  126. * @plen: pointer of max buffer length
  127. * actual length will be returned at this address
  128. * This function gets model number
  129. *
  130. * Return: QDF_STATUS_SUCCESS - in case of success
  131. */
  132. QDF_STATUS
  133. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  134. uint8_t *pbuf, uint32_t *plen);
  135. /**
  136. * wlan_mlme_get_model_name() - get model name
  137. * @psoc: pointer to psoc object
  138. * @pbuf: pointer of the buff which will be filled for the caller
  139. * @plen: pointer of max buffer length
  140. * actual length will be returned at this address
  141. * This function gets model name
  142. *
  143. * Return: QDF_STATUS_SUCCESS - in case of success
  144. */
  145. QDF_STATUS
  146. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  147. uint8_t *pbuf, uint32_t *plen);
  148. /**
  149. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  150. * @psoc: pointer to psoc object
  151. * @pbuf: pointer of the buff which will be filled for the caller
  152. * @plen: pointer of max buffer length
  153. * actual length will be returned at this address
  154. * This function gets manufacture product name
  155. *
  156. * Return: QDF_STATUS_SUCCESS - in case of success
  157. */
  158. QDF_STATUS
  159. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  160. uint8_t *pbuf, uint32_t *plen);
  161. /**
  162. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  163. * @psoc: pointer to psoc object
  164. * @pbuf: pointer of the buff which will be filled for the caller
  165. * @plen: pointer of max buffer length
  166. * actual length will be returned at this address
  167. * This function gets manufacture product version
  168. *
  169. * Return: QDF_STATUS_SUCCESS - in case of success
  170. */
  171. QDF_STATUS
  172. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  173. uint8_t *pbuf, uint32_t *plen);
  174. /**
  175. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  176. * @psoc: pointer to psoc object
  177. * @value: Value that needs to be set from the caller
  178. *
  179. * Return: QDF Status
  180. */
  181. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  182. struct mlme_ht_capabilities_info
  183. ht_cap_info);
  184. /**
  185. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  186. * @psoc: pointer to psoc object
  187. * @value: pointer to the value where the max_amsdu num is to be filled
  188. *
  189. * Return: QDF_STATUS
  190. */
  191. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  192. uint8_t *value);
  193. /**
  194. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  195. * @psoc: pointer to psoc object
  196. * @value: value to be set for max_amsdu_num
  197. *
  198. * Return: QDF_STATUS
  199. */
  200. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  201. uint8_t value);
  202. /**
  203. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  204. * @psoc: pointer to psoc object
  205. * @value: pointer to the value where the ht mpdu density is to be filled
  206. *
  207. * Return: QDF_STATUS
  208. */
  209. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  210. uint8_t *value);
  211. /**
  212. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  213. * @psoc: pointer to psoc object
  214. * @value: value to be set for ht mpdu density
  215. *
  216. * Return: QDF_STATUS
  217. */
  218. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  219. uint8_t value);
  220. /**
  221. * wlan_mlme_get_band_capability() - Get the Band capability config
  222. * @psoc: pointer to psoc object
  223. * @band_capability: Pointer to the variable from caller
  224. *
  225. * Return: QDF Status
  226. */
  227. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  228. uint8_t *band_capability);
  229. /**
  230. * wlan_mlme_set_band_capability() - Set the Band capability config
  231. * @psoc: pointer to psoc object
  232. * @band_capability: Value to be set from the caller
  233. *
  234. * Return: QDF Status
  235. */
  236. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  237. uint8_t band_capability);
  238. /**
  239. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  240. * @psoc: pointer to psoc object
  241. * @prevent_link_down: Pointer to the variable from caller
  242. *
  243. * Return: QDF Status
  244. */
  245. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  246. bool *prevent_link_down);
  247. /**
  248. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  249. * @psoc: pointer to psoc object
  250. * @select_5ghz_margin: Pointer to the variable from caller
  251. *
  252. * Return: QDF Status
  253. */
  254. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *select_5ghz_margin);
  256. /**
  257. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  258. * @psoc: pointer to psoc object
  259. * @rtt_mac_randomization: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  264. bool *rtt_mac_randomization);
  265. /**
  266. * wlan_mlme_get_crash_inject() - Get the crash inject config
  267. * @psoc: pointer to psoc object
  268. * @crash_inject: Pointer to the variable from caller
  269. *
  270. * Return: QDF Status
  271. */
  272. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  273. bool *crash_inject);
  274. /**
  275. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  276. * @psoc: pointer to psoc object
  277. * @lpass_support: Pointer to the variable from caller
  278. *
  279. * Return: QDF Status
  280. */
  281. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  282. bool *lpass_support);
  283. /**
  284. * wlan_mlme_get_self_recovery() - Get the self recovery config
  285. * @psoc: pointer to psoc object
  286. * @self_recovery: Pointer to the variable from caller
  287. *
  288. * Return: QDF Status
  289. */
  290. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  291. bool *self_recovery);
  292. /**
  293. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  294. * @psoc: pointer to psoc object
  295. * @sub_20_chan_width: Pointer to the variable from caller
  296. *
  297. * Return: QDF Status
  298. */
  299. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  300. uint8_t *sub_20_chan_width);
  301. /**
  302. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  303. * @psoc: pointer to psoc object
  304. * @fw_timeout_crash: Pointer to the variable from caller
  305. *
  306. * Return: QDF Status
  307. */
  308. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  309. bool *fw_timeout_crash);
  310. /**
  311. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  312. * @psoc: pointer to psoc object
  313. * @ito_repeat_count: Pointer to the variable from caller
  314. *
  315. * Return: QDF Status
  316. */
  317. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  318. uint8_t *ito_repeat_count);
  319. /**
  320. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  321. * @psoc: pointer to psoc object
  322. * @value: Value that needs to be set from the caller
  323. *
  324. * Return: QDF Status
  325. */
  326. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  327. bool *value);
  328. /**
  329. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  330. * @psoc: pointer to psoc object
  331. * @value: Value that needs to be set from the caller
  332. *
  333. * Return: QDF Status
  334. */
  335. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  336. uint32_t *value);
  337. /**
  338. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  339. * @psoc: pointer to psoc object
  340. * @value: Value that needs to be set from the caller
  341. *
  342. * Return: QDF Status
  343. */
  344. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  345. bool *value);
  346. /**
  347. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  348. * acs support for dfs ltecoex
  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
  355. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  356. bool *value);
  357. /**
  358. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  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_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  366. bool *value);
  367. /**
  368. *
  369. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  370. * override flag is set.
  371. * @psoc: pointer to psoc object
  372. * @sme_config - Sme config struct
  373. *
  374. * Return: QDF Status
  375. */
  376. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  377. bool *value);
  378. /**
  379. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  380. * @psoc: pointer to psoc object
  381. * @value: Value that needs to be set from the caller
  382. *
  383. * Return: QDF Status
  384. */
  385. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  386. bool *value);
  387. /**
  388. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  389. * @psoc: pointer to psoc object
  390. * @value: Value that needs to be set from the caller
  391. *
  392. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  393. */
  394. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  395. bool *value);
  396. /**
  397. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  398. * @psoc: pointer to psoc object
  399. * @value: Value that caller needs to get
  400. *
  401. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  402. */
  403. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  404. uint8_t *value);
  405. /**
  406. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  407. * @psoc: pointer to psoc object
  408. * @value: Value that needs to be set from the caller
  409. *
  410. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  411. */
  412. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  413. uint16_t *value);
  414. /**
  415. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  416. * @psoc: pointer to psoc object
  417. * @value: Value that caller needs to get
  418. *
  419. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  420. */
  421. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  422. uint16_t *value);
  423. /**
  424. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  425. * flag
  426. * @psoc: pointer to psoc object
  427. * @value: Value that needs to be set from the caller
  428. *
  429. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  430. */
  431. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  432. bool *value);
  433. /**
  434. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  435. * @psoc: pointer to psoc object
  436. * @session_id: vdev_id
  437. *
  438. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  439. */
  440. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  441. uint8_t session_id);
  442. /**
  443. * wlan_mlme_get_listen_interval() - Get listen interval
  444. * @psoc: pointer to psoc object
  445. * @value: Pointer to value that needs to be filled by MLME
  446. *
  447. * Return: QDF Status
  448. */
  449. QDF_STATUS wlan_mlme_get_listen_interval(struct wlan_objmgr_psoc *psoc,
  450. int *value);
  451. /**
  452. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  453. * @psoc: pointer to psoc object
  454. * @value: Value that needs to be set from the caller
  455. *
  456. * Return: QDF Status
  457. */
  458. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  459. int value);
  460. /**
  461. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  462. * @psoc: pointer to psoc object
  463. * @value: Value that needs to be set from the caller
  464. *
  465. * Return: QDF Status
  466. */
  467. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  468. int value);
  469. /**
  470. * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  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_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  477. int value);
  478. /**
  479. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  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_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  486. bool *value);
  487. /**
  488. * wlan_mlme_set_sap_get_peer_info() - set the sap get peer info
  489. * @psoc: pointer to psoc object
  490. * @value: value to overwrite the sap get peer info
  491. *
  492. * Return: QDF Status
  493. */
  494. QDF_STATUS wlan_mlme_set_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  495. bool value);
  496. /**
  497. * wlan_mlme_is_sap_bcast_deauth_enabled() - get the enable/disable value
  498. * for broadcast deauth in sap
  499. * @psoc: pointer to psoc object
  500. * @value: Value that needs to get from the caller
  501. *
  502. * Return: QDF Status
  503. */
  504. QDF_STATUS
  505. wlan_mlme_is_sap_bcast_deauth_enabled(struct wlan_objmgr_psoc *psoc,
  506. bool *value);
  507. /**
  508. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  509. * channels
  510. * @psoc: pointer to psoc object
  511. * @value: Value that needs to be set from the caller
  512. *
  513. * Return: QDF Status
  514. */
  515. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  516. bool *value);
  517. /**
  518. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  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_max_peers(struct wlan_objmgr_psoc *psoc,
  525. int *value);
  526. /**
  527. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  528. * @psoc: pointer to psoc object
  529. * @value: Value that needs to be set from the caller
  530. *
  531. * Return: QDF Status
  532. */
  533. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  534. int value);
  535. /**
  536. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  537. * @psoc: pointer to psoc object
  538. * @value: Value that needs to be set from the caller
  539. *
  540. * Return: QDF Status
  541. */
  542. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  543. int *value);
  544. /**
  545. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  546. * reorder buffs.
  547. * @psoc: pointer to psoc object
  548. * @value: Value that needs to be set from the caller
  549. *
  550. * Return: QDF Status
  551. */
  552. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  553. *psoc, int *value);
  554. /**
  555. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  556. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  563. int *value);
  564. /**
  565. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  566. * switch mode
  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_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  573. bool *value);
  574. /**
  575. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  576. * restart
  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_internal_restart(struct wlan_objmgr_psoc *psoc,
  583. bool *value);
  584. /**
  585. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  586. * restart
  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_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  593. uint8_t *value);
  594. /**
  595. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  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_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  603. uint8_t *value);
  604. /**
  605. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  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_country_priority(struct wlan_objmgr_psoc *psoc,
  613. bool *value);
  614. /**
  615. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  616. * beacon interval
  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_reduced_beacon_interval(struct wlan_objmgr_psoc
  623. *psoc, int *value);
  624. /**
  625. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  626. * enabled beacon interval
  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_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  633. *psoc, bool *value);
  634. /**
  635. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  636. *
  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_force_11n_for_11ac(struct wlan_objmgr_psoc
  643. *psoc, bool *value);
  644. /**
  645. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  646. *
  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_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  653. *psoc, bool *value);
  654. /**
  655. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  656. *
  657. * @psoc: pointer to psoc object
  658. * @value: pointer to the value which will be filled for the caller
  659. *
  660. * Return: QDF Status
  661. */
  662. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  663. bool *value);
  664. /**
  665. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  666. *
  667. * @psoc: pointer to psoc object
  668. * @value: pointer to the value which will be filled for the caller
  669. *
  670. * Return: QDF Status
  671. */
  672. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  673. bool *value);
  674. /**
  675. * wlan_mlme_set_go_11ac_override() - set 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_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  683. bool value);
  684. /**
  685. * wlan_mlme_set_sap_11ac_override() - set 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_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  693. bool value);
  694. /**
  695. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  696. * info for STA
  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_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  703. bool *value);
  704. /**
  705. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  706. * info for SAP
  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_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  713. bool *value);
  714. #ifdef WLAN_FEATURE_11AX
  715. /**
  716. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  717. * @psoc: pointer to psoc object
  718. * @value: Value that needs to be set from the caller
  719. *
  720. * Return: QDF Status
  721. */
  722. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  723. uint32_t *value);
  724. /**
  725. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  726. * @psoc: pointer to psoc object
  727. * @value: Value that needs to be set from the caller
  728. *
  729. * Return: QDF Status
  730. */
  731. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  732. uint32_t value);
  733. /**
  734. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  735. * @psoc: pointer to psoc object
  736. * @value: Value that needs to be set from the caller
  737. *
  738. * Return: QDF Status
  739. */
  740. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  741. uint8_t *value);
  742. /**
  743. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  744. * @psoc: pointer to psoc object
  745. * @value: Value that needs to be set from the caller
  746. *
  747. * Return: QDF Status
  748. */
  749. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  750. uint8_t *value);
  751. /**
  752. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  753. *
  754. * @psoc: pointer to psoc object
  755. * @cfg: pointer to config params from target
  756. *
  757. * This api to be used by callers to update
  758. * he caps in mlme.
  759. *
  760. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  761. */
  762. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  763. struct wma_tgt_cfg *cfg);
  764. #endif
  765. /**
  766. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  767. * @psoc: pointer to psoc object
  768. *
  769. * Return: is_ap_prot_enabled flag
  770. */
  771. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  772. /**
  773. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  774. * @psoc: pointer to psoc object
  775. * @value: pointer to the value which needs to be filled for the caller
  776. *
  777. * Return: QDF Status
  778. */
  779. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  780. uint16_t *value);
  781. /**
  782. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  783. * enabled/disabled
  784. * @psoc: pointer to psoc object
  785. * @value: pointer to the value which needs to be filled for the caller
  786. *
  787. * Return: QDF Status
  788. */
  789. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  790. bool *value);
  791. /**
  792. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  793. * @psoc: pointer to psoc object
  794. * @value: pointer to the value which will be filled for the caller
  795. *
  796. * Return: QDF Status
  797. */
  798. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  799. uint32_t *value);
  800. /**
  801. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  802. * @psoc: pointer to psoc object
  803. * @value: Value that needs to be set from the caller
  804. *
  805. * Return: QDF Status
  806. */
  807. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  808. uint32_t value);
  809. /**
  810. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  811. * config
  812. * @psoc: pointer to psoc object
  813. * @value: pointer to the value which will be filled for the caller
  814. *
  815. * Return: QDF Status
  816. */
  817. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  818. uint32_t *value);
  819. /**
  820. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  821. * config
  822. * @psoc: pointer to psoc object
  823. * @value: Value that needs to be set from the caller
  824. *
  825. * Return: QDF Status
  826. */
  827. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  828. uint32_t value);
  829. /**
  830. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  831. * @psoc: pointer to psoc object
  832. * @value: pointer to the value which will be filled for the caller
  833. *
  834. * Return: QDF Status
  835. */
  836. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  837. bool *value);
  838. /**
  839. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  840. * @psoc: pointer to psoc object
  841. * @value: value that needs to be set from the caller
  842. *
  843. * Return: QDF Status
  844. */
  845. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  846. bool value);
  847. /**
  848. * wlan_mlme_get_tl_delayed_trgr_frm_int() - Get delay interval(in ms)
  849. * of UAPSD auto trigger
  850. * @psoc: pointer to psoc object
  851. * @value: Value that needs to be set from the caller
  852. *
  853. * Return: None
  854. */
  855. void wlan_mlme_get_tl_delayed_trgr_frm_int(struct wlan_objmgr_psoc *psoc,
  856. uint32_t *value);
  857. /**
  858. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  859. * for VI
  860. * @psoc: pointer to psoc object
  861. * @value: Value that needs to be set from the caller
  862. *
  863. * Return: QDF Status
  864. */
  865. QDF_STATUS
  866. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  867. /**
  868. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  869. * MSDU size for VI
  870. * @psoc: pointer to psoc object
  871. * @value: Value that needs to be set from the caller
  872. *
  873. * Return: QDF Status
  874. */
  875. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  876. uint16_t *value);
  877. /**
  878. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  879. * rate for VI
  880. * @psoc: pointer to psoc object
  881. * @value: Value that needs to be set from the caller
  882. *
  883. * Return: QDF Status
  884. */
  885. QDF_STATUS
  886. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  887. uint32_t *value);
  888. /**
  889. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  890. * rate for VI
  891. * @psoc: pointer to psoc object
  892. * @value: Value that needs to be set from the caller
  893. *
  894. * Return: QDF Status
  895. */
  896. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  897. uint32_t *value);
  898. /**
  899. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  900. * allowance for VI
  901. * @psoc: pointer to psoc object
  902. * @value: Value that needs to be set from the caller
  903. *
  904. * Return: QDF Status
  905. */
  906. QDF_STATUS
  907. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  908. /**
  909. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  910. * interval for video
  911. * @psoc: pointer to psoc object
  912. * @value: pointer to the value which will be filled for the caller
  913. *
  914. * Return: QDF Status
  915. */
  916. QDF_STATUS
  917. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  918. uint32_t *value);
  919. /**
  920. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  921. * interval for video
  922. * @psoc: pointer to psoc object
  923. * @value: pointer to the value which will be filled for the caller
  924. *
  925. * Return: QDF Status
  926. */
  927. QDF_STATUS
  928. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  929. uint32_t *value);
  930. /**
  931. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  932. * for BE
  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_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  940. uint8_t *value);
  941. /**
  942. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  943. * MSDU size for BE
  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_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  950. uint16_t *value);
  951. /**
  952. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  953. * rate for BE
  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 wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  960. uint32_t *value);
  961. /**
  962. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  963. * rate for BE
  964. * @psoc: pointer to psoc object
  965. * @value: Value that needs to be set from the caller
  966. *
  967. * Return: QDF Status
  968. */
  969. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  970. uint32_t *value);
  971. /**
  972. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  973. * allowance for BE
  974. * @psoc: pointer to psoc object
  975. * @value: Value that needs to be set from the caller
  976. *
  977. * Return: QDF Status
  978. */
  979. QDF_STATUS
  980. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  981. /**
  982. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  983. * interval for BE
  984. * @psoc: pointer to psoc object
  985. * @value: pointer to the value which will be filled for the caller
  986. *
  987. * Return: QDF Status
  988. */
  989. QDF_STATUS
  990. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  991. uint32_t *value);
  992. /**
  993. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  994. * interval for BE
  995. * @psoc: pointer to psoc object
  996. * @value: pointer to the value which will be filled for the caller
  997. *
  998. * Return: QDF Status
  999. */
  1000. QDF_STATUS
  1001. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1002. uint32_t *value);
  1003. /**
  1004. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1005. * for BK
  1006. * @psoc: pointer to psoc object
  1007. * @value: Value that needs to be set from the caller
  1008. *
  1009. * Return: QDF Status
  1010. */
  1011. QDF_STATUS
  1012. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1013. /**
  1014. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  1015. * MSDU size for BK
  1016. * @psoc: pointer to psoc object
  1017. * @value: Value that needs to be set from the caller
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1022. uint16_t *value);
  1023. /**
  1024. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1025. * rate for BK
  1026. * @psoc: pointer to psoc object
  1027. * @value: Value that needs to be set from the caller
  1028. *
  1029. * Return: QDF Status
  1030. */
  1031. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1032. uint32_t *value);
  1033. /**
  1034. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1035. * rate for BK
  1036. * @psoc: pointer to psoc object
  1037. * @value: Value that needs to be set from the caller
  1038. *
  1039. * Return: QDF Status
  1040. */
  1041. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1042. uint32_t *value);
  1043. /**
  1044. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1045. * allowance for BE
  1046. * @psoc: pointer to psoc object
  1047. * @value: Value that needs to be set from the caller
  1048. *
  1049. * Return: QDF Status
  1050. */
  1051. QDF_STATUS
  1052. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1053. /**
  1054. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1055. * interval for BK
  1056. * @psoc: pointer to psoc object
  1057. * @value: pointer to the value which will be filled for the caller
  1058. *
  1059. * Return: QDF Status
  1060. */
  1061. QDF_STATUS
  1062. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1063. uint32_t *value);
  1064. /**
  1065. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1066. * interval for BK
  1067. * @psoc: pointer to psoc object
  1068. * @value: pointer to the value which will be filled for the caller
  1069. *
  1070. * Return: QDF Status
  1071. */
  1072. QDF_STATUS
  1073. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1074. uint32_t *value);
  1075. /**
  1076. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1077. * @psoc: pointer to psoc object
  1078. * @value: pointer to the value which will be filled for the caller
  1079. *
  1080. * Return: QDF Status
  1081. */
  1082. QDF_STATUS
  1083. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1084. /**
  1085. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1086. * @psoc: pointer to psoc object
  1087. * @value: pointer to the value which will be filled for the caller
  1088. *
  1089. * Return: QDF Status
  1090. */
  1091. QDF_STATUS
  1092. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1093. /**
  1094. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1095. * @psoc: pointer to psoc object
  1096. * @value: pointer to the value which will be filled for the caller
  1097. *
  1098. * Return: QDF Status
  1099. */
  1100. QDF_STATUS
  1101. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1102. /**
  1103. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1104. * @psoc: pointer to psoc object
  1105. * @value: pointer to the value which will be filled for the caller
  1106. *
  1107. * Return: QDF Status
  1108. */
  1109. QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1110. bool *value);
  1111. #ifdef FEATURE_WLAN_ESE
  1112. /**
  1113. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1114. * @psoc: pointer to psoc object
  1115. * @value: pointer to the value which will be filled for the caller
  1116. *
  1117. * Return: None
  1118. */
  1119. void
  1120. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1121. uint32_t *value);
  1122. #endif
  1123. /**
  1124. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1125. * @psoc: pointer to psoc object
  1126. * @value: pointer to the value which will be filled for the caller
  1127. *
  1128. * Return: None
  1129. */
  1130. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1131. bool *value);
  1132. /**
  1133. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1134. * @psoc: pointer to psoc object
  1135. * @value: pointer to the value which will be filled for the caller
  1136. *
  1137. * Return: None
  1138. */
  1139. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1140. enum mlme_ts_info_ack_policy *value);
  1141. /**
  1142. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1143. * @psoc: pointer to psoc object
  1144. * @value: pointer to the value which will be filled for the caller
  1145. *
  1146. * Return: QDF Status
  1147. */
  1148. QDF_STATUS
  1149. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1150. /**
  1151. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1152. * for VO
  1153. * @psoc: pointer to psoc object
  1154. * @value: Value that needs to be set from the caller
  1155. *
  1156. * Return: QDF Status
  1157. */
  1158. QDF_STATUS
  1159. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1160. /**
  1161. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1162. * MSDU size for VO
  1163. * @psoc: pointer to psoc object
  1164. * @value: Value that needs to be set from the caller
  1165. *
  1166. * Return: QDF Status
  1167. */
  1168. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1169. uint16_t *value);
  1170. /**
  1171. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1172. * @psoc: pointer to psoc object
  1173. * @value: Value that needs to be set from the caller
  1174. *
  1175. * Return: QDF Status
  1176. */
  1177. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1178. uint32_t *value);
  1179. /**
  1180. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1181. * rate for VO
  1182. * @psoc: pointer to psoc object
  1183. * @value: Value that needs to be set from the caller
  1184. *
  1185. * Return: QDF Status
  1186. */
  1187. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1188. uint32_t *value);
  1189. /**
  1190. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1191. * @psoc: pointer to psoc object
  1192. * @value: Value that needs to be set from the caller
  1193. *
  1194. * Return: QDF Status
  1195. */
  1196. QDF_STATUS
  1197. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1198. /**
  1199. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1200. * @psoc: pointer to psoc object
  1201. * @value: value that needs to be set from the caller
  1202. *
  1203. * Return: QDF Status
  1204. */
  1205. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1206. bool value);
  1207. /**
  1208. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1209. * interval for voice
  1210. * @psoc: pointer to psoc object
  1211. * @value: pointer to the value which will be filled for the caller
  1212. *
  1213. * Return: QDF Status
  1214. */
  1215. QDF_STATUS
  1216. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1217. uint32_t *value);
  1218. /**
  1219. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1220. * interval for voice
  1221. * @psoc: pointer to psoc object
  1222. * @value: pointer to the value which will be filled for the caller
  1223. *
  1224. * Return: QDF Status
  1225. */
  1226. QDF_STATUS
  1227. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1228. uint32_t *value);
  1229. /**
  1230. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1231. * @psoc: psoc context
  1232. * @value: pointer to get required data
  1233. *
  1234. * Return: QDF_STATUS
  1235. */
  1236. QDF_STATUS
  1237. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1238. uint8_t *value);
  1239. /**
  1240. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1241. * @psoc: psoc context
  1242. * @value: data to be set
  1243. *
  1244. * Return: QDF_STATUS
  1245. */
  1246. QDF_STATUS
  1247. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1248. uint8_t value);
  1249. /**
  1250. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1251. * cfg item
  1252. * @psoc: psoc context
  1253. * @value: pointer to get required data
  1254. *
  1255. * Return: QDF_STATUS
  1256. */
  1257. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1258. uint8_t *value);
  1259. /**
  1260. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1261. * cfg item
  1262. * @psoc: psoc context
  1263. * @value: data to be set
  1264. *
  1265. * Return: QDF_STATUS
  1266. */
  1267. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1268. uint8_t value);
  1269. /**
  1270. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1271. * cfg item
  1272. * @psoc: psoc context
  1273. * @value: data to be set
  1274. *
  1275. * Return: QDF_STATUS
  1276. */
  1277. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1278. uint8_t *value);
  1279. /**
  1280. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1281. * cfg item
  1282. * @psoc: psoc context
  1283. * @value: pointer to get required data
  1284. *
  1285. * Return: QDF_STATUS
  1286. */
  1287. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1288. bool *value);
  1289. /**
  1290. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1291. * cfg item
  1292. * @psoc: psoc context
  1293. * @value: data to be set
  1294. *
  1295. * Return: QDF_STATUS
  1296. */
  1297. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1298. bool value);
  1299. /**
  1300. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1301. * cfg item
  1302. * @psoc: psoc context
  1303. * @value: pointer to get required data
  1304. *
  1305. * Return: QDF_STATUS
  1306. */
  1307. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1308. bool *value);
  1309. /**
  1310. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1311. * cfg item
  1312. * @psoc: psoc context
  1313. * @value: data to be set
  1314. *
  1315. * Return: QDF_STATUS
  1316. */
  1317. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1318. bool value);
  1319. /**
  1320. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1321. * cfg item
  1322. * @psoc: psoc context
  1323. * @value: pointer to get required data
  1324. *
  1325. * Return: QDF_STATUS
  1326. */
  1327. QDF_STATUS
  1328. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1329. /**
  1330. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1331. * cfg item
  1332. * @psoc: psoc context
  1333. * @value: data to be set
  1334. *
  1335. * Return: QDF_STATUS
  1336. */
  1337. QDF_STATUS
  1338. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1339. /**
  1340. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1341. * cfg item
  1342. * @psoc: psoc context
  1343. * @value: pointer to get required data
  1344. *
  1345. * Return: QDF_STATUS
  1346. */
  1347. QDF_STATUS
  1348. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1349. /**
  1350. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1351. * cfg item
  1352. * @psoc: psoc context
  1353. * @value: pointer to get required data
  1354. *
  1355. * Return: QDF_STATUS
  1356. */
  1357. QDF_STATUS
  1358. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1359. /**
  1360. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1361. * cfg item
  1362. * @psoc: psoc context
  1363. * @value: data to be set
  1364. *
  1365. * Return: QDF_STATUS
  1366. */
  1367. QDF_STATUS
  1368. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1369. /**
  1370. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1371. * cfg item
  1372. * @psoc: psoc context
  1373. * @value: pointer to get required data
  1374. *
  1375. * Return: QDF_STATUS
  1376. */
  1377. QDF_STATUS
  1378. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1379. /**
  1380. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1381. * cfg item
  1382. * @psoc: psoc context
  1383. * @value: data to be set
  1384. *
  1385. * Return: QDF_STATUS
  1386. */
  1387. QDF_STATUS
  1388. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1389. /**
  1390. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1391. * cfg item
  1392. * @psoc: psoc context
  1393. * @value: pointer to get required data
  1394. *
  1395. * Return: QDF_STATUS
  1396. */
  1397. QDF_STATUS
  1398. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1399. /**
  1400. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1401. * cfg item
  1402. * @psoc: psoc context
  1403. * @value: data to be set
  1404. *
  1405. * Return: QDF_STATUS
  1406. */
  1407. QDF_STATUS
  1408. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1409. /**
  1410. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1411. * cfg item
  1412. * @psoc: psoc context
  1413. * @value: data to be set
  1414. *
  1415. * Return: QDF_STATUS
  1416. */
  1417. QDF_STATUS
  1418. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1419. /**
  1420. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1421. * support cap
  1422. * into cfg item
  1423. * @psoc: psoc context
  1424. * @value: data to be set
  1425. *
  1426. * Return: QDF_STATUS
  1427. */
  1428. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1429. uint8_t value);
  1430. /**
  1431. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1432. * support cap into cfg item
  1433. *
  1434. * @psoc: psoc context
  1435. * @value: data to be set
  1436. *
  1437. * Return: QDF_STATUS
  1438. */
  1439. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1440. uint8_t *value);
  1441. /**
  1442. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1443. * into cfg item
  1444. * @psoc: psoc context
  1445. * @value: data to be set
  1446. *
  1447. * Return: QDF_STATUS
  1448. */
  1449. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1450. uint8_t value);
  1451. /**
  1452. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1453. * cfg item
  1454. * @psoc: psoc context
  1455. * @value: pointer to get required data
  1456. *
  1457. * Return: QDF_STATUS
  1458. */
  1459. QDF_STATUS
  1460. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1461. /**
  1462. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1463. * cfg item
  1464. * @psoc: psoc context
  1465. * @value: data to be set
  1466. *
  1467. * Return: QDF_STATUS
  1468. */
  1469. QDF_STATUS
  1470. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1471. /**
  1472. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1473. * cfg item
  1474. * @psoc: psoc context
  1475. * @value: pointer to get required data
  1476. *
  1477. * Return: QDF_STATUS
  1478. */
  1479. QDF_STATUS
  1480. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1481. /**
  1482. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1483. * cfg item
  1484. * @psoc: psoc context
  1485. * @value: data to be set
  1486. *
  1487. * Return: QDF_STATUS
  1488. */
  1489. QDF_STATUS
  1490. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1491. /**
  1492. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1493. * cfg item
  1494. * @psoc: psoc context
  1495. * @value: pointer to get required data
  1496. *
  1497. * Return: QDF_STATUS
  1498. */
  1499. QDF_STATUS
  1500. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1501. /**
  1502. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1503. * cfg item
  1504. * @psoc: psoc context
  1505. * @value: data to be set
  1506. *
  1507. * Return: QDF_STATUS
  1508. */
  1509. QDF_STATUS
  1510. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1511. /**
  1512. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1513. * cfg item
  1514. * @psoc: psoc context
  1515. * @value: pointer to get required data
  1516. *
  1517. * Return: QDF_STATUS
  1518. */
  1519. QDF_STATUS
  1520. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1521. uint8_t *value);
  1522. /**
  1523. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1524. * cfg item
  1525. * @psoc: psoc context
  1526. * @value: data to be set
  1527. *
  1528. * Return: QDF_STATUS
  1529. */
  1530. QDF_STATUS
  1531. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1532. uint8_t value);
  1533. /**
  1534. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1535. * cfg item
  1536. * @psoc: psoc context
  1537. * @value: pointer to get required data
  1538. *
  1539. * Return: QDF_STATUS
  1540. */
  1541. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1542. uint32_t *value);
  1543. /**
  1544. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1545. * cfg item
  1546. * @psoc: psoc context
  1547. * @value: data to be set
  1548. *
  1549. * Return: QDF_STATUS
  1550. */
  1551. QDF_STATUS
  1552. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1553. /**
  1554. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1555. * cfg item
  1556. * @psoc: psoc context
  1557. * @value: pointer to get required data
  1558. *
  1559. * Return: QDF_STATUS
  1560. */
  1561. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1562. uint32_t *value);
  1563. /**
  1564. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1565. * cfg item
  1566. * @psoc: psoc context
  1567. * @value: data to be set
  1568. *
  1569. * Return: QDF_STATUS
  1570. */
  1571. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1572. uint32_t value);
  1573. /**
  1574. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1575. * cfg item
  1576. * @psoc: psoc context
  1577. * @value: data to be set
  1578. *
  1579. * Return: QDF_STATUS
  1580. */
  1581. QDF_STATUS
  1582. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1583. uint32_t value);
  1584. /**
  1585. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1586. * cfg item
  1587. * @psoc: psoc context
  1588. * @value: data to be set
  1589. *
  1590. * Return: QDF_STATUS
  1591. */
  1592. QDF_STATUS
  1593. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1594. uint32_t value);
  1595. /**
  1596. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1597. * cfg item
  1598. * @psoc: psoc context
  1599. * @value: data to be set
  1600. *
  1601. * Return: QDF_STATUS
  1602. */
  1603. QDF_STATUS
  1604. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1605. uint32_t *value);
  1606. /**
  1607. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1608. * cfg item
  1609. * @psoc: psoc context
  1610. * @value: data to be set
  1611. *
  1612. * Return: QDF_STATUS
  1613. */
  1614. QDF_STATUS
  1615. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1616. uint32_t value);
  1617. /**
  1618. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1619. * @psoc: psoc context
  1620. * @value: data to be set
  1621. *
  1622. * Return: QDF_STATUS
  1623. */
  1624. QDF_STATUS
  1625. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1626. /**
  1627. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1628. * @psoc: psoc context
  1629. * @value: data to be set
  1630. *
  1631. * Return: QDF_STATUS
  1632. */
  1633. QDF_STATUS
  1634. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1635. /**
  1636. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1637. * for 11ac
  1638. * @psoc: psoc context
  1639. * @value: data to be set
  1640. *
  1641. * Return: QDF_STATUS
  1642. */
  1643. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1644. uint8_t *value);
  1645. /**
  1646. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1647. * @psoc: psoc context
  1648. * @value: data to be set
  1649. *
  1650. * Return: QDF_STATUS
  1651. */
  1652. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1653. uint8_t *value);
  1654. /**
  1655. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1656. * @psoc: psoc context
  1657. * @value: data to be set
  1658. *
  1659. * Return: QDF_STATUS
  1660. */
  1661. QDF_STATUS
  1662. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1663. /**
  1664. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1665. * @psoc: psoc context
  1666. * @value: data to be set
  1667. *
  1668. * Return: QDF_STATUS
  1669. */
  1670. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1671. uint8_t *value);
  1672. /**
  1673. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1674. * @psoc: psoc context
  1675. * @value: data to be set
  1676. *
  1677. * Return: QDF_STATUS
  1678. */
  1679. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1680. uint8_t *value);
  1681. /**
  1682. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1683. * @psoc: psoc context
  1684. * @value: data to be set
  1685. *
  1686. * Return: QDF_STATUS
  1687. */
  1688. QDF_STATUS
  1689. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1690. /**
  1691. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1692. * @psoc: psoc context
  1693. * @value: data to be set
  1694. *
  1695. * Return: QDF_STATUS
  1696. */
  1697. QDF_STATUS
  1698. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  1699. /**
  1700. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1701. * @psoc: psoc context
  1702. * @value: data to be set
  1703. *
  1704. * Return: QDF_STATUS
  1705. */
  1706. QDF_STATUS
  1707. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  1708. /**
  1709. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1710. * @psoc: psoc context
  1711. * @value: data to be set
  1712. *
  1713. * Return: QDF_STATUS
  1714. */
  1715. QDF_STATUS
  1716. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  1717. /**
  1718. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1719. * @psoc: psoc context
  1720. * @value: data to be set
  1721. *
  1722. * Return: QDF_STATUS
  1723. */
  1724. QDF_STATUS
  1725. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  1726. /**
  1727. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1728. * @psoc: psoc context
  1729. * @value: data to be set
  1730. *
  1731. * Return: QDF_STATUS
  1732. */
  1733. QDF_STATUS
  1734. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1735. /**
  1736. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1737. * @psoc: psoc context
  1738. * @value: data to be set
  1739. *
  1740. * Return: QDF_STATUS
  1741. */
  1742. QDF_STATUS
  1743. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  1744. /**
  1745. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1746. * @psoc: psoc context
  1747. * @value: data to be set
  1748. *
  1749. * Return: QDF_STATUS
  1750. */
  1751. QDF_STATUS
  1752. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1753. /**
  1754. * mlme_update_vht_cap() - update vht capabilities
  1755. * @psoc: psoc context
  1756. * @cfg: data to be set
  1757. *
  1758. * Return: QDF_STATUS
  1759. */
  1760. QDF_STATUS
  1761. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  1762. /**
  1763. * mlme_update_nss_vht_cap() - Update the number of spatial
  1764. * streams supported for vht
  1765. * @psoc: psoc context
  1766. *
  1767. * Return: QDF_STATUS
  1768. */
  1769. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1770. /**
  1771. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1772. * @psoc: psoc context
  1773. * @value: value to be filled for caller
  1774. *
  1775. * Return: QDF_STATUS
  1776. */
  1777. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1778. bool *value);
  1779. /**
  1780. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1781. * @psoc: psoc context
  1782. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1783. *
  1784. * Return: QDF_STATUS
  1785. */
  1786. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1787. bool value);
  1788. /**
  1789. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  1790. * @psoc: psoc context
  1791. *
  1792. * Return: QDF_STATUS
  1793. */
  1794. QDF_STATUS
  1795. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1796. /**
  1797. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  1798. * @psoc: psoc context
  1799. *
  1800. * Return: QDF_STATUS
  1801. */
  1802. QDF_STATUS
  1803. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1804. /**
  1805. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  1806. * @psoc: psoc context
  1807. *
  1808. * Return: QDF_STATUS
  1809. */
  1810. QDF_STATUS
  1811. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1812. /**
  1813. * wlan_mlme_ibss_power_save_setup() - Set IBSS power save params
  1814. * @psoc: pointer to psoc object
  1815. * @vdev_id: IBSS Vdev ID
  1816. *
  1817. * Return: QDF Status
  1818. */
  1819. QDF_STATUS wlan_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  1820. uint32_t vdev_id);
  1821. /**
  1822. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  1823. * @psoc: psoc context
  1824. *
  1825. * Return: QDF_STATUS
  1826. */
  1827. QDF_STATUS
  1828. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1829. /**
  1830. * wlan_mlme_is_change_channel_bandwidth_enabled() - get the
  1831. * enable_change_channel_bandwidth flag
  1832. * @psoc: psoc context
  1833. *
  1834. * Return: true if enabled
  1835. */
  1836. bool
  1837. wlan_mlme_is_change_channel_bandwidth_enabled(struct wlan_objmgr_psoc *psoc);
  1838. /**
  1839. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  1840. *
  1841. * @psoc: pointer to psoc object
  1842. * @value: value which needs to filled by API
  1843. *
  1844. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  1845. *
  1846. * Return: QDF_STATUS
  1847. */
  1848. QDF_STATUS
  1849. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  1850. uint32_t *value);
  1851. /**
  1852. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  1853. *
  1854. * @psoc: pointer to psoc object
  1855. * @value: value which needs to filled by API
  1856. *
  1857. * This API fetches the user setting to determine if SAP MCC with other persona
  1858. * to be avoided.
  1859. *
  1860. * Return: QDF_STATUS
  1861. */
  1862. QDF_STATUS
  1863. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  1864. uint8_t *value);
  1865. /**
  1866. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  1867. *
  1868. * @psoc: pointer to psoc object
  1869. * @value: value which needs to filled by API
  1870. *
  1871. * To get INI value which helps to determe whether to enable/disable use of
  1872. * broadcast probe response to increase the detectability of SAP in MCC mode.
  1873. *
  1874. *
  1875. * Return: QDF_STATUS
  1876. */
  1877. QDF_STATUS
  1878. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  1879. uint8_t *value);
  1880. /**
  1881. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  1882. *
  1883. * @psoc: pointer to psoc object
  1884. * @value: value which needs to filled by API
  1885. *
  1886. * To get INI value which helps to determine whether to enable/disable
  1887. * use of long duration RTS-CTS protection when SAP goes off
  1888. * channel in MCC mode.
  1889. *
  1890. * Return: QDF_STATUS
  1891. */
  1892. QDF_STATUS
  1893. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  1894. uint8_t *value);
  1895. /**
  1896. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  1897. *
  1898. * @psoc: pointer to psoc object
  1899. * @value: value which needs to filled by API
  1900. *
  1901. * To get INI value which helps to determine whether to enable MCC feature
  1902. *
  1903. * Return: QDF_STATUS
  1904. */
  1905. QDF_STATUS
  1906. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  1907. uint8_t *value);
  1908. /**
  1909. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  1910. * @psoc: pointer to psoc object
  1911. * @value: pointer to the value which will be filled for the caller
  1912. *
  1913. * Return: QDF Status
  1914. */
  1915. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  1916. bool *value);
  1917. /*
  1918. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  1919. * bitmap
  1920. * @psoc: pointer to psoc object
  1921. * @dtim_selection_div: value that is requested by the caller
  1922. * This function gets the dtim selection diversity bitmap to be
  1923. * sent to the firmware
  1924. *
  1925. * Return: QDF_STATUS_SUCCESS - in case of success
  1926. */
  1927. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  1928. uint32_t *dtim_selection_div);
  1929. /**
  1930. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  1931. * minimum listen interval value
  1932. * @psoc: pointer to psoc object
  1933. * @value: value that is requested by the caller
  1934. *
  1935. * Return: QDF_STATUS_SUCCESS - in case of success
  1936. */
  1937. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  1938. uint32_t *value);
  1939. /**
  1940. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  1941. * maximum listen interval value
  1942. * @psoc: pointer to psoc object
  1943. * @value: value that is requested by the caller
  1944. *
  1945. * Return: QDF_STATUS_SUCCESS - in case of success
  1946. */
  1947. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  1948. uint32_t *value);
  1949. /**
  1950. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  1951. * @psoc: pointer to psoc object
  1952. * @value: value that is requested by the caller
  1953. *
  1954. * Return: QDF_STATUS_SUCCESS - in case of success
  1955. */
  1956. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  1957. uint32_t *value);
  1958. /**
  1959. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  1960. * enabled/disabled
  1961. * @psoc: pointer to psoc object
  1962. * @value: value that is requested by the caller
  1963. *
  1964. * Return: QDF_STATUS_SUCCESS - in case of success
  1965. */
  1966. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  1967. bool *value);
  1968. /**
  1969. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  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_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  1976. /**
  1977. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  1978. * enabled/disabled
  1979. * @psoc: pointer to psoc object
  1980. * @value: value that is requested by the caller
  1981. *
  1982. * Return: QDF_STATUS_SUCCESS - in case of success
  1983. */
  1984. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  1985. bool *value);
  1986. /*
  1987. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  1988. * @wps_params: pointer to mlme wps parameters structure
  1989. * @data: data to which the parameter is to be copied
  1990. *
  1991. * Return None
  1992. *
  1993. */
  1994. void
  1995. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  1996. /*
  1997. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  1998. * @psoc: pointer to psoc object
  1999. * @val: Pointer to the value which will be filled for the caller
  2000. *
  2001. * Return: QDF Status
  2002. */
  2003. QDF_STATUS
  2004. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  2005. uint32_t *value);
  2006. #endif /* _WLAN_MLME_API_H_ */