wlan_mlme_api.h 56 KB

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