wlan_mlme_api.h 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554
  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_be() - Get TSPEC direction
  662. * for BE
  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_be(struct wlan_objmgr_psoc *psoc,
  670. uint8_t *value);
  671. /**
  672. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  673. * MSDU size for BE
  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_be(struct wlan_objmgr_psoc *psoc,
  681. uint16_t *value);
  682. /**
  683. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  684. * rate for BE
  685. * @psoc: pointer to psoc object
  686. * @value: Value that needs to be set from the caller
  687. *
  688. * Return: QDF Status
  689. */
  690. QDF_STATUS
  691. wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  692. uint32_t *value);
  693. /**
  694. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  695. * rate for BE
  696. * @psoc: pointer to psoc object
  697. * @value: Value that needs to be set from the caller
  698. *
  699. * Return: QDF Status
  700. */
  701. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  702. uint32_t *value);
  703. /**
  704. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  705. * allowance for BE
  706. * @psoc: pointer to psoc object
  707. * @value: Value that needs to be set from the caller
  708. *
  709. * Return: QDF Status
  710. */
  711. QDF_STATUS wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc,
  712. uint16_t *value);
  713. /**
  714. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  715. * interval for BE
  716. * @psoc: pointer to psoc object
  717. * @value: pointer to the value which will be filled for the caller
  718. *
  719. * Return: QDF Status
  720. */
  721. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  722. uint32_t *value);
  723. /**
  724. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  725. * interval for BE
  726. * @psoc: pointer to psoc object
  727. * @value: pointer to the value which will be filled for the caller
  728. *
  729. * Return: QDF Status
  730. */
  731. QDF_STATUS wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  732. uint32_t *value);
  733. /**
  734. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  735. * for BK
  736. * @psoc: pointer to psoc object
  737. * @value: Value that needs to be set from the caller
  738. *
  739. * Return: QDF Status
  740. */
  741. QDF_STATUS
  742. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  743. /**
  744. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  745. * MSDU size for BK
  746. * @psoc: pointer to psoc object
  747. * @value: Value that needs to be set from the caller
  748. *
  749. * Return: QDF Status
  750. */
  751. QDF_STATUS
  752. wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  753. uint16_t *value);
  754. /**
  755. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  756. * rate for BK
  757. * @psoc: pointer to psoc object
  758. * @value: Value that needs to be set from the caller
  759. *
  760. * Return: QDF Status
  761. */
  762. QDF_STATUS
  763. wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  764. uint32_t *value);
  765. /**
  766. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  767. * rate for BK
  768. * @psoc: pointer to psoc object
  769. * @value: Value that needs to be set from the caller
  770. *
  771. * Return: QDF Status
  772. */
  773. QDF_STATUS
  774. wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  775. uint32_t *value);
  776. /**
  777. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  778. * allowance for BE
  779. * @psoc: pointer to psoc object
  780. * @value: Value that needs to be set from the caller
  781. *
  782. * Return: QDF Status
  783. */
  784. QDF_STATUS
  785. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  786. /**
  787. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  788. * interval for BK
  789. * @psoc: pointer to psoc object
  790. * @value: pointer to the value which will be filled for the caller
  791. *
  792. * Return: QDF Status
  793. */
  794. QDF_STATUS
  795. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  796. uint32_t *value);
  797. /**
  798. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  799. * interval for BK
  800. * @psoc: pointer to psoc object
  801. * @value: pointer to the value which will be filled for the caller
  802. *
  803. * Return: QDF Status
  804. */
  805. QDF_STATUS
  806. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  807. uint32_t *value);
  808. /**
  809. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  810. * for VO
  811. * @psoc: pointer to psoc object
  812. * @value: Value that needs to be set from the caller
  813. *
  814. * Return: QDF Status
  815. */
  816. QDF_STATUS wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  817. uint8_t *value);
  818. /**
  819. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  820. * MSDU size for VO
  821. * @psoc: pointer to psoc object
  822. * @value: Value that needs to be set from the caller
  823. *
  824. * Return: QDF Status
  825. */
  826. QDF_STATUS
  827. wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  828. uint16_t *value);
  829. /**
  830. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  831. * @psoc: pointer to psoc object
  832. * @value: Value that needs to be set from the caller
  833. *
  834. * Return: QDF Status
  835. */
  836. QDF_STATUS
  837. wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  838. uint32_t *value);
  839. /**
  840. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  841. * rate for VO
  842. * @psoc: pointer to psoc object
  843. * @value: Value that needs to be set from the caller
  844. *
  845. * Return: QDF Status
  846. */
  847. QDF_STATUS
  848. wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  849. uint32_t *value);
  850. /**
  851. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  852. * @psoc: pointer to psoc object
  853. * @value: Value that needs to be set from the caller
  854. *
  855. * Return: QDF Status
  856. */
  857. QDF_STATUS
  858. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  859. /**
  860. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  861. * @psoc: pointer to psoc object
  862. * @value: value that needs to be set from the caller
  863. *
  864. * Return: QDF Status
  865. */
  866. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  867. bool value);
  868. /**
  869. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  870. * interval for voice
  871. * @psoc: pointer to psoc object
  872. * @value: pointer to the value which will be filled for the caller
  873. *
  874. * Return: QDF Status
  875. */
  876. QDF_STATUS
  877. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  878. uint32_t *value);
  879. /**
  880. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  881. * interval for voice
  882. * @psoc: pointer to psoc object
  883. * @value: pointer to the value which will be filled for the caller
  884. *
  885. * Return: QDF Status
  886. */
  887. QDF_STATUS
  888. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  889. uint32_t *value);
  890. /**
  891. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  892. * @psoc: psoc context
  893. * @value: pointer to get required data
  894. *
  895. * Return: QDF_STATUS
  896. */
  897. QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  898. uint8_t *value);
  899. /**
  900. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  901. * @psoc: psoc context
  902. * @value: data to be set
  903. *
  904. * Return: QDF_STATUS
  905. */
  906. QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  907. uint8_t value);
  908. /**
  909. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  910. * cfg item
  911. * @psoc: psoc context
  912. * @value: pointer to get required data
  913. *
  914. * Return: QDF_STATUS
  915. */
  916. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  917. uint8_t *value);
  918. /**
  919. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  920. * cfg item
  921. * @psoc: psoc context
  922. * @value: data to be set
  923. *
  924. * Return: QDF_STATUS
  925. */
  926. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  927. uint8_t value);
  928. /**
  929. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  930. * cfg item
  931. * @psoc: psoc context
  932. * @value: data to be set
  933. *
  934. * Return: QDF_STATUS
  935. */
  936. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  937. uint8_t *value);
  938. /**
  939. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  940. * cfg item
  941. * @psoc: psoc context
  942. * @value: pointer to get required data
  943. *
  944. * Return: QDF_STATUS
  945. */
  946. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  947. bool *value);
  948. /**
  949. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  950. * cfg item
  951. * @psoc: psoc context
  952. * @value: data to be set
  953. *
  954. * Return: QDF_STATUS
  955. */
  956. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  957. bool value);
  958. /**
  959. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  960. * cfg item
  961. * @psoc: psoc context
  962. * @value: pointer to get required data
  963. *
  964. * Return: QDF_STATUS
  965. */
  966. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  967. bool *value);
  968. /**
  969. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  970. * cfg item
  971. * @psoc: psoc context
  972. * @value: data to be set
  973. *
  974. * Return: QDF_STATUS
  975. */
  976. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  977. bool value);
  978. /**
  979. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  980. * cfg item
  981. * @psoc: psoc context
  982. * @value: pointer to get required data
  983. *
  984. * Return: QDF_STATUS
  985. */
  986. QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  987. bool *value);
  988. /**
  989. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  990. * cfg item
  991. * @psoc: psoc context
  992. * @value: data to be set
  993. *
  994. * Return: QDF_STATUS
  995. */
  996. QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  997. bool value);
  998. /**
  999. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1000. * cfg item
  1001. * @psoc: psoc context
  1002. * @value: pointer to get required data
  1003. *
  1004. * Return: QDF_STATUS
  1005. */
  1006. QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1007. bool *value);
  1008. /**
  1009. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1010. * cfg item
  1011. * @psoc: psoc context
  1012. * @value: pointer to get required data
  1013. *
  1014. * Return: QDF_STATUS
  1015. */
  1016. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1017. bool *value);
  1018. /**
  1019. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1020. * cfg item
  1021. * @psoc: psoc context
  1022. * @value: data to be set
  1023. *
  1024. * Return: QDF_STATUS
  1025. */
  1026. QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1027. bool value);
  1028. /**
  1029. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1030. * cfg item
  1031. * @psoc: psoc context
  1032. * @value: pointer to get required data
  1033. *
  1034. * Return: QDF_STATUS
  1035. */
  1036. QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1037. bool *value);
  1038. /**
  1039. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1040. * cfg item
  1041. * @psoc: psoc context
  1042. * @value: data to be set
  1043. *
  1044. * Return: QDF_STATUS
  1045. */
  1046. QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1047. bool value);
  1048. /**
  1049. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1050. * cfg item
  1051. * @psoc: psoc context
  1052. * @value: pointer to get required data
  1053. *
  1054. * Return: QDF_STATUS
  1055. */
  1056. QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1057. bool *value);
  1058. /**
  1059. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1060. * cfg item
  1061. * @psoc: psoc context
  1062. * @value: data to be set
  1063. *
  1064. * Return: QDF_STATUS
  1065. */
  1066. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  1067. bool value);
  1068. /**
  1069. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1070. * cfg item
  1071. * @psoc: psoc context
  1072. * @value: data to be set
  1073. *
  1074. * Return: QDF_STATUS
  1075. */
  1076. QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
  1077. bool value);
  1078. /**
  1079. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1080. * support cap
  1081. * into cfg item
  1082. * @psoc: psoc context
  1083. * @value: data to be set
  1084. *
  1085. * Return: QDF_STATUS
  1086. */
  1087. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1088. uint8_t value);
  1089. /**
  1090. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1091. * support cap into cfg item
  1092. *
  1093. * @psoc: psoc context
  1094. * @value: data to be set
  1095. *
  1096. * Return: QDF_STATUS
  1097. */
  1098. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1099. uint8_t *value);
  1100. /**
  1101. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1102. * into cfg item
  1103. * @psoc: psoc context
  1104. * @value: data to be set
  1105. *
  1106. * Return: QDF_STATUS
  1107. */
  1108. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1109. uint8_t value);
  1110. /**
  1111. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1112. * cfg item
  1113. * @psoc: psoc context
  1114. * @value: pointer to get required data
  1115. *
  1116. * Return: QDF_STATUS
  1117. */
  1118. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1119. bool *value);
  1120. /**
  1121. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1122. * cfg item
  1123. * @psoc: psoc context
  1124. * @value: data to be set
  1125. *
  1126. * Return: QDF_STATUS
  1127. */
  1128. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  1129. bool value);
  1130. /**
  1131. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1132. * cfg item
  1133. * @psoc: psoc context
  1134. * @value: pointer to get required data
  1135. *
  1136. * Return: QDF_STATUS
  1137. */
  1138. QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1139. bool *value);
  1140. /**
  1141. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1142. * cfg item
  1143. * @psoc: psoc context
  1144. * @value: data to be set
  1145. *
  1146. * Return: QDF_STATUS
  1147. */
  1148. QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  1149. bool value);
  1150. /**
  1151. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1152. * cfg item
  1153. * @psoc: psoc context
  1154. * @value: pointer to get required data
  1155. *
  1156. * Return: QDF_STATUS
  1157. */
  1158. QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1159. bool *value);
  1160. /**
  1161. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1162. * cfg item
  1163. * @psoc: psoc context
  1164. * @value: data to be set
  1165. *
  1166. * Return: QDF_STATUS
  1167. */
  1168. QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  1169. bool value);
  1170. /**
  1171. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1172. * cfg item
  1173. * @psoc: psoc context
  1174. * @value: pointer to get required data
  1175. *
  1176. * Return: QDF_STATUS
  1177. */
  1178. QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1179. uint8_t *value);
  1180. /**
  1181. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1182. * cfg item
  1183. * @psoc: psoc context
  1184. * @value: data to be set
  1185. *
  1186. * Return: QDF_STATUS
  1187. */
  1188. QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1189. uint8_t value);
  1190. /**
  1191. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1192. * cfg item
  1193. * @psoc: psoc context
  1194. * @value: pointer to get required data
  1195. *
  1196. * Return: QDF_STATUS
  1197. */
  1198. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1199. uint32_t *value);
  1200. /**
  1201. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1202. * cfg item
  1203. * @psoc: psoc context
  1204. * @value: data to be set
  1205. *
  1206. * Return: QDF_STATUS
  1207. */
  1208. QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1209. uint32_t value);
  1210. /**
  1211. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1212. * cfg item
  1213. * @psoc: psoc context
  1214. * @value: pointer to get required data
  1215. *
  1216. * Return: QDF_STATUS
  1217. */
  1218. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1219. uint32_t *value);
  1220. /**
  1221. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1222. * cfg item
  1223. * @psoc: psoc context
  1224. * @value: data to be set
  1225. *
  1226. * Return: QDF_STATUS
  1227. */
  1228. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1229. uint32_t value);
  1230. /**
  1231. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1232. * cfg item
  1233. * @psoc: psoc context
  1234. * @value: data to be set
  1235. *
  1236. * Return: QDF_STATUS
  1237. */
  1238. QDF_STATUS
  1239. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1240. uint32_t value);
  1241. /**
  1242. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1243. * cfg item
  1244. * @psoc: psoc context
  1245. * @value: data to be set
  1246. *
  1247. * Return: QDF_STATUS
  1248. */
  1249. QDF_STATUS
  1250. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1251. uint32_t value);
  1252. /**
  1253. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1254. * cfg item
  1255. * @psoc: psoc context
  1256. * @value: data to be set
  1257. *
  1258. * Return: QDF_STATUS
  1259. */
  1260. QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1261. uint32_t *value);
  1262. /**
  1263. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1264. * cfg item
  1265. * @psoc: psoc context
  1266. * @value: data to be set
  1267. *
  1268. * Return: QDF_STATUS
  1269. */
  1270. QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1271. uint32_t value);
  1272. /**
  1273. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1274. * @psoc: psoc context
  1275. * @value: data to be set
  1276. *
  1277. * Return: QDF_STATUS
  1278. */
  1279. QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  1280. bool *value);
  1281. /**
  1282. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1283. * @psoc: psoc context
  1284. * @value: data to be set
  1285. *
  1286. * Return: QDF_STATUS
  1287. */
  1288. QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
  1289. bool *value);
  1290. /**
  1291. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1292. * for 11ac
  1293. * @psoc: psoc context
  1294. * @value: data to be set
  1295. *
  1296. * Return: QDF_STATUS
  1297. */
  1298. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1299. uint8_t *value);
  1300. /**
  1301. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1302. * @psoc: psoc context
  1303. * @value: data to be set
  1304. *
  1305. * Return: QDF_STATUS
  1306. */
  1307. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1308. uint8_t *value);
  1309. /**
  1310. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1311. * @psoc: psoc context
  1312. * @value: data to be set
  1313. *
  1314. * Return: QDF_STATUS
  1315. */
  1316. QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1317. uint8_t *value);
  1318. /**
  1319. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1320. * @psoc: psoc context
  1321. * @value: data to be set
  1322. *
  1323. * Return: QDF_STATUS
  1324. */
  1325. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1326. uint8_t *value);
  1327. /**
  1328. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1329. * @psoc: psoc context
  1330. * @value: data to be set
  1331. *
  1332. * Return: QDF_STATUS
  1333. */
  1334. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1335. uint8_t *value);
  1336. /**
  1337. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1338. * @psoc: psoc context
  1339. * @value: data to be set
  1340. *
  1341. * Return: QDF_STATUS
  1342. */
  1343. QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  1344. bool *value);
  1345. /**
  1346. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1347. * @psoc: psoc context
  1348. * @value: data to be set
  1349. *
  1350. * Return: QDF_STATUS
  1351. */
  1352. QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1353. bool *value);
  1354. /**
  1355. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1356. * @psoc: psoc context
  1357. * @value: data to be set
  1358. *
  1359. * Return: QDF_STATUS
  1360. */
  1361. QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  1362. bool value);
  1363. /**
  1364. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1365. * @psoc: psoc context
  1366. * @value: data to be set
  1367. *
  1368. * Return: QDF_STATUS
  1369. */
  1370. QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  1371. bool *value);
  1372. /**
  1373. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1374. * @psoc: psoc context
  1375. * @value: data to be set
  1376. *
  1377. * Return: QDF_STATUS
  1378. */
  1379. QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  1380. bool *value);
  1381. /**
  1382. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1383. * @psoc: psoc context
  1384. * @value: data to be set
  1385. *
  1386. * Return: QDF_STATUS
  1387. */
  1388. QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1389. bool *value);
  1390. /**
  1391. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1392. * @psoc: psoc context
  1393. * @value: data to be set
  1394. *
  1395. * Return: QDF_STATUS
  1396. */
  1397. QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  1398. bool *value);
  1399. /**
  1400. * mlme_update_vht_cap() - update vht capabilities
  1401. * @psoc: psoc context
  1402. * @cfg: data to be set
  1403. *
  1404. * Return: QDF_STATUS
  1405. */
  1406. QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1407. struct wma_tgt_vht_cap *cfg);
  1408. /**
  1409. * mlme_update_nss_vht_cap() - Update the number of spatial
  1410. * streams supported for vht
  1411. * @psoc: psoc context
  1412. *
  1413. * Return: QDF_STATUS
  1414. */
  1415. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1416. #endif /* _WLAN_MLME_API_H_ */