wlan_mlme_api.h 58 KB

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