wlan_mlme_api.h 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841
  1. /*
  2. * Copyright (c) 2018 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. * @wep_params: cfg wep parameters structure
  62. * @wep_key_id: default key number
  63. * @default_key: default key to be copied
  64. * @key_len: length of the key to copy
  65. *
  66. * Return QDF_STATUS
  67. */
  68. QDF_STATUS mlme_get_wep_key(struct wlan_mlme_wep_cfg *wep_params,
  69. enum wep_key_id wep_keyid, uint8_t *default_key,
  70. qdf_size_t *key_len);
  71. /**
  72. * mlme_set_wep_key() - set the wep keys during auth
  73. * @wep_params: cfg wep parametrs structure
  74. * @wep_key_id: default key number that needs to be copied
  75. * @key_to_set: destination buffer to be copied
  76. * @len: size to be copied
  77. */
  78. QDF_STATUS mlme_set_wep_key(struct wlan_mlme_wep_cfg *wep_params,
  79. enum wep_key_id wep_keyid, uint8_t *key_to_set,
  80. qdf_size_t len);
  81. /**
  82. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  83. * @psoc: pointer to psoc object
  84. * @value: pointer to the value which will be filled for the caller
  85. *
  86. * Return: QDF Status
  87. */
  88. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  89. struct mlme_ht_capabilities_info
  90. *ht_cap_info);
  91. /**
  92. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  93. * @psoc: pointer to psoc object
  94. * @pbuf: pointer of the buff which will be filled for the caller
  95. * @plen: pointer of max buffer length
  96. * actual length will be returned at this address
  97. * This function gets manufacturer name
  98. *
  99. * Return: QDF_STATUS_SUCCESS - in case of success
  100. */
  101. QDF_STATUS
  102. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  103. uint8_t *pbuf, uint32_t *plen);
  104. /**
  105. * wlan_mlme_get_model_number() - get model number
  106. * @psoc: pointer to psoc object
  107. * @pbuf: pointer of the buff which will be filled for the caller
  108. * @plen: pointer of max buffer length
  109. * actual length will be returned at this address
  110. * This function gets model number
  111. *
  112. * Return: QDF_STATUS_SUCCESS - in case of success
  113. */
  114. QDF_STATUS
  115. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  116. uint8_t *pbuf, uint32_t *plen);
  117. /**
  118. * wlan_mlme_get_model_name() - get model name
  119. * @psoc: pointer to psoc object
  120. * @pbuf: pointer of the buff which will be filled for the caller
  121. * @plen: pointer of max buffer length
  122. * actual length will be returned at this address
  123. * This function gets model name
  124. *
  125. * Return: QDF_STATUS_SUCCESS - in case of success
  126. */
  127. QDF_STATUS
  128. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  129. uint8_t *pbuf, uint32_t *plen);
  130. /**
  131. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  132. * @psoc: pointer to psoc object
  133. * @pbuf: pointer of the buff which will be filled for the caller
  134. * @plen: pointer of max buffer length
  135. * actual length will be returned at this address
  136. * This function gets manufacture product name
  137. *
  138. * Return: QDF_STATUS_SUCCESS - in case of success
  139. */
  140. QDF_STATUS
  141. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  142. uint8_t *pbuf, uint32_t *plen);
  143. /**
  144. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  145. * @psoc: pointer to psoc object
  146. * @pbuf: pointer of the buff which will be filled for the caller
  147. * @plen: pointer of max buffer length
  148. * actual length will be returned at this address
  149. * This function gets manufacture product version
  150. *
  151. * Return: QDF_STATUS_SUCCESS - in case of success
  152. */
  153. QDF_STATUS
  154. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  155. uint8_t *pbuf, uint32_t *plen);
  156. /**
  157. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  158. * @psoc: pointer to psoc object
  159. * @value: Value that needs to be set from the caller
  160. *
  161. * Return: QDF Status
  162. */
  163. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  164. struct mlme_ht_capabilities_info
  165. ht_cap_info);
  166. /**
  167. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  168. * @psoc: pointer to psoc object
  169. * @value: pointer to the value where the max_amsdu num is to be filled
  170. *
  171. * Return: QDF_STATUS
  172. */
  173. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  174. uint8_t *value);
  175. /**
  176. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  177. * @psoc: pointer to psoc object
  178. * @value: value to be set for max_amsdu_num
  179. *
  180. * Return: QDF_STATUS
  181. */
  182. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  183. uint8_t value);
  184. /**
  185. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  186. * @psoc: pointer to psoc object
  187. * @value: pointer to the value where the ht mpdu density is to be filled
  188. *
  189. * Return: QDF_STATUS
  190. */
  191. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  192. uint8_t *value);
  193. /**
  194. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  195. * @psoc: pointer to psoc object
  196. * @value: value to be set for ht mpdu density
  197. *
  198. * Return: QDF_STATUS
  199. */
  200. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  201. uint8_t value);
  202. /**
  203. * wlan_mlme_get_band_capability() - Get the Band capability config
  204. * @psoc: pointer to psoc object
  205. * @band_capability: Pointer to the variable from caller
  206. *
  207. * Return: QDF Status
  208. */
  209. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  210. uint8_t *band_capability);
  211. /**
  212. * wlan_mlme_set_band_capability() - Set the Band capability config
  213. * @psoc: pointer to psoc object
  214. * @band_capability: Value to be set from the caller
  215. *
  216. * Return: QDF Status
  217. */
  218. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  219. uint8_t band_capability);
  220. /**
  221. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  222. * @psoc: pointer to psoc object
  223. * @prevent_link_down: Pointer to the variable from caller
  224. *
  225. * Return: QDF Status
  226. */
  227. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  228. bool *prevent_link_down);
  229. /**
  230. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  231. * @psoc: pointer to psoc object
  232. * @select_5ghz_margin: Pointer to the variable from caller
  233. *
  234. * Return: QDF Status
  235. */
  236. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  237. uint8_t *select_5ghz_margin);
  238. /**
  239. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  240. * @psoc: pointer to psoc object
  241. * @rtt_mac_randomization: Pointer to the variable from caller
  242. *
  243. * Return: QDF Status
  244. */
  245. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  246. bool *rtt_mac_randomization);
  247. /**
  248. * wlan_mlme_get_crash_inject() - Get the crash inject config
  249. * @psoc: pointer to psoc object
  250. * @crash_inject: Pointer to the variable from caller
  251. *
  252. * Return: QDF Status
  253. */
  254. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  255. bool *crash_inject);
  256. /**
  257. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  258. * @psoc: pointer to psoc object
  259. * @lpass_support: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  264. bool *lpass_support);
  265. /**
  266. * wlan_mlme_get_self_recovery() - Get the self recovery config
  267. * @psoc: pointer to psoc object
  268. * @self_recovery: Pointer to the variable from caller
  269. *
  270. * Return: QDF Status
  271. */
  272. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  273. bool *self_recovery);
  274. /**
  275. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  276. * @psoc: pointer to psoc object
  277. * @sub_20_chan_width: Pointer to the variable from caller
  278. *
  279. * Return: QDF Status
  280. */
  281. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  282. uint8_t *sub_20_chan_width);
  283. /**
  284. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  285. * @psoc: pointer to psoc object
  286. * @fw_timeout_crash: Pointer to the variable from caller
  287. *
  288. * Return: QDF Status
  289. */
  290. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  291. bool *fw_timeout_crash);
  292. /**
  293. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  294. * @psoc: pointer to psoc object
  295. * @ito_repeat_count: Pointer to the variable from caller
  296. *
  297. * Return: QDF Status
  298. */
  299. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  300. uint8_t *ito_repeat_count);
  301. /**
  302. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  303. * @psoc: pointer to psoc object
  304. * @value: Value that needs to be set from the caller
  305. *
  306. * Return: QDF Status
  307. */
  308. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  309. bool *value);
  310. /**
  311. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  312. * @psoc: pointer to psoc object
  313. * @value: Value that needs to be set from the caller
  314. *
  315. * Return: QDF Status
  316. */
  317. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  318. uint32_t *value);
  319. /**
  320. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  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_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  327. bool *value);
  328. /**
  329. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  330. * acs support for dfs ltecoex
  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
  337. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  338. bool *value);
  339. /**
  340. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  341. * @psoc: pointer to psoc object
  342. * @value: Value that needs to be set from the caller
  343. *
  344. * Return: QDF Status
  345. */
  346. QDF_STATUS
  347. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  348. bool *value);
  349. /**
  350. *
  351. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  352. * override flag is set.
  353. * @psoc: pointer to psoc object
  354. * @sme_config - Sme config struct
  355. *
  356. * Return: QDF Status
  357. */
  358. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  359. bool *value);
  360. /**
  361. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  362. * @psoc: pointer to psoc object
  363. * @value: Value that needs to be set from the caller
  364. *
  365. * Return: QDF Status
  366. */
  367. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  368. bool *value);
  369. /**
  370. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  371. * @psoc: pointer to psoc object
  372. * @value: Value that needs to be set from the caller
  373. *
  374. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  375. */
  376. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  377. bool *value);
  378. /**
  379. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  380. * @psoc: pointer to psoc object
  381. * @value: Value that caller needs to get
  382. *
  383. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  384. */
  385. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  386. uint8_t *value);
  387. /**
  388. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  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_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  395. uint16_t *value);
  396. /**
  397. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  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_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  404. uint16_t *value);
  405. /**
  406. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  407. * flag
  408. * @psoc: pointer to psoc object
  409. * @value: Value that needs to be set from the caller
  410. *
  411. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  412. */
  413. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  414. bool *value);
  415. /**
  416. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  417. * @psoc: pointer to psoc object
  418. * @session_id: vdev_id
  419. *
  420. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  421. */
  422. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  423. uint8_t session_id);
  424. /**
  425. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  426. * @psoc: pointer to psoc object
  427. * @value: Value that needs to be set from the caller
  428. *
  429. * Return: QDF Status
  430. */
  431. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  432. int value);
  433. /**
  434. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  435. * @psoc: pointer to psoc object
  436. * @value: Value that needs to be set from the caller
  437. *
  438. * Return: QDF Status
  439. */
  440. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  441. int value);
  442. /**
  443. * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  444. * @psoc: pointer to psoc object
  445. * @value: Value that needs to be set from the caller
  446. *
  447. * Return: QDF Status
  448. */
  449. QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  450. int value);
  451. /**
  452. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  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_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  459. bool *value);
  460. /**
  461. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  462. * channels
  463. * @psoc: pointer to psoc object
  464. * @value: Value that needs to be set from the caller
  465. *
  466. * Return: QDF Status
  467. */
  468. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  469. bool *value);
  470. /**
  471. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  472. * @psoc: pointer to psoc object
  473. * @value: Value that needs to be set from the caller
  474. *
  475. * Return: QDF Status
  476. */
  477. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  478. int *value);
  479. /**
  480. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  481. * @psoc: pointer to psoc object
  482. * @value: Value that needs to be set from the caller
  483. *
  484. * Return: QDF Status
  485. */
  486. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  487. int value);
  488. /**
  489. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  490. * @psoc: pointer to psoc object
  491. * @value: Value that needs to be set from the caller
  492. *
  493. * Return: QDF Status
  494. */
  495. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  496. int *value);
  497. /**
  498. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  499. * reorder buffs.
  500. * @psoc: pointer to psoc object
  501. * @value: Value that needs to be set from the caller
  502. *
  503. * Return: QDF Status
  504. */
  505. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  506. *psoc, int *value);
  507. /**
  508. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  509. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  516. int *value);
  517. /**
  518. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  519. * switch mode
  520. * @psoc: pointer to psoc object
  521. * @value: Value that needs to be set from the caller
  522. *
  523. * Return: QDF Status
  524. */
  525. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  526. bool *value);
  527. /**
  528. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  529. * restart
  530. * @psoc: pointer to psoc object
  531. * @value: Value that needs to be set from the caller
  532. *
  533. * Return: QDF Status
  534. */
  535. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  536. bool *value);
  537. /**
  538. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  539. * restart
  540. * @psoc: pointer to psoc object
  541. * @value: Value that needs to be set from the caller
  542. *
  543. * Return: QDF Status
  544. */
  545. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  546. uint8_t *value);
  547. /**
  548. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  549. * restart
  550. * @psoc: pointer to psoc object
  551. * @value: Value that needs to be set from the caller
  552. *
  553. * Return: QDF Status
  554. */
  555. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  556. uint8_t *value);
  557. /**
  558. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  559. * restart
  560. * @psoc: pointer to psoc object
  561. * @value: Value that needs to be set from the caller
  562. *
  563. * Return: QDF Status
  564. */
  565. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  566. bool *value);
  567. /**
  568. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  569. * beacon interval
  570. * @psoc: pointer to psoc object
  571. * @value: Value that needs to be set from the caller
  572. *
  573. * Return: QDF Status
  574. */
  575. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  576. *psoc, int *value);
  577. /**
  578. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  579. * enabled beacon interval
  580. * @psoc: pointer to psoc object
  581. * @value: Value that needs to be set from the caller
  582. *
  583. * Return: QDF Status
  584. */
  585. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  586. *psoc, bool *value);
  587. /**
  588. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  589. *
  590. * @psoc: pointer to psoc object
  591. * @value: Value that needs to be set from the caller
  592. *
  593. * Return: QDF Status
  594. */
  595. QDF_STATUS wlan_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  596. *psoc, bool *value);
  597. /**
  598. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  599. *
  600. * @psoc: pointer to psoc object
  601. * @value: Value that needs to be set from the caller
  602. *
  603. * Return: QDF Status
  604. */
  605. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  606. *psoc, bool *value);
  607. /**
  608. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  609. * info for STA
  610. * @psoc: pointer to psoc object
  611. * @value: pointer to the value which will be filled for the caller
  612. *
  613. * Return: QDF Status
  614. */
  615. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  616. bool *value);
  617. /**
  618. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  619. * info for SAP
  620. * @psoc: pointer to psoc object
  621. * @value: pointer to the value which will be filled for the caller
  622. *
  623. * Return: QDF Status
  624. */
  625. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  626. bool *value);
  627. #ifdef WLAN_FEATURE_11AX
  628. /**
  629. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  630. * @psoc: pointer to psoc object
  631. * @value: Value that needs to be set from the caller
  632. *
  633. * Return: QDF Status
  634. */
  635. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  636. uint32_t *value);
  637. /**
  638. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  639. * @psoc: pointer to psoc object
  640. * @value: Value that needs to be set from the caller
  641. *
  642. * Return: QDF Status
  643. */
  644. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  645. uint32_t value);
  646. /**
  647. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  648. * @psoc: pointer to psoc object
  649. * @value: Value that needs to be set from the caller
  650. *
  651. * Return: QDF Status
  652. */
  653. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  654. uint8_t *value);
  655. /**
  656. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  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_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  663. uint8_t *value);
  664. /**
  665. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  666. *
  667. * @psoc: pointer to psoc object
  668. * @cfg: pointer to config params from target
  669. *
  670. * This api to be used by callers to update
  671. * he caps in mlme.
  672. *
  673. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  674. */
  675. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  676. struct wma_tgt_cfg *cfg);
  677. #endif
  678. /**
  679. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  680. * @psoc: pointer to psoc object
  681. * @value: pointer to the value which needs to be filled for the caller
  682. *
  683. * Return: QDF Status
  684. */
  685. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  686. uint16_t *value);
  687. /**
  688. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  689. * enabled/disabled
  690. * @psoc: pointer to psoc object
  691. * @value: pointer to the value which needs to be filled for the caller
  692. *
  693. * Return: QDF Status
  694. */
  695. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  696. bool *value);
  697. /**
  698. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  699. * @psoc: pointer to psoc object
  700. * @value: pointer to the value which will be filled for the caller
  701. *
  702. * Return: QDF Status
  703. */
  704. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  705. uint32_t *value);
  706. /**
  707. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  708. * @psoc: pointer to psoc object
  709. * @value: Value that needs to be set from the caller
  710. *
  711. * Return: QDF Status
  712. */
  713. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  714. uint32_t value);
  715. /**
  716. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  717. * config
  718. * @psoc: pointer to psoc object
  719. * @value: pointer to the value which will be filled for the caller
  720. *
  721. * Return: QDF Status
  722. */
  723. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  724. uint32_t *value);
  725. /**
  726. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  727. * config
  728. * @psoc: pointer to psoc object
  729. * @value: Value that needs to be set from the caller
  730. *
  731. * Return: QDF Status
  732. */
  733. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  734. uint32_t value);
  735. /**
  736. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  737. * @psoc: pointer to psoc object
  738. * @value: pointer to the value which will be filled for the caller
  739. *
  740. * Return: QDF Status
  741. */
  742. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  743. bool *value);
  744. /**
  745. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  746. * @psoc: pointer to psoc object
  747. * @value: value that needs to be set from the caller
  748. *
  749. * Return: QDF Status
  750. */
  751. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  752. bool value);
  753. /**
  754. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  755. * for VI
  756. * @psoc: pointer to psoc object
  757. * @value: Value that needs to be set from the caller
  758. *
  759. * Return: QDF Status
  760. */
  761. QDF_STATUS
  762. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  763. uint8_t *value);
  764. /**
  765. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  766. * MSDU size for VI
  767. * @psoc: pointer to psoc object
  768. * @value: Value that needs to be set from the caller
  769. *
  770. * Return: QDF Status
  771. */
  772. QDF_STATUS
  773. wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  774. uint16_t *value);
  775. /**
  776. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  777. * rate for VI
  778. * @psoc: pointer to psoc object
  779. * @value: Value that needs to be set from the caller
  780. *
  781. * Return: QDF Status
  782. */
  783. QDF_STATUS
  784. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  785. uint32_t *value);
  786. /**
  787. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  788. * rate for VI
  789. * @psoc: pointer to psoc object
  790. * @value: Value that needs to be set from the caller
  791. *
  792. * Return: QDF Status
  793. */
  794. QDF_STATUS
  795. wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  796. uint32_t *value);
  797. /**
  798. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  799. * allowance for VI
  800. * @psoc: pointer to psoc object
  801. * @value: Value that needs to be set from the caller
  802. *
  803. * Return: QDF Status
  804. */
  805. QDF_STATUS
  806. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  807. /**
  808. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  809. * interval for video
  810. * @psoc: pointer to psoc object
  811. * @value: pointer to the value which will be filled for the caller
  812. *
  813. * Return: QDF Status
  814. */
  815. QDF_STATUS
  816. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  817. uint32_t *value);
  818. /**
  819. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  820. * interval for video
  821. * @psoc: pointer to psoc object
  822. * @value: pointer to the value which will be filled for the caller
  823. *
  824. * Return: QDF Status
  825. */
  826. QDF_STATUS
  827. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  828. uint32_t *value);
  829. /**
  830. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  831. * for BE
  832. * @psoc: pointer to psoc object
  833. * @value: Value that needs to be set from the caller
  834. *
  835. * Return: QDF Status
  836. */
  837. QDF_STATUS
  838. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  839. uint8_t *value);
  840. /**
  841. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  842. * MSDU size for BE
  843. * @psoc: pointer to psoc object
  844. * @value: Value that needs to be set from the caller
  845. *
  846. * Return: QDF Status
  847. */
  848. QDF_STATUS
  849. wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  850. uint16_t *value);
  851. /**
  852. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  853. * rate for BE
  854. * @psoc: pointer to psoc object
  855. * @value: Value that needs to be set from the caller
  856. *
  857. * Return: QDF Status
  858. */
  859. QDF_STATUS
  860. wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  861. uint32_t *value);
  862. /**
  863. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  864. * rate for BE
  865. * @psoc: pointer to psoc object
  866. * @value: Value that needs to be set from the caller
  867. *
  868. * Return: QDF Status
  869. */
  870. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  871. uint32_t *value);
  872. /**
  873. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  874. * allowance for BE
  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_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc,
  881. uint16_t *value);
  882. /**
  883. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  884. * interval for BE
  885. * @psoc: pointer to psoc object
  886. * @value: pointer to the value which will be filled for the caller
  887. *
  888. * Return: QDF Status
  889. */
  890. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  891. uint32_t *value);
  892. /**
  893. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  894. * interval for BE
  895. * @psoc: pointer to psoc object
  896. * @value: pointer to the value which will be filled for the caller
  897. *
  898. * Return: QDF Status
  899. */
  900. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  901. uint32_t *value);
  902. /**
  903. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  904. * for BK
  905. * @psoc: pointer to psoc object
  906. * @value: Value that needs to be set from the caller
  907. *
  908. * Return: QDF Status
  909. */
  910. QDF_STATUS
  911. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  912. /**
  913. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  914. * MSDU size for BK
  915. * @psoc: pointer to psoc object
  916. * @value: Value that needs to be set from the caller
  917. *
  918. * Return: QDF Status
  919. */
  920. QDF_STATUS
  921. wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  922. uint16_t *value);
  923. /**
  924. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  925. * rate for BK
  926. * @psoc: pointer to psoc object
  927. * @value: Value that needs to be set from the caller
  928. *
  929. * Return: QDF Status
  930. */
  931. QDF_STATUS
  932. wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  933. uint32_t *value);
  934. /**
  935. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  936. * rate for BK
  937. * @psoc: pointer to psoc object
  938. * @value: Value that needs to be set from the caller
  939. *
  940. * Return: QDF Status
  941. */
  942. QDF_STATUS
  943. wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  944. uint32_t *value);
  945. /**
  946. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  947. * allowance for BE
  948. * @psoc: pointer to psoc object
  949. * @value: Value that needs to be set from the caller
  950. *
  951. * Return: QDF Status
  952. */
  953. QDF_STATUS
  954. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  955. /**
  956. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  957. * interval for BK
  958. * @psoc: pointer to psoc object
  959. * @value: pointer to the value which will be filled for the caller
  960. *
  961. * Return: QDF Status
  962. */
  963. QDF_STATUS
  964. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  965. uint32_t *value);
  966. /**
  967. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  968. * interval for BK
  969. * @psoc: pointer to psoc object
  970. * @value: pointer to the value which will be filled for the caller
  971. *
  972. * Return: QDF Status
  973. */
  974. QDF_STATUS
  975. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  976. uint32_t *value);
  977. /**
  978. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  979. * @psoc: pointer to psoc object
  980. * @value: pointer to the value which will be filled for the caller
  981. *
  982. * Return: QDF Status
  983. */
  984. QDF_STATUS
  985. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  986. /**
  987. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  988. * @psoc: pointer to psoc object
  989. * @value: pointer to the value which will be filled for the caller
  990. *
  991. * Return: QDF Status
  992. */
  993. QDF_STATUS
  994. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  995. /**
  996. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  997. * @psoc: pointer to psoc object
  998. * @value: pointer to the value which will be filled for the caller
  999. *
  1000. * Return: QDF Status
  1001. */
  1002. QDF_STATUS
  1003. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1004. /**
  1005. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1006. * @psoc: pointer to psoc object
  1007. * @value: pointer to the value which will be filled for the caller
  1008. *
  1009. * Return: QDF Status
  1010. */
  1011. QDF_STATUS
  1012. wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1013. bool *value);
  1014. #ifdef FEATURE_WLAN_ESE
  1015. /**
  1016. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1017. * @psoc: pointer to psoc object
  1018. * @value: pointer to the value which will be filled for the caller
  1019. *
  1020. * Return: None
  1021. */
  1022. void wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1023. uint32_t *value);
  1024. #endif
  1025. /**
  1026. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1027. * @psoc: pointer to psoc object
  1028. * @value: pointer to the value which will be filled for the caller
  1029. *
  1030. * Return: None
  1031. */
  1032. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1033. bool *value);
  1034. /**
  1035. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1036. * @psoc: pointer to psoc object
  1037. * @value: pointer to the value which will be filled for the caller
  1038. *
  1039. * Return: None
  1040. */
  1041. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1042. enum mlme_ts_info_ack_policy *value);
  1043. /**
  1044. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1045. * @psoc: pointer to psoc object
  1046. * @value: pointer to the value which will be filled for the caller
  1047. *
  1048. * Return: QDF Status
  1049. */
  1050. QDF_STATUS
  1051. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1052. /**
  1053. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1054. * for VO
  1055. * @psoc: pointer to psoc object
  1056. * @value: Value that needs to be set from the caller
  1057. *
  1058. * Return: QDF Status
  1059. */
  1060. QDF_STATUS wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  1061. uint8_t *value);
  1062. /**
  1063. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1064. * MSDU size for VO
  1065. * @psoc: pointer to psoc object
  1066. * @value: Value that needs to be set from the caller
  1067. *
  1068. * Return: QDF Status
  1069. */
  1070. QDF_STATUS
  1071. wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1072. uint16_t *value);
  1073. /**
  1074. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1075. * @psoc: pointer to psoc object
  1076. * @value: Value that needs to be set from the caller
  1077. *
  1078. * Return: QDF Status
  1079. */
  1080. QDF_STATUS
  1081. wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1082. uint32_t *value);
  1083. /**
  1084. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1085. * rate for VO
  1086. * @psoc: pointer to psoc object
  1087. * @value: Value that needs to be set from the caller
  1088. *
  1089. * Return: QDF Status
  1090. */
  1091. QDF_STATUS
  1092. wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1093. uint32_t *value);
  1094. /**
  1095. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1096. * @psoc: pointer to psoc object
  1097. * @value: Value that needs to be set from the caller
  1098. *
  1099. * Return: QDF Status
  1100. */
  1101. QDF_STATUS
  1102. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1103. /**
  1104. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1105. * @psoc: pointer to psoc object
  1106. * @value: value that needs to be set from the caller
  1107. *
  1108. * Return: QDF Status
  1109. */
  1110. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1111. bool value);
  1112. /**
  1113. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1114. * interval for voice
  1115. * @psoc: pointer to psoc object
  1116. * @value: pointer to the value which will be filled for the caller
  1117. *
  1118. * Return: QDF Status
  1119. */
  1120. QDF_STATUS
  1121. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1122. uint32_t *value);
  1123. /**
  1124. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1125. * interval for voice
  1126. * @psoc: pointer to psoc object
  1127. * @value: pointer to the value which will be filled for the caller
  1128. *
  1129. * Return: QDF Status
  1130. */
  1131. QDF_STATUS
  1132. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1133. uint32_t *value);
  1134. /**
  1135. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1136. * @psoc: psoc context
  1137. * @value: pointer to get required data
  1138. *
  1139. * Return: QDF_STATUS
  1140. */
  1141. QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1142. uint8_t *value);
  1143. /**
  1144. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1145. * @psoc: psoc context
  1146. * @value: data to be set
  1147. *
  1148. * Return: QDF_STATUS
  1149. */
  1150. QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1151. uint8_t value);
  1152. /**
  1153. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1154. * cfg item
  1155. * @psoc: psoc context
  1156. * @value: pointer to get required data
  1157. *
  1158. * Return: QDF_STATUS
  1159. */
  1160. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1161. uint8_t *value);
  1162. /**
  1163. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1164. * cfg item
  1165. * @psoc: psoc context
  1166. * @value: data to be set
  1167. *
  1168. * Return: QDF_STATUS
  1169. */
  1170. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1171. uint8_t value);
  1172. /**
  1173. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1174. * cfg item
  1175. * @psoc: psoc context
  1176. * @value: data to be set
  1177. *
  1178. * Return: QDF_STATUS
  1179. */
  1180. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1181. uint8_t *value);
  1182. /**
  1183. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1184. * cfg item
  1185. * @psoc: psoc context
  1186. * @value: pointer to get required data
  1187. *
  1188. * Return: QDF_STATUS
  1189. */
  1190. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1191. bool *value);
  1192. /**
  1193. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1194. * cfg item
  1195. * @psoc: psoc context
  1196. * @value: data to be set
  1197. *
  1198. * Return: QDF_STATUS
  1199. */
  1200. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1201. bool value);
  1202. /**
  1203. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1204. * cfg item
  1205. * @psoc: psoc context
  1206. * @value: pointer to get required data
  1207. *
  1208. * Return: QDF_STATUS
  1209. */
  1210. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1211. bool *value);
  1212. /**
  1213. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1214. * cfg item
  1215. * @psoc: psoc context
  1216. * @value: data to be set
  1217. *
  1218. * Return: QDF_STATUS
  1219. */
  1220. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1221. bool value);
  1222. /**
  1223. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1224. * cfg item
  1225. * @psoc: psoc context
  1226. * @value: pointer to get required data
  1227. *
  1228. * Return: QDF_STATUS
  1229. */
  1230. QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1231. bool *value);
  1232. /**
  1233. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1234. * cfg item
  1235. * @psoc: psoc context
  1236. * @value: data to be set
  1237. *
  1238. * Return: QDF_STATUS
  1239. */
  1240. QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1241. bool value);
  1242. /**
  1243. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1244. * cfg item
  1245. * @psoc: psoc context
  1246. * @value: pointer to get required data
  1247. *
  1248. * Return: QDF_STATUS
  1249. */
  1250. QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1251. bool *value);
  1252. /**
  1253. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1254. * cfg item
  1255. * @psoc: psoc context
  1256. * @value: pointer to get required data
  1257. *
  1258. * Return: QDF_STATUS
  1259. */
  1260. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1261. bool *value);
  1262. /**
  1263. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1264. * cfg item
  1265. * @psoc: psoc context
  1266. * @value: data to be set
  1267. *
  1268. * Return: QDF_STATUS
  1269. */
  1270. QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1271. bool value);
  1272. /**
  1273. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1274. * cfg item
  1275. * @psoc: psoc context
  1276. * @value: pointer to get required data
  1277. *
  1278. * Return: QDF_STATUS
  1279. */
  1280. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1281. bool *value);
  1282. /**
  1283. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1284. * cfg item
  1285. * @psoc: psoc context
  1286. * @value: data to be set
  1287. *
  1288. * Return: QDF_STATUS
  1289. */
  1290. QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1291. bool value);
  1292. /**
  1293. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1294. * cfg item
  1295. * @psoc: psoc context
  1296. * @value: pointer to get required data
  1297. *
  1298. * Return: QDF_STATUS
  1299. */
  1300. QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1301. bool *value);
  1302. /**
  1303. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1304. * cfg item
  1305. * @psoc: psoc context
  1306. * @value: data to be set
  1307. *
  1308. * Return: QDF_STATUS
  1309. */
  1310. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1311. bool value);
  1312. /**
  1313. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap 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_su_bformee(struct wlan_objmgr_psoc *psoc,
  1321. bool value);
  1322. /**
  1323. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1324. * support cap
  1325. * into cfg item
  1326. * @psoc: psoc context
  1327. * @value: data to be set
  1328. *
  1329. * Return: QDF_STATUS
  1330. */
  1331. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1332. uint8_t value);
  1333. /**
  1334. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1335. * support cap into cfg item
  1336. *
  1337. * @psoc: psoc context
  1338. * @value: data to be set
  1339. *
  1340. * Return: QDF_STATUS
  1341. */
  1342. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1343. uint8_t *value);
  1344. /**
  1345. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1346. * into cfg item
  1347. * @psoc: psoc context
  1348. * @value: data to be set
  1349. *
  1350. * Return: QDF_STATUS
  1351. */
  1352. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1353. uint8_t value);
  1354. /**
  1355. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1356. * cfg item
  1357. * @psoc: psoc context
  1358. * @value: pointer to get required data
  1359. *
  1360. * Return: QDF_STATUS
  1361. */
  1362. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1363. bool *value);
  1364. /**
  1365. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1366. * cfg item
  1367. * @psoc: psoc context
  1368. * @value: data to be set
  1369. *
  1370. * Return: QDF_STATUS
  1371. */
  1372. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1373. bool value);
  1374. /**
  1375. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1376. * cfg item
  1377. * @psoc: psoc context
  1378. * @value: pointer to get required data
  1379. *
  1380. * Return: QDF_STATUS
  1381. */
  1382. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1383. bool *value);
  1384. /**
  1385. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1386. * cfg item
  1387. * @psoc: psoc context
  1388. * @value: data to be set
  1389. *
  1390. * Return: QDF_STATUS
  1391. */
  1392. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1393. bool value);
  1394. /**
  1395. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1396. * cfg item
  1397. * @psoc: psoc context
  1398. * @value: pointer to get required data
  1399. *
  1400. * Return: QDF_STATUS
  1401. */
  1402. QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1403. bool *value);
  1404. /**
  1405. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1406. * cfg item
  1407. * @psoc: psoc context
  1408. * @value: data to be set
  1409. *
  1410. * Return: QDF_STATUS
  1411. */
  1412. QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1413. bool value);
  1414. /**
  1415. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1416. * cfg item
  1417. * @psoc: psoc context
  1418. * @value: pointer to get required data
  1419. *
  1420. * Return: QDF_STATUS
  1421. */
  1422. QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1423. uint8_t *value);
  1424. /**
  1425. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1426. * cfg item
  1427. * @psoc: psoc context
  1428. * @value: data to be set
  1429. *
  1430. * Return: QDF_STATUS
  1431. */
  1432. QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1433. uint8_t value);
  1434. /**
  1435. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1436. * cfg item
  1437. * @psoc: psoc context
  1438. * @value: pointer to get required data
  1439. *
  1440. * Return: QDF_STATUS
  1441. */
  1442. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1443. uint32_t *value);
  1444. /**
  1445. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1446. * cfg item
  1447. * @psoc: psoc context
  1448. * @value: data to be set
  1449. *
  1450. * Return: QDF_STATUS
  1451. */
  1452. QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1453. uint32_t value);
  1454. /**
  1455. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1456. * cfg item
  1457. * @psoc: psoc context
  1458. * @value: pointer to get required data
  1459. *
  1460. * Return: QDF_STATUS
  1461. */
  1462. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1463. uint32_t *value);
  1464. /**
  1465. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1466. * cfg item
  1467. * @psoc: psoc context
  1468. * @value: data to be set
  1469. *
  1470. * Return: QDF_STATUS
  1471. */
  1472. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1473. uint32_t value);
  1474. /**
  1475. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1476. * cfg item
  1477. * @psoc: psoc context
  1478. * @value: data to be set
  1479. *
  1480. * Return: QDF_STATUS
  1481. */
  1482. QDF_STATUS
  1483. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1484. uint32_t value);
  1485. /**
  1486. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1487. * cfg item
  1488. * @psoc: psoc context
  1489. * @value: data to be set
  1490. *
  1491. * Return: QDF_STATUS
  1492. */
  1493. QDF_STATUS
  1494. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1495. uint32_t value);
  1496. /**
  1497. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1498. * cfg item
  1499. * @psoc: psoc context
  1500. * @value: data to be set
  1501. *
  1502. * Return: QDF_STATUS
  1503. */
  1504. QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1505. uint32_t *value);
  1506. /**
  1507. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1508. * cfg item
  1509. * @psoc: psoc context
  1510. * @value: data to be set
  1511. *
  1512. * Return: QDF_STATUS
  1513. */
  1514. QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1515. uint32_t value);
  1516. /**
  1517. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1518. * @psoc: psoc context
  1519. * @value: data to be set
  1520. *
  1521. * Return: QDF_STATUS
  1522. */
  1523. QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  1524. bool *value);
  1525. /**
  1526. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1527. * @psoc: psoc context
  1528. * @value: data to be set
  1529. *
  1530. * Return: QDF_STATUS
  1531. */
  1532. QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
  1533. bool *value);
  1534. /**
  1535. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1536. * for 11ac
  1537. * @psoc: psoc context
  1538. * @value: data to be set
  1539. *
  1540. * Return: QDF_STATUS
  1541. */
  1542. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1543. uint8_t *value);
  1544. /**
  1545. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1546. * @psoc: psoc context
  1547. * @value: data to be set
  1548. *
  1549. * Return: QDF_STATUS
  1550. */
  1551. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1552. uint8_t *value);
  1553. /**
  1554. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1555. * @psoc: psoc context
  1556. * @value: data to be set
  1557. *
  1558. * Return: QDF_STATUS
  1559. */
  1560. QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1561. uint8_t *value);
  1562. /**
  1563. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1564. * @psoc: psoc context
  1565. * @value: data to be set
  1566. *
  1567. * Return: QDF_STATUS
  1568. */
  1569. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1570. uint8_t *value);
  1571. /**
  1572. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1573. * @psoc: psoc context
  1574. * @value: data to be set
  1575. *
  1576. * Return: QDF_STATUS
  1577. */
  1578. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1579. uint8_t *value);
  1580. /**
  1581. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1582. * @psoc: psoc context
  1583. * @value: data to be set
  1584. *
  1585. * Return: QDF_STATUS
  1586. */
  1587. QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  1588. bool *value);
  1589. /**
  1590. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1591. * @psoc: psoc context
  1592. * @value: data to be set
  1593. *
  1594. * Return: QDF_STATUS
  1595. */
  1596. QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1597. bool *value);
  1598. /**
  1599. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1600. * @psoc: psoc context
  1601. * @value: data to be set
  1602. *
  1603. * Return: QDF_STATUS
  1604. */
  1605. QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1606. bool value);
  1607. /**
  1608. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1609. * @psoc: psoc context
  1610. * @value: data to be set
  1611. *
  1612. * Return: QDF_STATUS
  1613. */
  1614. QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  1615. bool *value);
  1616. /**
  1617. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1618. * @psoc: psoc context
  1619. * @value: data to be set
  1620. *
  1621. * Return: QDF_STATUS
  1622. */
  1623. QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  1624. bool *value);
  1625. /**
  1626. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1627. * @psoc: psoc context
  1628. * @value: data to be set
  1629. *
  1630. * Return: QDF_STATUS
  1631. */
  1632. QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1633. bool *value);
  1634. /**
  1635. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1636. * @psoc: psoc context
  1637. * @value: data to be set
  1638. *
  1639. * Return: QDF_STATUS
  1640. */
  1641. QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1642. bool *value);
  1643. /**
  1644. * mlme_update_vht_cap() - update vht capabilities
  1645. * @psoc: psoc context
  1646. * @cfg: data to be set
  1647. *
  1648. * Return: QDF_STATUS
  1649. */
  1650. QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1651. struct wma_tgt_vht_cap *cfg);
  1652. /**
  1653. * mlme_update_nss_vht_cap() - Update the number of spatial
  1654. * streams supported for vht
  1655. * @psoc: psoc context
  1656. *
  1657. * Return: QDF_STATUS
  1658. */
  1659. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1660. /**
  1661. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1662. * @psoc: psoc context
  1663. * @value: value to be filled for caller
  1664. *
  1665. * Return: QDF_STATUS
  1666. */
  1667. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1668. bool *value);
  1669. /**
  1670. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1671. * @psoc: psoc context
  1672. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1673. *
  1674. * Return: QDF_STATUS
  1675. */
  1676. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1677. bool value);
  1678. #endif /* _WLAN_MLME_API_H_ */