wlan_mlme_api.h 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393
  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_vi() - Get TSPEC direction
  586. * for VI
  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_vi(struct wlan_objmgr_psoc *psoc,
  594. uint8_t *value);
  595. /**
  596. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  597. * MSDU size for VI
  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_vi(struct wlan_objmgr_psoc *psoc,
  605. uint16_t *value);
  606. /**
  607. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  608. * rate for VI
  609. * @psoc: pointer to psoc object
  610. * @value: Value that needs to be set from the caller
  611. *
  612. * Return: QDF Status
  613. */
  614. QDF_STATUS
  615. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  616. uint32_t *value);
  617. /**
  618. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  619. * rate for VI
  620. * @psoc: pointer to psoc object
  621. * @value: Value that needs to be set from the caller
  622. *
  623. * Return: QDF Status
  624. */
  625. QDF_STATUS
  626. wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  627. uint32_t *value);
  628. /**
  629. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  630. * allowance for VI
  631. * @psoc: pointer to psoc object
  632. * @value: Value that needs to be set from the caller
  633. *
  634. * Return: QDF Status
  635. */
  636. QDF_STATUS
  637. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  638. /**
  639. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  640. * interval for video
  641. * @psoc: pointer to psoc object
  642. * @value: pointer to the value which will be filled for the caller
  643. *
  644. * Return: QDF Status
  645. */
  646. QDF_STATUS
  647. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  648. uint32_t *value);
  649. /**
  650. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  651. * interval for video
  652. * @psoc: pointer to psoc object
  653. * @value: pointer to the value which will be filled for the caller
  654. *
  655. * Return: QDF Status
  656. */
  657. QDF_STATUS
  658. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  659. uint32_t *value);
  660. /**
  661. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  662. * for VO
  663. * @psoc: pointer to psoc object
  664. * @value: Value that needs to be set from the caller
  665. *
  666. * Return: QDF Status
  667. */
  668. QDF_STATUS
  669. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  670. uint8_t *value);
  671. /**
  672. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  673. * MSDU size for VO
  674. * @psoc: pointer to psoc object
  675. * @value: Value that needs to be set from the caller
  676. *
  677. * Return: QDF Status
  678. */
  679. QDF_STATUS
  680. wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  681. uint16_t *value);
  682. /**
  683. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  684. * @psoc: pointer to psoc object
  685. * @value: Value that needs to be set from the caller
  686. *
  687. * Return: QDF Status
  688. */
  689. QDF_STATUS
  690. wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  691. uint32_t *value);
  692. /**
  693. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  694. * rate for VO
  695. * @psoc: pointer to psoc object
  696. * @value: Value that needs to be set from the caller
  697. *
  698. * Return: QDF Status
  699. */
  700. QDF_STATUS
  701. wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  702. uint32_t *value);
  703. /**
  704. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  705. * @psoc: pointer to psoc object
  706. * @value: Value that needs to be set from the caller
  707. *
  708. * Return: QDF Status
  709. */
  710. QDF_STATUS
  711. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  712. /**
  713. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  714. * @psoc: pointer to psoc object
  715. * @value: value that needs to be set from the caller
  716. *
  717. * Return: QDF Status
  718. */
  719. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  720. bool value);
  721. /**
  722. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  723. * interval for voice
  724. * @psoc: pointer to psoc object
  725. * @value: pointer to the value which will be filled for the caller
  726. *
  727. * Return: QDF Status
  728. */
  729. QDF_STATUS
  730. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  731. uint32_t *value);
  732. /**
  733. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  734. * interval for voice
  735. * @psoc: pointer to psoc object
  736. * @value: pointer to the value which will be filled for the caller
  737. *
  738. * Return: QDF Status
  739. */
  740. QDF_STATUS
  741. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  742. uint32_t *value);
  743. /**
  744. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  745. * @psoc: psoc context
  746. * @value: pointer to get required data
  747. *
  748. * Return: QDF_STATUS
  749. */
  750. QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  751. uint8_t *value);
  752. /**
  753. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  754. * @psoc: psoc context
  755. * @value: data to be set
  756. *
  757. * Return: QDF_STATUS
  758. */
  759. QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  760. uint8_t value);
  761. /**
  762. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  763. * cfg item
  764. * @psoc: psoc context
  765. * @value: pointer to get required data
  766. *
  767. * Return: QDF_STATUS
  768. */
  769. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  770. uint8_t *value);
  771. /**
  772. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  773. * cfg item
  774. * @psoc: psoc context
  775. * @value: data to be set
  776. *
  777. * Return: QDF_STATUS
  778. */
  779. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  780. uint8_t value);
  781. /**
  782. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  783. * cfg item
  784. * @psoc: psoc context
  785. * @value: data to be set
  786. *
  787. * Return: QDF_STATUS
  788. */
  789. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  790. uint8_t *value);
  791. /**
  792. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  793. * cfg item
  794. * @psoc: psoc context
  795. * @value: pointer to get required data
  796. *
  797. * Return: QDF_STATUS
  798. */
  799. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  800. bool *value);
  801. /**
  802. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  803. * cfg item
  804. * @psoc: psoc context
  805. * @value: data to be set
  806. *
  807. * Return: QDF_STATUS
  808. */
  809. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  810. bool value);
  811. /**
  812. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  813. * cfg item
  814. * @psoc: psoc context
  815. * @value: pointer to get required data
  816. *
  817. * Return: QDF_STATUS
  818. */
  819. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  820. bool *value);
  821. /**
  822. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  823. * cfg item
  824. * @psoc: psoc context
  825. * @value: data to be set
  826. *
  827. * Return: QDF_STATUS
  828. */
  829. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  830. bool value);
  831. /**
  832. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  833. * cfg item
  834. * @psoc: psoc context
  835. * @value: pointer to get required data
  836. *
  837. * Return: QDF_STATUS
  838. */
  839. QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  840. bool *value);
  841. /**
  842. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  843. * cfg item
  844. * @psoc: psoc context
  845. * @value: data to be set
  846. *
  847. * Return: QDF_STATUS
  848. */
  849. QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  850. bool value);
  851. /**
  852. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  853. * cfg item
  854. * @psoc: psoc context
  855. * @value: pointer to get required data
  856. *
  857. * Return: QDF_STATUS
  858. */
  859. QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  860. bool *value);
  861. /**
  862. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  863. * cfg item
  864. * @psoc: psoc context
  865. * @value: pointer to get required data
  866. *
  867. * Return: QDF_STATUS
  868. */
  869. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  870. bool *value);
  871. /**
  872. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  873. * cfg item
  874. * @psoc: psoc context
  875. * @value: data to be set
  876. *
  877. * Return: QDF_STATUS
  878. */
  879. QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  880. bool value);
  881. /**
  882. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  883. * cfg item
  884. * @psoc: psoc context
  885. * @value: pointer to get required data
  886. *
  887. * Return: QDF_STATUS
  888. */
  889. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  890. bool *value);
  891. /**
  892. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  893. * cfg item
  894. * @psoc: psoc context
  895. * @value: data to be set
  896. *
  897. * Return: QDF_STATUS
  898. */
  899. QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  900. bool value);
  901. /**
  902. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  903. * cfg item
  904. * @psoc: psoc context
  905. * @value: pointer to get required data
  906. *
  907. * Return: QDF_STATUS
  908. */
  909. QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  910. bool *value);
  911. /**
  912. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  913. * cfg item
  914. * @psoc: psoc context
  915. * @value: data to be set
  916. *
  917. * Return: QDF_STATUS
  918. */
  919. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  920. bool value);
  921. /**
  922. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  923. * cfg item
  924. * @psoc: psoc context
  925. * @value: data to be set
  926. *
  927. * Return: QDF_STATUS
  928. */
  929. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
  930. bool value);
  931. /**
  932. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  933. * support cap
  934. * into cfg item
  935. * @psoc: psoc context
  936. * @value: data to be set
  937. *
  938. * Return: QDF_STATUS
  939. */
  940. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  941. uint8_t value);
  942. /**
  943. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  944. * support cap into cfg item
  945. *
  946. * @psoc: psoc context
  947. * @value: data to be set
  948. *
  949. * Return: QDF_STATUS
  950. */
  951. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  952. uint8_t *value);
  953. /**
  954. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  955. * into cfg item
  956. * @psoc: psoc context
  957. * @value: data to be set
  958. *
  959. * Return: QDF_STATUS
  960. */
  961. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  962. uint8_t value);
  963. /**
  964. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  965. * cfg item
  966. * @psoc: psoc context
  967. * @value: pointer to get required data
  968. *
  969. * Return: QDF_STATUS
  970. */
  971. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  972. bool *value);
  973. /**
  974. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  975. * cfg item
  976. * @psoc: psoc context
  977. * @value: data to be set
  978. *
  979. * Return: QDF_STATUS
  980. */
  981. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  982. bool value);
  983. /**
  984. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  985. * cfg item
  986. * @psoc: psoc context
  987. * @value: pointer to get required data
  988. *
  989. * Return: QDF_STATUS
  990. */
  991. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  992. bool *value);
  993. /**
  994. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  995. * cfg item
  996. * @psoc: psoc context
  997. * @value: data to be set
  998. *
  999. * Return: QDF_STATUS
  1000. */
  1001. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1002. bool value);
  1003. /**
  1004. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1005. * cfg item
  1006. * @psoc: psoc context
  1007. * @value: pointer to get required data
  1008. *
  1009. * Return: QDF_STATUS
  1010. */
  1011. QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1012. bool *value);
  1013. /**
  1014. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1015. * cfg item
  1016. * @psoc: psoc context
  1017. * @value: data to be set
  1018. *
  1019. * Return: QDF_STATUS
  1020. */
  1021. QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1022. bool value);
  1023. /**
  1024. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1025. * cfg item
  1026. * @psoc: psoc context
  1027. * @value: pointer to get required data
  1028. *
  1029. * Return: QDF_STATUS
  1030. */
  1031. QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1032. uint8_t *value);
  1033. /**
  1034. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1035. * cfg item
  1036. * @psoc: psoc context
  1037. * @value: data to be set
  1038. *
  1039. * Return: QDF_STATUS
  1040. */
  1041. QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1042. uint8_t value);
  1043. /**
  1044. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1045. * cfg item
  1046. * @psoc: psoc context
  1047. * @value: pointer to get required data
  1048. *
  1049. * Return: QDF_STATUS
  1050. */
  1051. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1052. uint32_t *value);
  1053. /**
  1054. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1055. * cfg item
  1056. * @psoc: psoc context
  1057. * @value: data to be set
  1058. *
  1059. * Return: QDF_STATUS
  1060. */
  1061. QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1062. uint32_t value);
  1063. /**
  1064. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1065. * cfg item
  1066. * @psoc: psoc context
  1067. * @value: pointer to get required data
  1068. *
  1069. * Return: QDF_STATUS
  1070. */
  1071. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1072. uint32_t *value);
  1073. /**
  1074. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1075. * cfg item
  1076. * @psoc: psoc context
  1077. * @value: data to be set
  1078. *
  1079. * Return: QDF_STATUS
  1080. */
  1081. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1082. uint32_t value);
  1083. /**
  1084. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1085. * cfg item
  1086. * @psoc: psoc context
  1087. * @value: data to be set
  1088. *
  1089. * Return: QDF_STATUS
  1090. */
  1091. QDF_STATUS
  1092. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1093. uint32_t value);
  1094. /**
  1095. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1096. * cfg item
  1097. * @psoc: psoc context
  1098. * @value: data to be set
  1099. *
  1100. * Return: QDF_STATUS
  1101. */
  1102. QDF_STATUS
  1103. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1104. uint32_t value);
  1105. /**
  1106. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1107. * cfg item
  1108. * @psoc: psoc context
  1109. * @value: data to be set
  1110. *
  1111. * Return: QDF_STATUS
  1112. */
  1113. QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1114. uint32_t *value);
  1115. /**
  1116. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1117. * cfg item
  1118. * @psoc: psoc context
  1119. * @value: data to be set
  1120. *
  1121. * Return: QDF_STATUS
  1122. */
  1123. QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1124. uint32_t value);
  1125. /**
  1126. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1127. * @psoc: psoc context
  1128. * @value: data to be set
  1129. *
  1130. * Return: QDF_STATUS
  1131. */
  1132. QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  1133. bool *value);
  1134. /**
  1135. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1136. * @psoc: psoc context
  1137. * @value: data to be set
  1138. *
  1139. * Return: QDF_STATUS
  1140. */
  1141. QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
  1142. bool *value);
  1143. /**
  1144. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1145. * for 11ac
  1146. * @psoc: psoc context
  1147. * @value: data to be set
  1148. *
  1149. * Return: QDF_STATUS
  1150. */
  1151. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1152. uint8_t *value);
  1153. /**
  1154. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1155. * @psoc: psoc context
  1156. * @value: data to be set
  1157. *
  1158. * Return: QDF_STATUS
  1159. */
  1160. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1161. uint8_t *value);
  1162. /**
  1163. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1164. * @psoc: psoc context
  1165. * @value: data to be set
  1166. *
  1167. * Return: QDF_STATUS
  1168. */
  1169. QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1170. uint8_t *value);
  1171. /**
  1172. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1173. * @psoc: psoc context
  1174. * @value: data to be set
  1175. *
  1176. * Return: QDF_STATUS
  1177. */
  1178. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1179. uint8_t *value);
  1180. /**
  1181. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1182. * @psoc: psoc context
  1183. * @value: data to be set
  1184. *
  1185. * Return: QDF_STATUS
  1186. */
  1187. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1188. uint8_t *value);
  1189. /**
  1190. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1191. * @psoc: psoc context
  1192. * @value: data to be set
  1193. *
  1194. * Return: QDF_STATUS
  1195. */
  1196. QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  1197. bool *value);
  1198. /**
  1199. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1200. * @psoc: psoc context
  1201. * @value: data to be set
  1202. *
  1203. * Return: QDF_STATUS
  1204. */
  1205. QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1206. bool *value);
  1207. /**
  1208. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1209. * @psoc: psoc context
  1210. * @value: data to be set
  1211. *
  1212. * Return: QDF_STATUS
  1213. */
  1214. QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1215. bool value);
  1216. /**
  1217. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1218. * @psoc: psoc context
  1219. * @value: data to be set
  1220. *
  1221. * Return: QDF_STATUS
  1222. */
  1223. QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  1224. bool *value);
  1225. /**
  1226. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1227. * @psoc: psoc context
  1228. * @value: data to be set
  1229. *
  1230. * Return: QDF_STATUS
  1231. */
  1232. QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  1233. bool *value);
  1234. /**
  1235. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1236. * @psoc: psoc context
  1237. * @value: data to be set
  1238. *
  1239. * Return: QDF_STATUS
  1240. */
  1241. QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1242. bool *value);
  1243. /**
  1244. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1245. * @psoc: psoc context
  1246. * @value: data to be set
  1247. *
  1248. * Return: QDF_STATUS
  1249. */
  1250. QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1251. bool *value);
  1252. /**
  1253. * mlme_update_vht_cap() - update vht capabilities
  1254. * @psoc: psoc context
  1255. * @cfg: data to be set
  1256. *
  1257. * Return: QDF_STATUS
  1258. */
  1259. QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1260. struct wma_tgt_vht_cap *cfg);
  1261. /**
  1262. * mlme_update_nss_vht_cap() - Update the number of spatial
  1263. * streams supported for vht
  1264. * @psoc: psoc context
  1265. *
  1266. * Return: QDF_STATUS
  1267. */
  1268. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1269. #endif /* _WLAN_MLME_API_H_ */