wlan_mlme_api.h 45 KB

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