wlan_mlme_api.h 53 KB

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