wlan_mlme_api.h 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  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_band_capability() - Get the Band capability config
  168. * @psoc: pointer to psoc object
  169. * @band_capability: Pointer to the variable from caller
  170. *
  171. * Return: QDF Status
  172. */
  173. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  174. uint8_t *band_capability);
  175. /**
  176. * wlan_mlme_set_band_capability() - Set the Band capability config
  177. * @psoc: pointer to psoc object
  178. * @band_capability: Value to be set from the caller
  179. *
  180. * Return: QDF Status
  181. */
  182. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  183. uint8_t band_capability);
  184. /**
  185. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  186. * @psoc: pointer to psoc object
  187. * @prevent_link_down: Pointer to the variable from caller
  188. *
  189. * Return: QDF Status
  190. */
  191. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  192. bool *prevent_link_down);
  193. /**
  194. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  195. * @psoc: pointer to psoc object
  196. * @select_5ghz_margin: Pointer to the variable from caller
  197. *
  198. * Return: QDF Status
  199. */
  200. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  201. uint8_t *select_5ghz_margin);
  202. /**
  203. * wlan_mlme_get_crash_inject() - Get the crash inject config
  204. * @psoc: pointer to psoc object
  205. * @crash_inject: Pointer to the variable from caller
  206. *
  207. * Return: QDF Status
  208. */
  209. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  210. bool *crash_inject);
  211. /**
  212. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  213. * @psoc: pointer to psoc object
  214. * @lpass_support: Pointer to the variable from caller
  215. *
  216. * Return: QDF Status
  217. */
  218. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  219. bool *lpass_support);
  220. /**
  221. * wlan_mlme_get_self_recovery() - Get the self recovery config
  222. * @psoc: pointer to psoc object
  223. * @self_recovery: Pointer to the variable from caller
  224. *
  225. * Return: QDF Status
  226. */
  227. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  228. bool *self_recovery);
  229. /**
  230. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  231. * @psoc: pointer to psoc object
  232. * @sub_20_chan_width: Pointer to the variable from caller
  233. *
  234. * Return: QDF Status
  235. */
  236. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  237. uint8_t *sub_20_chan_width);
  238. /**
  239. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  240. * @psoc: pointer to psoc object
  241. * @fw_timeout_crash: Pointer to the variable from caller
  242. *
  243. * Return: QDF Status
  244. */
  245. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  246. bool *fw_timeout_crash);
  247. /**
  248. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  249. * @psoc: pointer to psoc object
  250. * @ito_repeat_count: Pointer to the variable from caller
  251. *
  252. * Return: QDF Status
  253. */
  254. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *ito_repeat_count);
  256. /**
  257. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  258. * @psoc: pointer to psoc object
  259. * @value: Value that needs to be set from the caller
  260. *
  261. * Return: QDF Status
  262. */
  263. QDF_STATUS wlan_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  264. bool *value);
  265. /**
  266. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  267. * @psoc: pointer to psoc object
  268. * @value: Value that needs to be set from the caller
  269. *
  270. * Return: QDF Status
  271. */
  272. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  273. uint32_t *value);
  274. /**
  275. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  276. * @psoc: pointer to psoc object
  277. * @value: Value that needs to be set from the caller
  278. *
  279. * Return: QDF Status
  280. */
  281. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  282. bool *value);
  283. /**
  284. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  285. * acs support for dfs ltecoex
  286. * @psoc: pointer to psoc object
  287. * @value: Value that needs to be set from the caller
  288. *
  289. * Return: QDF Status
  290. */
  291. QDF_STATUS
  292. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  293. bool *value);
  294. /**
  295. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  296. *
  297. * @psoc: pointer to psoc object
  298. * @value: Value that needs to be set from the caller
  299. *
  300. * Return: QDF Status
  301. */
  302. QDF_STATUS
  303. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  304. bool *value);
  305. /**
  306. *
  307. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  308. * override flag is set.
  309. * @psoc: pointer to psoc object
  310. * @sme_config - Sme config struct
  311. *
  312. * Return: QDF Status
  313. */
  314. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  315. bool *value);
  316. /**
  317. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  318. * @psoc: pointer to psoc object
  319. * @value: Value that needs to be set from the caller
  320. *
  321. * Return: QDF Status
  322. */
  323. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  324. bool *value);
  325. /**
  326. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  327. *
  328. * @psoc: pointer to psoc object
  329. * @value: Value that needs to be set from the caller
  330. *
  331. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  332. */
  333. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  334. bool *value);
  335. /**
  336. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  337. *
  338. * @psoc: pointer to psoc object
  339. * @value: Value that needs to be set from the caller
  340. *
  341. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  342. */
  343. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  344. uint8_t *value);
  345. /**
  346. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  347. *
  348. * @psoc: pointer to psoc object
  349. * @value: Value that needs to be set from the caller
  350. *
  351. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  352. */
  353. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  354. uint16_t *value);
  355. /**
  356. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  357. *
  358. * @psoc: pointer to psoc object
  359. * @value: Value that needs to be set from the caller
  360. *
  361. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  362. */
  363. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  364. uint16_t *value);
  365. /**
  366. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  367. *
  368. * @psoc: pointer to psoc object
  369. * @session_id: vdev_id
  370. *
  371. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  372. */
  373. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  374. uint8_t session_id);
  375. /**
  376. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  377. * @psoc: pointer to psoc object
  378. * @value: Value that needs to be set from the caller
  379. *
  380. * Return: QDF Status
  381. */
  382. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  383. int value);
  384. /**
  385. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  386. * @psoc: pointer to psoc object
  387. * @value: Value that needs to be set from the caller
  388. *
  389. * Return: QDF Status
  390. */
  391. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  392. int value);
  393. /**
  394. * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  395. * @psoc: pointer to psoc object
  396. * @value: Value that needs to be set from the caller
  397. *
  398. * Return: QDF Status
  399. */
  400. QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  401. int value);
  402. /**
  403. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  404. * @psoc: pointer to psoc object
  405. * @value: Value that needs to be set from the caller
  406. *
  407. * Return: QDF Status
  408. */
  409. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  410. bool *value);
  411. /**
  412. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  413. * channels
  414. * @psoc: pointer to psoc object
  415. * @value: Value that needs to be set from the caller
  416. *
  417. * Return: QDF Status
  418. */
  419. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  420. bool *value);
  421. /**
  422. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  423. * @psoc: pointer to psoc object
  424. * @value: Value that needs to be set from the caller
  425. *
  426. * Return: QDF Status
  427. */
  428. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  429. int *value);
  430. /**
  431. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  432. * @psoc: pointer to psoc object
  433. * @value: Value that needs to be set from the caller
  434. *
  435. * Return: QDF Status
  436. */
  437. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  438. int value);
  439. /**
  440. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  441. * @psoc: pointer to psoc object
  442. * @value: Value that needs to be set from the caller
  443. *
  444. * Return: QDF Status
  445. */
  446. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  447. int *value);
  448. /**
  449. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  450. * reorder buffs.
  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_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  457. *psoc, int *value);
  458. /**
  459. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  460. * switch beacon count
  461. * @psoc: pointer to psoc object
  462. * @value: Value that needs to be set from the caller
  463. *
  464. * Return: QDF Status
  465. */
  466. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  467. int *value);
  468. /**
  469. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  470. * switch mode
  471. * @psoc: pointer to psoc object
  472. * @value: Value that needs to be set from the caller
  473. *
  474. * Return: QDF Status
  475. */
  476. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  477. bool *value);
  478. /**
  479. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  480. * restart
  481. * @psoc: pointer to psoc object
  482. * @value: Value that needs to be set from the caller
  483. *
  484. * Return: QDF Status
  485. */
  486. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  487. bool *value);
  488. /**
  489. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  490. * beacon interval
  491. * @psoc: pointer to psoc object
  492. * @value: Value that needs to be set from the caller
  493. *
  494. * Return: QDF Status
  495. */
  496. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  497. *psoc, int *value);
  498. /**
  499. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  500. * enabled beacon interval
  501. * @psoc: pointer to psoc object
  502. * @value: Value that needs to be set from the caller
  503. *
  504. * Return: QDF Status
  505. */
  506. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  507. *psoc, bool *value);
  508. /**
  509. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  510. * info for STA
  511. * @psoc: pointer to psoc object
  512. * @value: pointer to the value which will be filled for the caller
  513. *
  514. * Return: QDF Status
  515. */
  516. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  517. bool *value);
  518. /**
  519. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  520. * info for SAP
  521. * @psoc: pointer to psoc object
  522. * @value: pointer to the value which will be filled for the caller
  523. *
  524. * Return: QDF Status
  525. */
  526. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  527. bool *value);
  528. /**
  529. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  530. * @psoc: pointer to psoc object
  531. * @value: pointer to the value which will be filled for the caller
  532. *
  533. * Return: QDF Status
  534. */
  535. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  536. uint32_t *value);
  537. /**
  538. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  539. * @psoc: pointer to psoc object
  540. * @value: Value that needs to be set from the caller
  541. *
  542. * Return: QDF Status
  543. */
  544. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  545. uint32_t value);
  546. /**
  547. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  548. * config
  549. * @psoc: pointer to psoc object
  550. * @value: pointer to the value which will be filled for the caller
  551. *
  552. * Return: QDF Status
  553. */
  554. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  555. uint32_t *value);
  556. /**
  557. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  558. * config
  559. * @psoc: pointer to psoc object
  560. * @value: Value that needs to be set from the caller
  561. *
  562. * Return: QDF Status
  563. */
  564. QDF_STATUS wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  565. uint32_t value);
  566. /**
  567. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  568. * @psoc: pointer to psoc object
  569. * @value: pointer to the value which will be filled for the caller
  570. *
  571. * Return: QDF Status
  572. */
  573. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  574. bool *value);
  575. /**
  576. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  577. * @psoc: pointer to psoc object
  578. * @value: value that needs to be set from the caller
  579. *
  580. * Return: QDF Status
  581. */
  582. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  583. bool value);
  584. /**
  585. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  586. * for VO
  587. * @psoc: pointer to psoc object
  588. * @value: Value that needs to be set from the caller
  589. *
  590. * Return: QDF Status
  591. */
  592. QDF_STATUS
  593. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  594. uint8_t *value);
  595. /**
  596. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  597. * MSDU size for VO
  598. * @psoc: pointer to psoc object
  599. * @value: Value that needs to be set from the caller
  600. *
  601. * Return: QDF Status
  602. */
  603. QDF_STATUS
  604. wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  605. uint16_t *value);
  606. /**
  607. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  608. * @psoc: pointer to psoc object
  609. * @value: Value that needs to be set from the caller
  610. *
  611. * Return: QDF Status
  612. */
  613. QDF_STATUS
  614. wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  615. uint32_t *value);
  616. /**
  617. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  618. * rate for VO
  619. * @psoc: pointer to psoc object
  620. * @value: Value that needs to be set from the caller
  621. *
  622. * Return: QDF Status
  623. */
  624. QDF_STATUS
  625. wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  626. uint32_t *value);
  627. /**
  628. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  629. * @psoc: pointer to psoc object
  630. * @value: Value that needs to be set from the caller
  631. *
  632. * Return: QDF Status
  633. */
  634. QDF_STATUS
  635. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  636. /**
  637. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  638. * @psoc: pointer to psoc object
  639. * @value: value that needs to be set from the caller
  640. *
  641. * Return: QDF Status
  642. */
  643. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  644. bool value);
  645. /**
  646. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  647. * interval for voice
  648. * @psoc: pointer to psoc object
  649. * @value: pointer to the value which will be filled for the caller
  650. *
  651. * Return: QDF Status
  652. */
  653. QDF_STATUS
  654. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  655. uint32_t *value);
  656. /**
  657. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  658. * interval for voice
  659. * @psoc: pointer to psoc object
  660. * @value: pointer to the value which will be filled for the caller
  661. *
  662. * Return: QDF Status
  663. */
  664. QDF_STATUS
  665. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  666. uint32_t *value);
  667. /**
  668. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  669. * @psoc: psoc context
  670. * @value: pointer to get required data
  671. *
  672. * Return: QDF_STATUS
  673. */
  674. QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  675. uint8_t *value);
  676. /**
  677. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  678. * @psoc: psoc context
  679. * @value: data to be set
  680. *
  681. * Return: QDF_STATUS
  682. */
  683. QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  684. uint8_t value);
  685. /**
  686. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  687. * cfg item
  688. * @psoc: psoc context
  689. * @value: pointer to get required data
  690. *
  691. * Return: QDF_STATUS
  692. */
  693. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  694. uint8_t *value);
  695. /**
  696. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  697. * cfg item
  698. * @psoc: psoc context
  699. * @value: data to be set
  700. *
  701. * Return: QDF_STATUS
  702. */
  703. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  704. uint8_t value);
  705. /**
  706. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  707. * cfg item
  708. * @psoc: psoc context
  709. * @value: data to be set
  710. *
  711. * Return: QDF_STATUS
  712. */
  713. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  714. uint8_t *value);
  715. /**
  716. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  717. * cfg item
  718. * @psoc: psoc context
  719. * @value: pointer to get required data
  720. *
  721. * Return: QDF_STATUS
  722. */
  723. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  724. bool *value);
  725. /**
  726. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  727. * cfg item
  728. * @psoc: psoc context
  729. * @value: data to be set
  730. *
  731. * Return: QDF_STATUS
  732. */
  733. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  734. bool value);
  735. /**
  736. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  737. * cfg item
  738. * @psoc: psoc context
  739. * @value: pointer to get required data
  740. *
  741. * Return: QDF_STATUS
  742. */
  743. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  744. bool *value);
  745. /**
  746. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  747. * cfg item
  748. * @psoc: psoc context
  749. * @value: data to be set
  750. *
  751. * Return: QDF_STATUS
  752. */
  753. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  754. bool value);
  755. /**
  756. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  757. * cfg item
  758. * @psoc: psoc context
  759. * @value: pointer to get required data
  760. *
  761. * Return: QDF_STATUS
  762. */
  763. QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  764. bool *value);
  765. /**
  766. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  767. * cfg item
  768. * @psoc: psoc context
  769. * @value: data to be set
  770. *
  771. * Return: QDF_STATUS
  772. */
  773. QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  774. bool value);
  775. /**
  776. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  777. * cfg item
  778. * @psoc: psoc context
  779. * @value: pointer to get required data
  780. *
  781. * Return: QDF_STATUS
  782. */
  783. QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  784. bool *value);
  785. /**
  786. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  787. * cfg item
  788. * @psoc: psoc context
  789. * @value: pointer to get required data
  790. *
  791. * Return: QDF_STATUS
  792. */
  793. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  794. bool *value);
  795. /**
  796. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  797. * cfg item
  798. * @psoc: psoc context
  799. * @value: data to be set
  800. *
  801. * Return: QDF_STATUS
  802. */
  803. QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  804. bool value);
  805. /**
  806. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  807. * cfg item
  808. * @psoc: psoc context
  809. * @value: pointer to get required data
  810. *
  811. * Return: QDF_STATUS
  812. */
  813. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  814. bool *value);
  815. /**
  816. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  817. * cfg item
  818. * @psoc: psoc context
  819. * @value: data to be set
  820. *
  821. * Return: QDF_STATUS
  822. */
  823. QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  824. bool value);
  825. /**
  826. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  827. * cfg item
  828. * @psoc: psoc context
  829. * @value: pointer to get required data
  830. *
  831. * Return: QDF_STATUS
  832. */
  833. QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  834. bool *value);
  835. /**
  836. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  837. * cfg item
  838. * @psoc: psoc context
  839. * @value: data to be set
  840. *
  841. * Return: QDF_STATUS
  842. */
  843. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  844. bool value);
  845. /**
  846. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  847. * cfg item
  848. * @psoc: psoc context
  849. * @value: data to be set
  850. *
  851. * Return: QDF_STATUS
  852. */
  853. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
  854. bool value);
  855. /**
  856. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  857. * support cap
  858. * into cfg item
  859. * @psoc: psoc context
  860. * @value: data to be set
  861. *
  862. * Return: QDF_STATUS
  863. */
  864. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  865. uint8_t value);
  866. /**
  867. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  868. * support cap
  869. * into cfg item
  870. * @psoc: psoc context
  871. * @value: data to be set
  872. *
  873. * Return: QDF_STATUS
  874. */
  875. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  876. uint8_t *value);
  877. /**
  878. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  879. * into cfg item
  880. * @psoc: psoc context
  881. * @value: data to be set
  882. *
  883. * Return: QDF_STATUS
  884. */
  885. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  886. uint8_t value);
  887. /**
  888. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  889. * cfg item
  890. * @psoc: psoc context
  891. * @value: pointer to get required data
  892. *
  893. * Return: QDF_STATUS
  894. */
  895. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  896. bool *value);
  897. /**
  898. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  899. * cfg item
  900. * @psoc: psoc context
  901. * @value: data to be set
  902. *
  903. * Return: QDF_STATUS
  904. */
  905. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  906. bool value);
  907. /**
  908. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  909. * cfg item
  910. * @psoc: psoc context
  911. * @value: pointer to get required data
  912. *
  913. * Return: QDF_STATUS
  914. */
  915. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  916. bool *value);
  917. /**
  918. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  919. * cfg item
  920. * @psoc: psoc context
  921. * @value: data to be set
  922. *
  923. * Return: QDF_STATUS
  924. */
  925. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  926. bool value);
  927. /**
  928. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  929. * cfg item
  930. * @psoc: psoc context
  931. * @value: pointer to get required data
  932. *
  933. * Return: QDF_STATUS
  934. */
  935. QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  936. bool *value);
  937. /**
  938. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  939. * cfg item
  940. * @psoc: psoc context
  941. * @value: data to be set
  942. *
  943. * Return: QDF_STATUS
  944. */
  945. QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  946. bool value);
  947. /**
  948. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  949. * cfg item
  950. * @psoc: psoc context
  951. * @value: pointer to get required data
  952. *
  953. * Return: QDF_STATUS
  954. */
  955. QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  956. uint8_t *value);
  957. /**
  958. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  959. * cfg item
  960. * @psoc: psoc context
  961. * @value: data to be set
  962. *
  963. * Return: QDF_STATUS
  964. */
  965. QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  966. uint8_t value);
  967. /**
  968. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  969. * cfg item
  970. * @psoc: psoc context
  971. * @value: pointer to get required data
  972. *
  973. * Return: QDF_STATUS
  974. */
  975. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  976. uint32_t *value);
  977. /**
  978. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  979. * cfg item
  980. * @psoc: psoc context
  981. * @value: data to be set
  982. *
  983. * Return: QDF_STATUS
  984. */
  985. QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  986. uint32_t value);
  987. /**
  988. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  989. * cfg item
  990. * @psoc: psoc context
  991. * @value: pointer to get required data
  992. *
  993. * Return: QDF_STATUS
  994. */
  995. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  996. uint32_t *value);
  997. /**
  998. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  999. * cfg item
  1000. * @psoc: psoc context
  1001. * @value: data to be set
  1002. *
  1003. * Return: QDF_STATUS
  1004. */
  1005. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1006. uint32_t value);
  1007. /**
  1008. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1009. * cfg item
  1010. * @psoc: psoc context
  1011. * @value: data to be set
  1012. *
  1013. * Return: QDF_STATUS
  1014. */
  1015. QDF_STATUS
  1016. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1017. uint32_t value);
  1018. /**
  1019. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1020. * cfg item
  1021. * @psoc: psoc context
  1022. * @value: data to be set
  1023. *
  1024. * Return: QDF_STATUS
  1025. */
  1026. QDF_STATUS
  1027. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1028. uint32_t value);
  1029. /**
  1030. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1031. * cfg item
  1032. * @psoc: psoc context
  1033. * @value: data to be set
  1034. *
  1035. * Return: QDF_STATUS
  1036. */
  1037. QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1038. uint32_t *value);
  1039. /**
  1040. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1041. * cfg item
  1042. * @psoc: psoc context
  1043. * @value: data to be set
  1044. *
  1045. * Return: QDF_STATUS
  1046. */
  1047. QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1048. uint32_t value);
  1049. /**
  1050. * wlan_mlme_get_vht_enable_tx_bf() - VHT Rx MCS capability for 1x1 mode
  1051. * @psoc: psoc context
  1052. * @value: data to be set
  1053. *
  1054. * Return: QDF_STATUS
  1055. */
  1056. QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  1057. bool *value);
  1058. /**
  1059. * wlan_mlme_get_vht_enable_tx_su_beam() - VHT enable tx su beam
  1060. * @psoc: psoc context
  1061. * @value: data to be set
  1062. *
  1063. * Return: QDF_STATUS
  1064. */
  1065. QDF_STATUS wlan_mlme_get_vht_enable_tx_su_beam(struct wlan_objmgr_psoc *psoc,
  1066. bool *value);
  1067. /**
  1068. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1069. * for 11ac
  1070. * @psoc: psoc context
  1071. * @value: data to be set
  1072. *
  1073. * Return: QDF_STATUS
  1074. */
  1075. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1076. uint8_t *value);
  1077. /**
  1078. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1079. * @psoc: psoc context
  1080. * @value: data to be set
  1081. *
  1082. * Return: QDF_STATUS
  1083. */
  1084. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1085. uint8_t *value);
  1086. /**
  1087. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1088. * @psoc: psoc context
  1089. * @value: data to be set
  1090. *
  1091. * Return: QDF_STATUS
  1092. */
  1093. QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1094. uint8_t *value);
  1095. /**
  1096. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1097. * @psoc: psoc context
  1098. * @value: data to be set
  1099. *
  1100. * Return: QDF_STATUS
  1101. */
  1102. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1103. uint8_t *value);
  1104. /**
  1105. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1106. * @psoc: psoc context
  1107. * @value: data to be set
  1108. *
  1109. * Return: QDF_STATUS
  1110. */
  1111. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1112. uint8_t *value);
  1113. /**
  1114. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1115. * @psoc: psoc context
  1116. * @value: data to be set
  1117. *
  1118. * Return: QDF_STATUS
  1119. */
  1120. QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  1121. bool *value);
  1122. /**
  1123. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1124. * @psoc: psoc context
  1125. * @value: data to be set
  1126. *
  1127. * Return: QDF_STATUS
  1128. */
  1129. QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1130. bool *value);
  1131. /**
  1132. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1133. * @psoc: psoc context
  1134. * @value: data to be set
  1135. *
  1136. * Return: QDF_STATUS
  1137. */
  1138. QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1139. bool value);
  1140. /**
  1141. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1142. * @psoc: psoc context
  1143. * @value: data to be set
  1144. *
  1145. * Return: QDF_STATUS
  1146. */
  1147. QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  1148. bool *value);
  1149. /**
  1150. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1151. * @psoc: psoc context
  1152. * @value: data to be set
  1153. *
  1154. * Return: QDF_STATUS
  1155. */
  1156. QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  1157. bool *value);
  1158. /**
  1159. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1160. * @psoc: psoc context
  1161. * @value: data to be set
  1162. *
  1163. * Return: QDF_STATUS
  1164. */
  1165. QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1166. bool *value);
  1167. /**
  1168. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1169. * @psoc: psoc context
  1170. * @value: data to be set
  1171. *
  1172. * Return: QDF_STATUS
  1173. */
  1174. QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1175. bool *value);
  1176. /**
  1177. * mlme_update_vht_cap() - update vht capabilities
  1178. * @psoc: psoc context
  1179. * @cfg: data to be set
  1180. *
  1181. * Return: QDF_STATUS
  1182. */
  1183. QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1184. struct wma_tgt_vht_cap *cfg);
  1185. /**
  1186. * mlme_update_nss_vht_cap() - Update the number of spatial
  1187. * streams supported for vht
  1188. * @psoc: psoc context
  1189. *
  1190. * Return: QDF_STATUS
  1191. */
  1192. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1193. #endif /* _WLAN_MLME_API_H_ */