wlan_mlme_api.h 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645
  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_ht_cap_info() - Get the HT cap info config
  83. * @psoc: pointer to psoc object
  84. * @value: pointer to the value which will be filled for the caller
  85. *
  86. * Return: QDF Status
  87. */
  88. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  89. struct mlme_ht_capabilities_info
  90. *ht_cap_info);
  91. /**
  92. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  93. * @psoc: pointer to psoc object
  94. * @pbuf: pointer of the buff which will be filled for the caller
  95. * @plen: pointer of max buffer length
  96. * actual length will be returned at this address
  97. * This function gets manufacturer name
  98. *
  99. * Return: QDF_STATUS_SUCCESS - in case of success
  100. */
  101. QDF_STATUS
  102. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  103. uint8_t *pbuf, uint32_t *plen);
  104. /**
  105. * wlan_mlme_get_model_number() - get model number
  106. * @psoc: pointer to psoc object
  107. * @pbuf: pointer of the buff which will be filled for the caller
  108. * @plen: pointer of max buffer length
  109. * actual length will be returned at this address
  110. * This function gets model number
  111. *
  112. * Return: QDF_STATUS_SUCCESS - in case of success
  113. */
  114. QDF_STATUS
  115. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  116. uint8_t *pbuf, uint32_t *plen);
  117. /**
  118. * wlan_mlme_get_model_name() - get model name
  119. * @psoc: pointer to psoc object
  120. * @pbuf: pointer of the buff which will be filled for the caller
  121. * @plen: pointer of max buffer length
  122. * actual length will be returned at this address
  123. * This function gets model name
  124. *
  125. * Return: QDF_STATUS_SUCCESS - in case of success
  126. */
  127. QDF_STATUS
  128. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  129. uint8_t *pbuf, uint32_t *plen);
  130. /**
  131. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  132. * @psoc: pointer to psoc object
  133. * @pbuf: pointer of the buff which will be filled for the caller
  134. * @plen: pointer of max buffer length
  135. * actual length will be returned at this address
  136. * This function gets manufacture product name
  137. *
  138. * Return: QDF_STATUS_SUCCESS - in case of success
  139. */
  140. QDF_STATUS
  141. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  142. uint8_t *pbuf, uint32_t *plen);
  143. /**
  144. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  145. * @psoc: pointer to psoc object
  146. * @pbuf: pointer of the buff which will be filled for the caller
  147. * @plen: pointer of max buffer length
  148. * actual length will be returned at this address
  149. * This function gets manufacture product version
  150. *
  151. * Return: QDF_STATUS_SUCCESS - in case of success
  152. */
  153. QDF_STATUS
  154. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  155. uint8_t *pbuf, uint32_t *plen);
  156. /**
  157. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  158. * @psoc: pointer to psoc object
  159. * @value: Value that needs to be set from the caller
  160. *
  161. * Return: QDF Status
  162. */
  163. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  164. struct mlme_ht_capabilities_info
  165. ht_cap_info);
  166. /**
  167. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  168. * @psoc: pointer to psoc object
  169. * @value: pointer to the value where the max_amsdu num is to be filled
  170. *
  171. * Return: QDF_STATUS
  172. */
  173. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  174. uint8_t *value);
  175. /**
  176. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  177. * @psoc: pointer to psoc object
  178. * @value: value to be set for max_amsdu_num
  179. *
  180. * Return: QDF_STATUS
  181. */
  182. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  183. uint8_t value);
  184. /**
  185. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  186. * @psoc: pointer to psoc object
  187. * @value: pointer to the value where the ht mpdu density is to be filled
  188. *
  189. * Return: QDF_STATUS
  190. */
  191. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  192. uint8_t *value);
  193. /**
  194. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  195. * @psoc: pointer to psoc object
  196. * @value: value to be set for ht mpdu density
  197. *
  198. * Return: QDF_STATUS
  199. */
  200. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  201. uint8_t value);
  202. /**
  203. * wlan_mlme_get_band_capability() - Get the Band capability config
  204. * @psoc: pointer to psoc object
  205. * @band_capability: Pointer to the variable from caller
  206. *
  207. * Return: QDF Status
  208. */
  209. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  210. uint8_t *band_capability);
  211. /**
  212. * wlan_mlme_set_band_capability() - Set the Band capability config
  213. * @psoc: pointer to psoc object
  214. * @band_capability: Value to be set from the caller
  215. *
  216. * Return: QDF Status
  217. */
  218. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  219. uint8_t band_capability);
  220. /**
  221. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  222. * @psoc: pointer to psoc object
  223. * @prevent_link_down: Pointer to the variable from caller
  224. *
  225. * Return: QDF Status
  226. */
  227. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  228. bool *prevent_link_down);
  229. /**
  230. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  231. * @psoc: pointer to psoc object
  232. * @select_5ghz_margin: Pointer to the variable from caller
  233. *
  234. * Return: QDF Status
  235. */
  236. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  237. uint8_t *select_5ghz_margin);
  238. /**
  239. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  240. * @psoc: pointer to psoc object
  241. * @rtt_mac_randomization: Pointer to the variable from caller
  242. *
  243. * Return: QDF Status
  244. */
  245. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  246. bool *rtt_mac_randomization);
  247. /**
  248. * wlan_mlme_get_crash_inject() - Get the crash inject config
  249. * @psoc: pointer to psoc object
  250. * @crash_inject: Pointer to the variable from caller
  251. *
  252. * Return: QDF Status
  253. */
  254. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  255. bool *crash_inject);
  256. /**
  257. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  258. * @psoc: pointer to psoc object
  259. * @lpass_support: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  264. bool *lpass_support);
  265. /**
  266. * wlan_mlme_get_self_recovery() - Get the self recovery config
  267. * @psoc: pointer to psoc object
  268. * @self_recovery: Pointer to the variable from caller
  269. *
  270. * Return: QDF Status
  271. */
  272. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  273. bool *self_recovery);
  274. /**
  275. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  276. * @psoc: pointer to psoc object
  277. * @sub_20_chan_width: Pointer to the variable from caller
  278. *
  279. * Return: QDF Status
  280. */
  281. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  282. uint8_t *sub_20_chan_width);
  283. /**
  284. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  285. * @psoc: pointer to psoc object
  286. * @fw_timeout_crash: Pointer to the variable from caller
  287. *
  288. * Return: QDF Status
  289. */
  290. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  291. bool *fw_timeout_crash);
  292. /**
  293. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  294. * @psoc: pointer to psoc object
  295. * @ito_repeat_count: Pointer to the variable from caller
  296. *
  297. * Return: QDF Status
  298. */
  299. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  300. uint8_t *ito_repeat_count);
  301. /**
  302. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  303. * @psoc: pointer to psoc object
  304. * @value: Value that needs to be set from the caller
  305. *
  306. * Return: QDF Status
  307. */
  308. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  309. bool *value);
  310. /**
  311. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  312. * @psoc: pointer to psoc object
  313. * @value: Value that needs to be set from the caller
  314. *
  315. * Return: QDF Status
  316. */
  317. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  318. uint32_t *value);
  319. /**
  320. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  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_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  327. bool *value);
  328. /**
  329. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  330. * acs support for dfs ltecoex
  331. * @psoc: pointer to psoc object
  332. * @value: Value that needs to be set from the caller
  333. *
  334. * Return: QDF Status
  335. */
  336. QDF_STATUS
  337. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  338. bool *value);
  339. /**
  340. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  341. *
  342. * @psoc: pointer to psoc object
  343. * @value: Value that needs to be set from the caller
  344. *
  345. * Return: QDF Status
  346. */
  347. QDF_STATUS
  348. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  349. bool *value);
  350. /**
  351. *
  352. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  353. * override flag is set.
  354. * @psoc: pointer to psoc object
  355. * @sme_config - Sme config struct
  356. *
  357. * Return: QDF Status
  358. */
  359. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  360. bool *value);
  361. /**
  362. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  363. * @psoc: pointer to psoc object
  364. * @value: Value that needs to be set from the caller
  365. *
  366. * Return: QDF Status
  367. */
  368. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  369. bool *value);
  370. /**
  371. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  372. *
  373. * @psoc: pointer to psoc object
  374. * @value: Value that needs to be set from the caller
  375. *
  376. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  377. */
  378. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  379. bool *value);
  380. /**
  381. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  382. *
  383. * @psoc: pointer to psoc object
  384. * @value: Value that needs to be set from the caller
  385. *
  386. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  387. */
  388. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  389. uint8_t *value);
  390. /**
  391. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  392. *
  393. * @psoc: pointer to psoc object
  394. * @value: Value that needs to be set from the caller
  395. *
  396. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  397. */
  398. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  399. uint16_t *value);
  400. /**
  401. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  402. *
  403. * @psoc: pointer to psoc object
  404. * @value: Value that needs to be set from the caller
  405. *
  406. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  407. */
  408. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  409. uint16_t *value);
  410. /**
  411. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  412. *
  413. * @psoc: pointer to psoc object
  414. * @session_id: vdev_id
  415. *
  416. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  417. */
  418. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  419. uint8_t session_id);
  420. /**
  421. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  422. * @psoc: pointer to psoc object
  423. * @value: Value that needs to be set from the caller
  424. *
  425. * Return: QDF Status
  426. */
  427. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  428. int value);
  429. /**
  430. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  431. * @psoc: pointer to psoc object
  432. * @value: Value that needs to be set from the caller
  433. *
  434. * Return: QDF Status
  435. */
  436. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  437. int value);
  438. /**
  439. * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  440. * @psoc: pointer to psoc object
  441. * @value: Value that needs to be set from the caller
  442. *
  443. * Return: QDF Status
  444. */
  445. QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  446. int value);
  447. /**
  448. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  449. * @psoc: pointer to psoc object
  450. * @value: Value that needs to be set from the caller
  451. *
  452. * Return: QDF Status
  453. */
  454. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  455. bool *value);
  456. /**
  457. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  458. * channels
  459. * @psoc: pointer to psoc object
  460. * @value: Value that needs to be set from the caller
  461. *
  462. * Return: QDF Status
  463. */
  464. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  465. bool *value);
  466. /**
  467. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  468. * @psoc: pointer to psoc object
  469. * @value: Value that needs to be set from the caller
  470. *
  471. * Return: QDF Status
  472. */
  473. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  474. int *value);
  475. /**
  476. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  477. * @psoc: pointer to psoc object
  478. * @value: Value that needs to be set from the caller
  479. *
  480. * Return: QDF Status
  481. */
  482. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  483. int value);
  484. /**
  485. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  486. * @psoc: pointer to psoc object
  487. * @value: Value that needs to be set from the caller
  488. *
  489. * Return: QDF Status
  490. */
  491. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  492. int *value);
  493. /**
  494. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  495. * reorder buffs.
  496. * @psoc: pointer to psoc object
  497. * @value: Value that needs to be set from the caller
  498. *
  499. * Return: QDF Status
  500. */
  501. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  502. *psoc, int *value);
  503. /**
  504. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  505. * switch beacon count
  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_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  512. int *value);
  513. /**
  514. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  515. * switch mode
  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_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  522. bool *value);
  523. /**
  524. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  525. * restart
  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_internal_restart(struct wlan_objmgr_psoc *psoc,
  532. bool *value);
  533. /**
  534. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  535. * beacon interval
  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_reduced_beacon_interval(struct wlan_objmgr_psoc
  542. *psoc, int *value);
  543. /**
  544. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  545. * enabled beacon interval
  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_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  552. *psoc, bool *value);
  553. /**
  554. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  555. * info for STA
  556. * @psoc: pointer to psoc object
  557. * @value: pointer to the value which will be filled for the caller
  558. *
  559. * Return: QDF Status
  560. */
  561. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  562. bool *value);
  563. /**
  564. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  565. * info for SAP
  566. * @psoc: pointer to psoc object
  567. * @value: pointer to the value which will be filled for the caller
  568. *
  569. * Return: QDF Status
  570. */
  571. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  572. bool *value);
  573. /**
  574. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  575. * @psoc: pointer to psoc object
  576. * @value: pointer to the value which will be filled for the caller
  577. *
  578. * Return: QDF Status
  579. */
  580. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  581. uint32_t *value);
  582. /**
  583. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  584. * @psoc: pointer to psoc object
  585. * @value: Value that needs to be set from the caller
  586. *
  587. * Return: QDF Status
  588. */
  589. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  590. uint32_t value);
  591. /**
  592. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  593. * config
  594. * @psoc: pointer to psoc object
  595. * @value: pointer to the value which will be filled for the caller
  596. *
  597. * Return: QDF Status
  598. */
  599. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  600. uint32_t *value);
  601. /**
  602. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  603. * config
  604. * @psoc: pointer to psoc object
  605. * @value: Value that needs to be set from the caller
  606. *
  607. * Return: QDF Status
  608. */
  609. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  610. uint32_t value);
  611. /**
  612. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  613. * @psoc: pointer to psoc object
  614. * @value: pointer to the value which will be filled for the caller
  615. *
  616. * Return: QDF Status
  617. */
  618. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  619. bool *value);
  620. /**
  621. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  622. * @psoc: pointer to psoc object
  623. * @value: value that needs to be set from the caller
  624. *
  625. * Return: QDF Status
  626. */
  627. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  628. bool value);
  629. /**
  630. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  631. * for VI
  632. * @psoc: pointer to psoc object
  633. * @value: Value that needs to be set from the caller
  634. *
  635. * Return: QDF Status
  636. */
  637. QDF_STATUS
  638. wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  639. uint8_t *value);
  640. /**
  641. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  642. * MSDU size for VI
  643. * @psoc: pointer to psoc object
  644. * @value: Value that needs to be set from the caller
  645. *
  646. * Return: QDF Status
  647. */
  648. QDF_STATUS
  649. wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  650. uint16_t *value);
  651. /**
  652. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  653. * rate for VI
  654. * @psoc: pointer to psoc object
  655. * @value: Value that needs to be set from the caller
  656. *
  657. * Return: QDF Status
  658. */
  659. QDF_STATUS
  660. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  661. uint32_t *value);
  662. /**
  663. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  664. * rate for VI
  665. * @psoc: pointer to psoc object
  666. * @value: Value that needs to be set from the caller
  667. *
  668. * Return: QDF Status
  669. */
  670. QDF_STATUS
  671. wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  672. uint32_t *value);
  673. /**
  674. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  675. * allowance for VI
  676. * @psoc: pointer to psoc object
  677. * @value: Value that needs to be set from the caller
  678. *
  679. * Return: QDF Status
  680. */
  681. QDF_STATUS
  682. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  683. /**
  684. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  685. * interval for video
  686. * @psoc: pointer to psoc object
  687. * @value: pointer to the value which will be filled for the caller
  688. *
  689. * Return: QDF Status
  690. */
  691. QDF_STATUS
  692. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  693. uint32_t *value);
  694. /**
  695. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  696. * interval for video
  697. * @psoc: pointer to psoc object
  698. * @value: pointer to the value which will be filled for the caller
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS
  703. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  704. uint32_t *value);
  705. /**
  706. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  707. * for BE
  708. * @psoc: pointer to psoc object
  709. * @value: Value that needs to be set from the caller
  710. *
  711. * Return: QDF Status
  712. */
  713. QDF_STATUS
  714. wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  715. uint8_t *value);
  716. /**
  717. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  718. * MSDU size for BE
  719. * @psoc: pointer to psoc object
  720. * @value: Value that needs to be set from the caller
  721. *
  722. * Return: QDF Status
  723. */
  724. QDF_STATUS
  725. wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  726. uint16_t *value);
  727. /**
  728. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  729. * rate for BE
  730. * @psoc: pointer to psoc object
  731. * @value: Value that needs to be set from the caller
  732. *
  733. * Return: QDF Status
  734. */
  735. QDF_STATUS
  736. wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  737. uint32_t *value);
  738. /**
  739. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  740. * rate for BE
  741. * @psoc: pointer to psoc object
  742. * @value: Value that needs to be set from the caller
  743. *
  744. * Return: QDF Status
  745. */
  746. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  747. uint32_t *value);
  748. /**
  749. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  750. * allowance for BE
  751. * @psoc: pointer to psoc object
  752. * @value: Value that needs to be set from the caller
  753. *
  754. * Return: QDF Status
  755. */
  756. QDF_STATUS wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc,
  757. uint16_t *value);
  758. /**
  759. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  760. * interval for BE
  761. * @psoc: pointer to psoc object
  762. * @value: pointer to the value which will be filled for the caller
  763. *
  764. * Return: QDF Status
  765. */
  766. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  767. uint32_t *value);
  768. /**
  769. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  770. * interval for BE
  771. * @psoc: pointer to psoc object
  772. * @value: pointer to the value which will be filled for the caller
  773. *
  774. * Return: QDF Status
  775. */
  776. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  777. uint32_t *value);
  778. /**
  779. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  780. * for BK
  781. * @psoc: pointer to psoc object
  782. * @value: Value that needs to be set from the caller
  783. *
  784. * Return: QDF Status
  785. */
  786. QDF_STATUS
  787. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  788. /**
  789. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  790. * MSDU size for BK
  791. * @psoc: pointer to psoc object
  792. * @value: Value that needs to be set from the caller
  793. *
  794. * Return: QDF Status
  795. */
  796. QDF_STATUS
  797. wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  798. uint16_t *value);
  799. /**
  800. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  801. * rate for BK
  802. * @psoc: pointer to psoc object
  803. * @value: Value that needs to be set from the caller
  804. *
  805. * Return: QDF Status
  806. */
  807. QDF_STATUS
  808. wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  809. uint32_t *value);
  810. /**
  811. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  812. * rate for BK
  813. * @psoc: pointer to psoc object
  814. * @value: Value that needs to be set from the caller
  815. *
  816. * Return: QDF Status
  817. */
  818. QDF_STATUS
  819. wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  820. uint32_t *value);
  821. /**
  822. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  823. * allowance for BE
  824. * @psoc: pointer to psoc object
  825. * @value: Value that needs to be set from the caller
  826. *
  827. * Return: QDF Status
  828. */
  829. QDF_STATUS
  830. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  831. /**
  832. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  833. * interval for BK
  834. * @psoc: pointer to psoc object
  835. * @value: pointer to the value which will be filled for the caller
  836. *
  837. * Return: QDF Status
  838. */
  839. QDF_STATUS
  840. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  841. uint32_t *value);
  842. /**
  843. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  844. * interval for BK
  845. * @psoc: pointer to psoc object
  846. * @value: pointer to the value which will be filled for the caller
  847. *
  848. * Return: QDF Status
  849. */
  850. QDF_STATUS
  851. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  852. uint32_t *value);
  853. /**
  854. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  855. * @psoc: pointer to psoc object
  856. * @value: pointer to the value which will be filled for the caller
  857. *
  858. * Return: QDF Status
  859. */
  860. QDF_STATUS
  861. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  862. /**
  863. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  864. * @psoc: pointer to psoc object
  865. * @value: pointer to the value which will be filled for the caller
  866. *
  867. * Return: QDF Status
  868. */
  869. QDF_STATUS
  870. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  871. /**
  872. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  873. * @psoc: pointer to psoc object
  874. * @value: pointer to the value which will be filled for the caller
  875. *
  876. * Return: QDF Status
  877. */
  878. QDF_STATUS
  879. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  880. /**
  881. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  882. * @psoc: pointer to psoc object
  883. * @value: pointer to the value which will be filled for the caller
  884. *
  885. * Return: QDF Status
  886. */
  887. QDF_STATUS
  888. wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  889. bool *value);
  890. /**
  891. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  892. * for VO
  893. * @psoc: pointer to psoc object
  894. * @value: Value that needs to be set from the caller
  895. *
  896. * Return: QDF Status
  897. */
  898. QDF_STATUS wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  899. uint8_t *value);
  900. /**
  901. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  902. * MSDU size for VO
  903. * @psoc: pointer to psoc object
  904. * @value: Value that needs to be set from the caller
  905. *
  906. * Return: QDF Status
  907. */
  908. QDF_STATUS
  909. wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  910. uint16_t *value);
  911. /**
  912. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  913. * @psoc: pointer to psoc object
  914. * @value: Value that needs to be set from the caller
  915. *
  916. * Return: QDF Status
  917. */
  918. QDF_STATUS
  919. wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  920. uint32_t *value);
  921. /**
  922. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  923. * rate for VO
  924. * @psoc: pointer to psoc object
  925. * @value: Value that needs to be set from the caller
  926. *
  927. * Return: QDF Status
  928. */
  929. QDF_STATUS
  930. wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  931. uint32_t *value);
  932. /**
  933. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  934. * @psoc: pointer to psoc object
  935. * @value: Value that needs to be set from the caller
  936. *
  937. * Return: QDF Status
  938. */
  939. QDF_STATUS
  940. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  941. /**
  942. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  943. * @psoc: pointer to psoc object
  944. * @value: value that needs to be set from the caller
  945. *
  946. * Return: QDF Status
  947. */
  948. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  949. bool value);
  950. /**
  951. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  952. * interval for voice
  953. * @psoc: pointer to psoc object
  954. * @value: pointer to the value which will be filled for the caller
  955. *
  956. * Return: QDF Status
  957. */
  958. QDF_STATUS
  959. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  960. uint32_t *value);
  961. /**
  962. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  963. * interval for voice
  964. * @psoc: pointer to psoc object
  965. * @value: pointer to the value which will be filled for the caller
  966. *
  967. * Return: QDF Status
  968. */
  969. QDF_STATUS
  970. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  971. uint32_t *value);
  972. /**
  973. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  974. * @psoc: psoc context
  975. * @value: pointer to get required data
  976. *
  977. * Return: QDF_STATUS
  978. */
  979. QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  980. uint8_t *value);
  981. /**
  982. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  983. * @psoc: psoc context
  984. * @value: data to be set
  985. *
  986. * Return: QDF_STATUS
  987. */
  988. QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  989. uint8_t value);
  990. /**
  991. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  992. * cfg item
  993. * @psoc: psoc context
  994. * @value: pointer to get required data
  995. *
  996. * Return: QDF_STATUS
  997. */
  998. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  999. uint8_t *value);
  1000. /**
  1001. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1002. * cfg item
  1003. * @psoc: psoc context
  1004. * @value: data to be set
  1005. *
  1006. * Return: QDF_STATUS
  1007. */
  1008. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1009. uint8_t value);
  1010. /**
  1011. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1012. * cfg item
  1013. * @psoc: psoc context
  1014. * @value: data to be set
  1015. *
  1016. * Return: QDF_STATUS
  1017. */
  1018. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1019. uint8_t *value);
  1020. /**
  1021. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1022. * cfg item
  1023. * @psoc: psoc context
  1024. * @value: pointer to get required data
  1025. *
  1026. * Return: QDF_STATUS
  1027. */
  1028. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1029. bool *value);
  1030. /**
  1031. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1032. * cfg item
  1033. * @psoc: psoc context
  1034. * @value: data to be set
  1035. *
  1036. * Return: QDF_STATUS
  1037. */
  1038. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1039. bool value);
  1040. /**
  1041. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1042. * cfg item
  1043. * @psoc: psoc context
  1044. * @value: pointer to get required data
  1045. *
  1046. * Return: QDF_STATUS
  1047. */
  1048. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1049. bool *value);
  1050. /**
  1051. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1052. * cfg item
  1053. * @psoc: psoc context
  1054. * @value: data to be set
  1055. *
  1056. * Return: QDF_STATUS
  1057. */
  1058. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1059. bool value);
  1060. /**
  1061. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1062. * cfg item
  1063. * @psoc: psoc context
  1064. * @value: pointer to get required data
  1065. *
  1066. * Return: QDF_STATUS
  1067. */
  1068. QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1069. bool *value);
  1070. /**
  1071. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1072. * cfg item
  1073. * @psoc: psoc context
  1074. * @value: data to be set
  1075. *
  1076. * Return: QDF_STATUS
  1077. */
  1078. QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1079. bool value);
  1080. /**
  1081. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1082. * cfg item
  1083. * @psoc: psoc context
  1084. * @value: pointer to get required data
  1085. *
  1086. * Return: QDF_STATUS
  1087. */
  1088. QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1089. bool *value);
  1090. /**
  1091. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1092. * cfg item
  1093. * @psoc: psoc context
  1094. * @value: pointer to get required data
  1095. *
  1096. * Return: QDF_STATUS
  1097. */
  1098. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1099. bool *value);
  1100. /**
  1101. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1102. * cfg item
  1103. * @psoc: psoc context
  1104. * @value: data to be set
  1105. *
  1106. * Return: QDF_STATUS
  1107. */
  1108. QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1109. bool value);
  1110. /**
  1111. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1112. * cfg item
  1113. * @psoc: psoc context
  1114. * @value: pointer to get required data
  1115. *
  1116. * Return: QDF_STATUS
  1117. */
  1118. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1119. bool *value);
  1120. /**
  1121. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1122. * cfg item
  1123. * @psoc: psoc context
  1124. * @value: data to be set
  1125. *
  1126. * Return: QDF_STATUS
  1127. */
  1128. QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1129. bool value);
  1130. /**
  1131. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1132. * cfg item
  1133. * @psoc: psoc context
  1134. * @value: pointer to get required data
  1135. *
  1136. * Return: QDF_STATUS
  1137. */
  1138. QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1139. bool *value);
  1140. /**
  1141. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1142. * cfg item
  1143. * @psoc: psoc context
  1144. * @value: data to be set
  1145. *
  1146. * Return: QDF_STATUS
  1147. */
  1148. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1149. bool value);
  1150. /**
  1151. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1152. * cfg item
  1153. * @psoc: psoc context
  1154. * @value: data to be set
  1155. *
  1156. * Return: QDF_STATUS
  1157. */
  1158. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
  1159. bool value);
  1160. /**
  1161. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1162. * support cap
  1163. * into cfg item
  1164. * @psoc: psoc context
  1165. * @value: data to be set
  1166. *
  1167. * Return: QDF_STATUS
  1168. */
  1169. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1170. uint8_t value);
  1171. /**
  1172. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1173. * support cap into cfg item
  1174. *
  1175. * @psoc: psoc context
  1176. * @value: data to be set
  1177. *
  1178. * Return: QDF_STATUS
  1179. */
  1180. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1181. uint8_t *value);
  1182. /**
  1183. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1184. * into cfg item
  1185. * @psoc: psoc context
  1186. * @value: data to be set
  1187. *
  1188. * Return: QDF_STATUS
  1189. */
  1190. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1191. uint8_t value);
  1192. /**
  1193. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1194. * cfg item
  1195. * @psoc: psoc context
  1196. * @value: pointer to get required data
  1197. *
  1198. * Return: QDF_STATUS
  1199. */
  1200. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1201. bool *value);
  1202. /**
  1203. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1204. * cfg item
  1205. * @psoc: psoc context
  1206. * @value: data to be set
  1207. *
  1208. * Return: QDF_STATUS
  1209. */
  1210. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1211. bool value);
  1212. /**
  1213. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1214. * cfg item
  1215. * @psoc: psoc context
  1216. * @value: pointer to get required data
  1217. *
  1218. * Return: QDF_STATUS
  1219. */
  1220. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1221. bool *value);
  1222. /**
  1223. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1224. * cfg item
  1225. * @psoc: psoc context
  1226. * @value: data to be set
  1227. *
  1228. * Return: QDF_STATUS
  1229. */
  1230. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1231. bool value);
  1232. /**
  1233. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1234. * cfg item
  1235. * @psoc: psoc context
  1236. * @value: pointer to get required data
  1237. *
  1238. * Return: QDF_STATUS
  1239. */
  1240. QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1241. bool *value);
  1242. /**
  1243. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1244. * cfg item
  1245. * @psoc: psoc context
  1246. * @value: data to be set
  1247. *
  1248. * Return: QDF_STATUS
  1249. */
  1250. QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1251. bool value);
  1252. /**
  1253. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1254. * cfg item
  1255. * @psoc: psoc context
  1256. * @value: pointer to get required data
  1257. *
  1258. * Return: QDF_STATUS
  1259. */
  1260. QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1261. uint8_t *value);
  1262. /**
  1263. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1264. * cfg item
  1265. * @psoc: psoc context
  1266. * @value: data to be set
  1267. *
  1268. * Return: QDF_STATUS
  1269. */
  1270. QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1271. uint8_t value);
  1272. /**
  1273. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1274. * cfg item
  1275. * @psoc: psoc context
  1276. * @value: pointer to get required data
  1277. *
  1278. * Return: QDF_STATUS
  1279. */
  1280. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1281. uint32_t *value);
  1282. /**
  1283. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1284. * cfg item
  1285. * @psoc: psoc context
  1286. * @value: data to be set
  1287. *
  1288. * Return: QDF_STATUS
  1289. */
  1290. QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1291. uint32_t value);
  1292. /**
  1293. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1294. * cfg item
  1295. * @psoc: psoc context
  1296. * @value: pointer to get required data
  1297. *
  1298. * Return: QDF_STATUS
  1299. */
  1300. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1301. uint32_t *value);
  1302. /**
  1303. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1304. * cfg item
  1305. * @psoc: psoc context
  1306. * @value: data to be set
  1307. *
  1308. * Return: QDF_STATUS
  1309. */
  1310. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1311. uint32_t value);
  1312. /**
  1313. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1314. * cfg item
  1315. * @psoc: psoc context
  1316. * @value: data to be set
  1317. *
  1318. * Return: QDF_STATUS
  1319. */
  1320. QDF_STATUS
  1321. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1322. uint32_t value);
  1323. /**
  1324. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate 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_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1333. uint32_t value);
  1334. /**
  1335. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1336. * cfg item
  1337. * @psoc: psoc context
  1338. * @value: data to be set
  1339. *
  1340. * Return: QDF_STATUS
  1341. */
  1342. QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1343. uint32_t *value);
  1344. /**
  1345. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1346. * cfg item
  1347. * @psoc: psoc context
  1348. * @value: data to be set
  1349. *
  1350. * Return: QDF_STATUS
  1351. */
  1352. QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1353. uint32_t value);
  1354. /**
  1355. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1356. * @psoc: psoc context
  1357. * @value: data to be set
  1358. *
  1359. * Return: QDF_STATUS
  1360. */
  1361. QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  1362. bool *value);
  1363. /**
  1364. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1365. * @psoc: psoc context
  1366. * @value: data to be set
  1367. *
  1368. * Return: QDF_STATUS
  1369. */
  1370. QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
  1371. bool *value);
  1372. /**
  1373. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1374. * for 11ac
  1375. * @psoc: psoc context
  1376. * @value: data to be set
  1377. *
  1378. * Return: QDF_STATUS
  1379. */
  1380. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1381. uint8_t *value);
  1382. /**
  1383. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1384. * @psoc: psoc context
  1385. * @value: data to be set
  1386. *
  1387. * Return: QDF_STATUS
  1388. */
  1389. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1390. uint8_t *value);
  1391. /**
  1392. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1393. * @psoc: psoc context
  1394. * @value: data to be set
  1395. *
  1396. * Return: QDF_STATUS
  1397. */
  1398. QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1399. uint8_t *value);
  1400. /**
  1401. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1402. * @psoc: psoc context
  1403. * @value: data to be set
  1404. *
  1405. * Return: QDF_STATUS
  1406. */
  1407. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1408. uint8_t *value);
  1409. /**
  1410. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1411. * @psoc: psoc context
  1412. * @value: data to be set
  1413. *
  1414. * Return: QDF_STATUS
  1415. */
  1416. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1417. uint8_t *value);
  1418. /**
  1419. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1420. * @psoc: psoc context
  1421. * @value: data to be set
  1422. *
  1423. * Return: QDF_STATUS
  1424. */
  1425. QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  1426. bool *value);
  1427. /**
  1428. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1429. * @psoc: psoc context
  1430. * @value: data to be set
  1431. *
  1432. * Return: QDF_STATUS
  1433. */
  1434. QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1435. bool *value);
  1436. /**
  1437. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1438. * @psoc: psoc context
  1439. * @value: data to be set
  1440. *
  1441. * Return: QDF_STATUS
  1442. */
  1443. QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1444. bool value);
  1445. /**
  1446. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1447. * @psoc: psoc context
  1448. * @value: data to be set
  1449. *
  1450. * Return: QDF_STATUS
  1451. */
  1452. QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  1453. bool *value);
  1454. /**
  1455. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1456. * @psoc: psoc context
  1457. * @value: data to be set
  1458. *
  1459. * Return: QDF_STATUS
  1460. */
  1461. QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  1462. bool *value);
  1463. /**
  1464. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1465. * @psoc: psoc context
  1466. * @value: data to be set
  1467. *
  1468. * Return: QDF_STATUS
  1469. */
  1470. QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1471. bool *value);
  1472. /**
  1473. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1474. * @psoc: psoc context
  1475. * @value: data to be set
  1476. *
  1477. * Return: QDF_STATUS
  1478. */
  1479. QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1480. bool *value);
  1481. /**
  1482. * mlme_update_vht_cap() - update vht capabilities
  1483. * @psoc: psoc context
  1484. * @cfg: data to be set
  1485. *
  1486. * Return: QDF_STATUS
  1487. */
  1488. QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1489. struct wma_tgt_vht_cap *cfg);
  1490. /**
  1491. * mlme_update_nss_vht_cap() - Update the number of spatial
  1492. * streams supported for vht
  1493. * @psoc: psoc context
  1494. *
  1495. * Return: QDF_STATUS
  1496. */
  1497. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1498. #endif /* _WLAN_MLME_API_H_ */