wlan_mlme_api.h 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081
  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, uint8_t *value);
  779. /**
  780. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  781. * MSDU size for VI
  782. * @psoc: pointer to psoc object
  783. * @value: Value that needs to be set from the caller
  784. *
  785. * Return: QDF Status
  786. */
  787. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  788. uint16_t *value);
  789. /**
  790. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  791. * rate for VI
  792. * @psoc: pointer to psoc object
  793. * @value: Value that needs to be set from the caller
  794. *
  795. * Return: QDF Status
  796. */
  797. QDF_STATUS
  798. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  799. uint32_t *value);
  800. /**
  801. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  802. * rate for VI
  803. * @psoc: pointer to psoc object
  804. * @value: Value that needs to be set from the caller
  805. *
  806. * Return: QDF Status
  807. */
  808. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  809. uint32_t *value);
  810. /**
  811. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  812. * allowance for VI
  813. * @psoc: pointer to psoc object
  814. * @value: Value that needs to be set from the caller
  815. *
  816. * Return: QDF Status
  817. */
  818. QDF_STATUS
  819. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  820. /**
  821. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  822. * interval for video
  823. * @psoc: pointer to psoc object
  824. * @value: pointer to the value which will be filled for the caller
  825. *
  826. * Return: QDF Status
  827. */
  828. QDF_STATUS
  829. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  830. uint32_t *value);
  831. /**
  832. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  833. * interval for video
  834. * @psoc: pointer to psoc object
  835. * @value: pointer to the value which will be filled for the caller
  836. *
  837. * Return: QDF Status
  838. */
  839. QDF_STATUS
  840. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  841. uint32_t *value);
  842. /**
  843. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  844. * for BE
  845. * @psoc: pointer to psoc object
  846. * @value: Value that needs to be set from the caller
  847. *
  848. * Return: QDF Status
  849. */
  850. QDF_STATUS
  851. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  852. uint8_t *value);
  853. /**
  854. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  855. * MSDU size for BE
  856. * @psoc: pointer to psoc object
  857. * @value: Value that needs to be set from the caller
  858. *
  859. * Return: QDF Status
  860. */
  861. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  862. uint16_t *value);
  863. /**
  864. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  865. * rate for BE
  866. * @psoc: pointer to psoc object
  867. * @value: Value that needs to be set from the caller
  868. *
  869. * Return: QDF Status
  870. */
  871. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  872. uint32_t *value);
  873. /**
  874. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  875. * rate for BE
  876. * @psoc: pointer to psoc object
  877. * @value: Value that needs to be set from the caller
  878. *
  879. * Return: QDF Status
  880. */
  881. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  882. uint32_t *value);
  883. /**
  884. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  885. * allowance for BE
  886. * @psoc: pointer to psoc object
  887. * @value: Value that needs to be set from the caller
  888. *
  889. * Return: QDF Status
  890. */
  891. QDF_STATUS
  892. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  893. /**
  894. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  895. * interval for BE
  896. * @psoc: pointer to psoc object
  897. * @value: pointer to the value which will be filled for the caller
  898. *
  899. * Return: QDF Status
  900. */
  901. QDF_STATUS
  902. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  903. uint32_t *value);
  904. /**
  905. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  906. * interval for BE
  907. * @psoc: pointer to psoc object
  908. * @value: pointer to the value which will be filled for the caller
  909. *
  910. * Return: QDF Status
  911. */
  912. QDF_STATUS
  913. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  914. uint32_t *value);
  915. /**
  916. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  917. * for BK
  918. * @psoc: pointer to psoc object
  919. * @value: Value that needs to be set from the caller
  920. *
  921. * Return: QDF Status
  922. */
  923. QDF_STATUS
  924. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  925. /**
  926. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  927. * MSDU size for BK
  928. * @psoc: pointer to psoc object
  929. * @value: Value that needs to be set from the caller
  930. *
  931. * Return: QDF Status
  932. */
  933. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  934. uint16_t *value);
  935. /**
  936. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  937. * rate for BK
  938. * @psoc: pointer to psoc object
  939. * @value: Value that needs to be set from the caller
  940. *
  941. * Return: QDF Status
  942. */
  943. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  944. uint32_t *value);
  945. /**
  946. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  947. * rate for BK
  948. * @psoc: pointer to psoc object
  949. * @value: Value that needs to be set from the caller
  950. *
  951. * Return: QDF Status
  952. */
  953. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  954. uint32_t *value);
  955. /**
  956. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  957. * allowance for BE
  958. * @psoc: pointer to psoc object
  959. * @value: Value that needs to be set from the caller
  960. *
  961. * Return: QDF Status
  962. */
  963. QDF_STATUS
  964. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  965. /**
  966. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  967. * interval for BK
  968. * @psoc: pointer to psoc object
  969. * @value: pointer to the value which will be filled for the caller
  970. *
  971. * Return: QDF Status
  972. */
  973. QDF_STATUS
  974. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  975. uint32_t *value);
  976. /**
  977. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  978. * interval for BK
  979. * @psoc: pointer to psoc object
  980. * @value: pointer to the value which will be filled for the caller
  981. *
  982. * Return: QDF Status
  983. */
  984. QDF_STATUS
  985. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  986. uint32_t *value);
  987. /**
  988. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  989. * @psoc: pointer to psoc object
  990. * @value: pointer to the value which will be filled for the caller
  991. *
  992. * Return: QDF Status
  993. */
  994. QDF_STATUS
  995. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  996. /**
  997. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  998. * @psoc: pointer to psoc object
  999. * @value: pointer to the value which will be filled for the caller
  1000. *
  1001. * Return: QDF Status
  1002. */
  1003. QDF_STATUS
  1004. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1005. /**
  1006. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1007. * @psoc: pointer to psoc object
  1008. * @value: pointer to the value which will be filled for the caller
  1009. *
  1010. * Return: QDF Status
  1011. */
  1012. QDF_STATUS
  1013. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1014. /**
  1015. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1016. * @psoc: pointer to psoc object
  1017. * @value: pointer to the value which will be filled for the caller
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1022. bool *value);
  1023. #ifdef FEATURE_WLAN_ESE
  1024. /**
  1025. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1026. * @psoc: pointer to psoc object
  1027. * @value: pointer to the value which will be filled for the caller
  1028. *
  1029. * Return: None
  1030. */
  1031. void
  1032. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1033. uint32_t *value);
  1034. #endif
  1035. /**
  1036. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1037. * @psoc: pointer to psoc object
  1038. * @value: pointer to the value which will be filled for the caller
  1039. *
  1040. * Return: None
  1041. */
  1042. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1043. bool *value);
  1044. /**
  1045. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1046. * @psoc: pointer to psoc object
  1047. * @value: pointer to the value which will be filled for the caller
  1048. *
  1049. * Return: None
  1050. */
  1051. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1052. enum mlme_ts_info_ack_policy *value);
  1053. /**
  1054. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1055. * @psoc: pointer to psoc object
  1056. * @value: pointer to the value which will be filled for the caller
  1057. *
  1058. * Return: QDF Status
  1059. */
  1060. QDF_STATUS
  1061. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1062. /**
  1063. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1064. * for VO
  1065. * @psoc: pointer to psoc object
  1066. * @value: Value that needs to be set from the caller
  1067. *
  1068. * Return: QDF Status
  1069. */
  1070. QDF_STATUS
  1071. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1072. /**
  1073. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1074. * MSDU size for VO
  1075. * @psoc: pointer to psoc object
  1076. * @value: Value that needs to be set from the caller
  1077. *
  1078. * Return: QDF Status
  1079. */
  1080. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1081. uint16_t *value);
  1082. /**
  1083. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1084. * @psoc: pointer to psoc object
  1085. * @value: Value that needs to be set from the caller
  1086. *
  1087. * Return: QDF Status
  1088. */
  1089. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1090. uint32_t *value);
  1091. /**
  1092. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1093. * rate for VO
  1094. * @psoc: pointer to psoc object
  1095. * @value: Value that needs to be set from the caller
  1096. *
  1097. * Return: QDF Status
  1098. */
  1099. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1100. uint32_t *value);
  1101. /**
  1102. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1103. * @psoc: pointer to psoc object
  1104. * @value: Value that needs to be set from the caller
  1105. *
  1106. * Return: QDF Status
  1107. */
  1108. QDF_STATUS
  1109. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1110. /**
  1111. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  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 wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1118. bool value);
  1119. /**
  1120. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1121. * interval for voice
  1122. * @psoc: pointer to psoc object
  1123. * @value: pointer to the value which will be filled for the caller
  1124. *
  1125. * Return: QDF Status
  1126. */
  1127. QDF_STATUS
  1128. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1129. uint32_t *value);
  1130. /**
  1131. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1132. * interval for voice
  1133. * @psoc: pointer to psoc object
  1134. * @value: pointer to the value which will be filled for the caller
  1135. *
  1136. * Return: QDF Status
  1137. */
  1138. QDF_STATUS
  1139. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1140. uint32_t *value);
  1141. /**
  1142. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1143. * @psoc: psoc context
  1144. * @value: pointer to get required data
  1145. *
  1146. * Return: QDF_STATUS
  1147. */
  1148. QDF_STATUS
  1149. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1150. uint8_t *value);
  1151. /**
  1152. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1153. * @psoc: psoc context
  1154. * @value: data to be set
  1155. *
  1156. * Return: QDF_STATUS
  1157. */
  1158. QDF_STATUS
  1159. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1160. uint8_t value);
  1161. /**
  1162. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1163. * cfg item
  1164. * @psoc: psoc context
  1165. * @value: pointer to get required data
  1166. *
  1167. * Return: QDF_STATUS
  1168. */
  1169. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1170. uint8_t *value);
  1171. /**
  1172. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1173. * cfg item
  1174. * @psoc: psoc context
  1175. * @value: data to be set
  1176. *
  1177. * Return: QDF_STATUS
  1178. */
  1179. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1180. uint8_t value);
  1181. /**
  1182. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1183. * cfg item
  1184. * @psoc: psoc context
  1185. * @value: data to be set
  1186. *
  1187. * Return: QDF_STATUS
  1188. */
  1189. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1190. uint8_t *value);
  1191. /**
  1192. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1193. * cfg item
  1194. * @psoc: psoc context
  1195. * @value: pointer to get required data
  1196. *
  1197. * Return: QDF_STATUS
  1198. */
  1199. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1200. bool *value);
  1201. /**
  1202. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1203. * cfg item
  1204. * @psoc: psoc context
  1205. * @value: data to be set
  1206. *
  1207. * Return: QDF_STATUS
  1208. */
  1209. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1210. bool value);
  1211. /**
  1212. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1213. * cfg item
  1214. * @psoc: psoc context
  1215. * @value: pointer to get required data
  1216. *
  1217. * Return: QDF_STATUS
  1218. */
  1219. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1220. bool *value);
  1221. /**
  1222. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1223. * cfg item
  1224. * @psoc: psoc context
  1225. * @value: data to be set
  1226. *
  1227. * Return: QDF_STATUS
  1228. */
  1229. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1230. bool value);
  1231. /**
  1232. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1233. * cfg item
  1234. * @psoc: psoc context
  1235. * @value: pointer to get required data
  1236. *
  1237. * Return: QDF_STATUS
  1238. */
  1239. QDF_STATUS
  1240. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1241. /**
  1242. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1243. * cfg item
  1244. * @psoc: psoc context
  1245. * @value: data to be set
  1246. *
  1247. * Return: QDF_STATUS
  1248. */
  1249. QDF_STATUS
  1250. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1251. /**
  1252. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1253. * cfg item
  1254. * @psoc: psoc context
  1255. * @value: pointer to get required data
  1256. *
  1257. * Return: QDF_STATUS
  1258. */
  1259. QDF_STATUS
  1260. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1261. /**
  1262. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1263. * cfg item
  1264. * @psoc: psoc context
  1265. * @value: pointer to get required data
  1266. *
  1267. * Return: QDF_STATUS
  1268. */
  1269. QDF_STATUS
  1270. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1271. /**
  1272. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1273. * cfg item
  1274. * @psoc: psoc context
  1275. * @value: data to be set
  1276. *
  1277. * Return: QDF_STATUS
  1278. */
  1279. QDF_STATUS
  1280. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1281. /**
  1282. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1283. * cfg item
  1284. * @psoc: psoc context
  1285. * @value: pointer to get required data
  1286. *
  1287. * Return: QDF_STATUS
  1288. */
  1289. QDF_STATUS
  1290. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1291. /**
  1292. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1293. * cfg item
  1294. * @psoc: psoc context
  1295. * @value: data to be set
  1296. *
  1297. * Return: QDF_STATUS
  1298. */
  1299. QDF_STATUS
  1300. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1301. /**
  1302. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1303. * cfg item
  1304. * @psoc: psoc context
  1305. * @value: pointer to get required data
  1306. *
  1307. * Return: QDF_STATUS
  1308. */
  1309. QDF_STATUS
  1310. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1311. /**
  1312. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1313. * cfg item
  1314. * @psoc: psoc context
  1315. * @value: data to be set
  1316. *
  1317. * Return: QDF_STATUS
  1318. */
  1319. QDF_STATUS
  1320. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1321. /**
  1322. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1323. * cfg item
  1324. * @psoc: psoc context
  1325. * @value: data to be set
  1326. *
  1327. * Return: QDF_STATUS
  1328. */
  1329. QDF_STATUS
  1330. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1331. /**
  1332. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1333. * support cap
  1334. * into cfg item
  1335. * @psoc: psoc context
  1336. * @value: data to be set
  1337. *
  1338. * Return: QDF_STATUS
  1339. */
  1340. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1341. uint8_t value);
  1342. /**
  1343. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1344. * support cap into cfg item
  1345. *
  1346. * @psoc: psoc context
  1347. * @value: data to be set
  1348. *
  1349. * Return: QDF_STATUS
  1350. */
  1351. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1352. uint8_t *value);
  1353. /**
  1354. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1355. * into cfg item
  1356. * @psoc: psoc context
  1357. * @value: data to be set
  1358. *
  1359. * Return: QDF_STATUS
  1360. */
  1361. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1362. uint8_t value);
  1363. /**
  1364. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1365. * cfg item
  1366. * @psoc: psoc context
  1367. * @value: pointer to get required data
  1368. *
  1369. * Return: QDF_STATUS
  1370. */
  1371. QDF_STATUS
  1372. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1373. /**
  1374. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1375. * cfg item
  1376. * @psoc: psoc context
  1377. * @value: data to be set
  1378. *
  1379. * Return: QDF_STATUS
  1380. */
  1381. QDF_STATUS
  1382. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1383. /**
  1384. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1385. * cfg item
  1386. * @psoc: psoc context
  1387. * @value: pointer to get required data
  1388. *
  1389. * Return: QDF_STATUS
  1390. */
  1391. QDF_STATUS
  1392. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1393. /**
  1394. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1395. * cfg item
  1396. * @psoc: psoc context
  1397. * @value: data to be set
  1398. *
  1399. * Return: QDF_STATUS
  1400. */
  1401. QDF_STATUS
  1402. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1403. /**
  1404. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1405. * cfg item
  1406. * @psoc: psoc context
  1407. * @value: pointer to get required data
  1408. *
  1409. * Return: QDF_STATUS
  1410. */
  1411. QDF_STATUS
  1412. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1413. /**
  1414. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1415. * cfg item
  1416. * @psoc: psoc context
  1417. * @value: data to be set
  1418. *
  1419. * Return: QDF_STATUS
  1420. */
  1421. QDF_STATUS
  1422. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1423. /**
  1424. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1425. * cfg item
  1426. * @psoc: psoc context
  1427. * @value: pointer to get required data
  1428. *
  1429. * Return: QDF_STATUS
  1430. */
  1431. QDF_STATUS
  1432. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1433. uint8_t *value);
  1434. /**
  1435. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1436. * cfg item
  1437. * @psoc: psoc context
  1438. * @value: data to be set
  1439. *
  1440. * Return: QDF_STATUS
  1441. */
  1442. QDF_STATUS
  1443. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1444. uint8_t value);
  1445. /**
  1446. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1447. * cfg item
  1448. * @psoc: psoc context
  1449. * @value: pointer to get required data
  1450. *
  1451. * Return: QDF_STATUS
  1452. */
  1453. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1454. uint32_t *value);
  1455. /**
  1456. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1457. * cfg item
  1458. * @psoc: psoc context
  1459. * @value: data to be set
  1460. *
  1461. * Return: QDF_STATUS
  1462. */
  1463. QDF_STATUS
  1464. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1465. /**
  1466. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1467. * cfg item
  1468. * @psoc: psoc context
  1469. * @value: pointer to get required data
  1470. *
  1471. * Return: QDF_STATUS
  1472. */
  1473. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1474. uint32_t *value);
  1475. /**
  1476. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1477. * cfg item
  1478. * @psoc: psoc context
  1479. * @value: data to be set
  1480. *
  1481. * Return: QDF_STATUS
  1482. */
  1483. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1484. uint32_t value);
  1485. /**
  1486. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1487. * cfg item
  1488. * @psoc: psoc context
  1489. * @value: data to be set
  1490. *
  1491. * Return: QDF_STATUS
  1492. */
  1493. QDF_STATUS
  1494. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1495. uint32_t value);
  1496. /**
  1497. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1498. * cfg item
  1499. * @psoc: psoc context
  1500. * @value: data to be set
  1501. *
  1502. * Return: QDF_STATUS
  1503. */
  1504. QDF_STATUS
  1505. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1506. uint32_t value);
  1507. /**
  1508. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1509. * cfg item
  1510. * @psoc: psoc context
  1511. * @value: data to be set
  1512. *
  1513. * Return: QDF_STATUS
  1514. */
  1515. QDF_STATUS
  1516. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1517. uint32_t *value);
  1518. /**
  1519. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1520. * cfg item
  1521. * @psoc: psoc context
  1522. * @value: data to be set
  1523. *
  1524. * Return: QDF_STATUS
  1525. */
  1526. QDF_STATUS
  1527. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1528. uint32_t value);
  1529. /**
  1530. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1531. * @psoc: psoc context
  1532. * @value: data to be set
  1533. *
  1534. * Return: QDF_STATUS
  1535. */
  1536. QDF_STATUS
  1537. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1538. /**
  1539. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1540. * @psoc: psoc context
  1541. * @value: data to be set
  1542. *
  1543. * Return: QDF_STATUS
  1544. */
  1545. QDF_STATUS
  1546. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1547. /**
  1548. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1549. * for 11ac
  1550. * @psoc: psoc context
  1551. * @value: data to be set
  1552. *
  1553. * Return: QDF_STATUS
  1554. */
  1555. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1556. uint8_t *value);
  1557. /**
  1558. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1559. * @psoc: psoc context
  1560. * @value: data to be set
  1561. *
  1562. * Return: QDF_STATUS
  1563. */
  1564. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1565. uint8_t *value);
  1566. /**
  1567. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1568. * @psoc: psoc context
  1569. * @value: data to be set
  1570. *
  1571. * Return: QDF_STATUS
  1572. */
  1573. QDF_STATUS
  1574. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1575. /**
  1576. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1577. * @psoc: psoc context
  1578. * @value: data to be set
  1579. *
  1580. * Return: QDF_STATUS
  1581. */
  1582. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1583. uint8_t *value);
  1584. /**
  1585. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1586. * @psoc: psoc context
  1587. * @value: data to be set
  1588. *
  1589. * Return: QDF_STATUS
  1590. */
  1591. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1592. uint8_t *value);
  1593. /**
  1594. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1595. * @psoc: psoc context
  1596. * @value: data to be set
  1597. *
  1598. * Return: QDF_STATUS
  1599. */
  1600. QDF_STATUS
  1601. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1602. /**
  1603. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1604. * @psoc: psoc context
  1605. * @value: data to be set
  1606. *
  1607. * Return: QDF_STATUS
  1608. */
  1609. QDF_STATUS
  1610. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  1611. /**
  1612. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1613. * @psoc: psoc context
  1614. * @value: data to be set
  1615. *
  1616. * Return: QDF_STATUS
  1617. */
  1618. QDF_STATUS
  1619. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  1620. /**
  1621. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1622. * @psoc: psoc context
  1623. * @value: data to be set
  1624. *
  1625. * Return: QDF_STATUS
  1626. */
  1627. QDF_STATUS
  1628. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  1629. /**
  1630. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1631. * @psoc: psoc context
  1632. * @value: data to be set
  1633. *
  1634. * Return: QDF_STATUS
  1635. */
  1636. QDF_STATUS
  1637. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  1638. /**
  1639. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1640. * @psoc: psoc context
  1641. * @value: data to be set
  1642. *
  1643. * Return: QDF_STATUS
  1644. */
  1645. QDF_STATUS
  1646. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1647. /**
  1648. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1649. * @psoc: psoc context
  1650. * @value: data to be set
  1651. *
  1652. * Return: QDF_STATUS
  1653. */
  1654. QDF_STATUS
  1655. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1656. /**
  1657. * mlme_update_vht_cap() - update vht capabilities
  1658. * @psoc: psoc context
  1659. * @cfg: data to be set
  1660. *
  1661. * Return: QDF_STATUS
  1662. */
  1663. QDF_STATUS
  1664. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  1665. /**
  1666. * mlme_update_nss_vht_cap() - Update the number of spatial
  1667. * streams supported for vht
  1668. * @psoc: psoc context
  1669. *
  1670. * Return: QDF_STATUS
  1671. */
  1672. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1673. /**
  1674. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1675. * @psoc: psoc context
  1676. * @value: value to be filled for caller
  1677. *
  1678. * Return: QDF_STATUS
  1679. */
  1680. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1681. bool *value);
  1682. /**
  1683. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1684. * @psoc: psoc context
  1685. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1686. *
  1687. * Return: QDF_STATUS
  1688. */
  1689. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1690. bool value);
  1691. /**
  1692. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  1693. * @psoc: psoc context
  1694. *
  1695. * Return: QDF_STATUS
  1696. */
  1697. QDF_STATUS
  1698. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1699. /**
  1700. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  1701. * @psoc: psoc context
  1702. *
  1703. * Return: QDF_STATUS
  1704. */
  1705. QDF_STATUS
  1706. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1707. /**
  1708. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  1709. * @psoc: psoc context
  1710. *
  1711. * Return: QDF_STATUS
  1712. */
  1713. QDF_STATUS
  1714. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1715. /**
  1716. * wlan_mlme_ibss_power_save_setup() - Set IBSS power save params
  1717. * @psoc: pointer to psoc object
  1718. * @vdev_id: IBSS Vdev ID
  1719. *
  1720. * Return: QDF Status
  1721. */
  1722. QDF_STATUS wlan_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  1723. uint32_t vdev_id);
  1724. /**
  1725. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  1726. * @psoc: psoc context
  1727. *
  1728. * Return: QDF_STATUS
  1729. */
  1730. QDF_STATUS
  1731. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1732. /**
  1733. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  1734. *
  1735. * @psoc: pointer to psoc object
  1736. * @value: value which needs to filled by API
  1737. *
  1738. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  1739. *
  1740. * Return: QDF_STATUS
  1741. */
  1742. QDF_STATUS
  1743. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  1744. uint32_t *value);
  1745. /**
  1746. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  1747. *
  1748. * @psoc: pointer to psoc object
  1749. * @value: value which needs to filled by API
  1750. *
  1751. * This API fetches the user setting to determine if SAP MCC with other persona
  1752. * to be avoided.
  1753. *
  1754. * Return: QDF_STATUS
  1755. */
  1756. QDF_STATUS
  1757. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  1758. uint8_t *value);
  1759. /**
  1760. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  1761. *
  1762. * @psoc: pointer to psoc object
  1763. * @value: value which needs to filled by API
  1764. *
  1765. * To get INI value which helps to determe whether to enable/disable use of
  1766. * broadcast probe response to increase the detectability of SAP in MCC mode.
  1767. *
  1768. *
  1769. * Return: QDF_STATUS
  1770. */
  1771. QDF_STATUS
  1772. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  1773. uint8_t *value);
  1774. /**
  1775. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  1776. *
  1777. * @psoc: pointer to psoc object
  1778. * @value: value which needs to filled by API
  1779. *
  1780. * To get INI value which helps to determine whether to enable/disable
  1781. * use of long duration RTS-CTS protection when SAP goes off
  1782. * channel in MCC mode.
  1783. *
  1784. * Return: QDF_STATUS
  1785. */
  1786. QDF_STATUS
  1787. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  1788. uint8_t *value);
  1789. /**
  1790. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  1791. *
  1792. * @psoc: pointer to psoc object
  1793. * @value: value which needs to filled by API
  1794. *
  1795. * To get INI value which helps to determine whether to enable MCC feature
  1796. *
  1797. * Return: QDF_STATUS
  1798. */
  1799. QDF_STATUS
  1800. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  1801. uint8_t *value);
  1802. /**
  1803. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  1804. * @psoc: pointer to psoc object
  1805. * @value: pointer to the value which will be filled for the caller
  1806. *
  1807. * Return: QDF Status
  1808. */
  1809. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  1810. bool *value);
  1811. /*
  1812. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  1813. * bitmap
  1814. * @psoc: pointer to psoc object
  1815. * @dtim_selection_div: value that is requested by the caller
  1816. * This function gets the dtim selection diversity bitmap to be
  1817. * sent to the firmware
  1818. *
  1819. * Return: QDF_STATUS_SUCCESS - in case of success
  1820. */
  1821. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  1822. uint32_t *dtim_selection_div);
  1823. /**
  1824. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  1825. * minimum listen interval value
  1826. * @psoc: pointer to psoc object
  1827. * @value: value that is requested by the caller
  1828. *
  1829. * Return: QDF_STATUS_SUCCESS - in case of success
  1830. */
  1831. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  1832. uint32_t *value);
  1833. /**
  1834. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  1835. * maximum listen interval value
  1836. * @psoc: pointer to psoc object
  1837. * @value: value that is requested by the caller
  1838. *
  1839. * Return: QDF_STATUS_SUCCESS - in case of success
  1840. */
  1841. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  1842. uint32_t *value);
  1843. /**
  1844. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  1845. * @psoc: pointer to psoc object
  1846. * @value: value that is requested by the caller
  1847. *
  1848. * Return: QDF_STATUS_SUCCESS - in case of success
  1849. */
  1850. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  1851. uint32_t *value);
  1852. /**
  1853. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  1854. * enabled/disabled
  1855. * @psoc: pointer to psoc object
  1856. * @value: value that is requested by the caller
  1857. *
  1858. * Return: QDF_STATUS_SUCCESS - in case of success
  1859. */
  1860. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  1861. bool *value);
  1862. /**
  1863. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  1864. * @psoc: pointer to psoc object
  1865. * @value: value that is requested by the caller
  1866. *
  1867. * Return: QDF_STATUS_SUCCESS - in case of success
  1868. */
  1869. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  1870. /**
  1871. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  1872. * enabled/disabled
  1873. * @psoc: pointer to psoc object
  1874. * @value: value that is requested by the caller
  1875. *
  1876. * Return: QDF_STATUS_SUCCESS - in case of success
  1877. */
  1878. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  1879. bool *value);
  1880. /*
  1881. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  1882. * @wps_params: pointer to mlme wps parameters structure
  1883. * @data: data to which the parameter is to be copied
  1884. *
  1885. * Return None
  1886. *
  1887. */
  1888. void
  1889. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  1890. /*
  1891. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  1892. * @psoc: pointer to psoc object
  1893. * @val: Pointer to the value which will be filled for the caller
  1894. *
  1895. * Return: QDF Status
  1896. */
  1897. QDF_STATUS
  1898. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  1899. uint32_t *value);
  1900. #endif /* _WLAN_MLME_API_H_ */