wlan_mlme_api.h 44 KB

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