wlan_mlme_api.h 51 KB

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