wlan_mlme_api.h 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145
  1. /*
  2. * Copyright (c) 2018-2019 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. * @vdev: VDEV object for which the wep key is being requested
  62. * @wep_params: cfg wep parameters structure
  63. * @wep_key_id: default key number
  64. * @default_key: default key to be copied
  65. * @key_len: length of the key to copy
  66. *
  67. * Return QDF_STATUS
  68. */
  69. QDF_STATUS mlme_get_wep_key(struct wlan_objmgr_vdev *vdev,
  70. struct wlan_mlme_wep_cfg *wep_params,
  71. enum wep_key_id wep_keyid, uint8_t *default_key,
  72. qdf_size_t *key_len);
  73. /**
  74. * mlme_set_wep_key() - set the wep keys during auth
  75. * @wep_params: cfg wep parametrs structure
  76. * @wep_key_id: default key number that needs to be copied
  77. * @key_to_set: destination buffer to be copied
  78. * @len: size to be copied
  79. */
  80. QDF_STATUS mlme_set_wep_key(struct wlan_mlme_wep_cfg *wep_params,
  81. enum wep_key_id wep_keyid, uint8_t *key_to_set,
  82. qdf_size_t len);
  83. /**
  84. * wlan_mlme_get_tx_power() - Get the max tx power in particular band
  85. * @psoc: pointer to psoc object
  86. * @band: 2ghz/5ghz band
  87. *
  88. * Return: value of tx power in the respective band
  89. */
  90. uint8_t wlan_mlme_get_tx_power(struct wlan_objmgr_psoc *psoc,
  91. enum band_info band);
  92. /**
  93. * wlan_mlme_get_power_usage() - Get the power usage info
  94. * @psoc: pointer to psoc object
  95. *
  96. * Return: pointer to character array of power usage
  97. */
  98. char *wlan_mlme_get_power_usage(struct wlan_objmgr_psoc *psoc);
  99. /**
  100. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  101. * @psoc: pointer to psoc object
  102. * @value: pointer to the value which will be filled for the caller
  103. *
  104. * Return: QDF Status
  105. */
  106. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  107. struct mlme_ht_capabilities_info
  108. *ht_cap_info);
  109. /**
  110. * wlan_mlme_get_manufacturer_name() - get manufacturer name
  111. * @psoc: pointer to psoc object
  112. * @pbuf: pointer of the buff which will be filled for the caller
  113. * @plen: pointer of max buffer length
  114. * actual length will be returned at this address
  115. * This function gets manufacturer name
  116. *
  117. * Return: QDF_STATUS_SUCCESS - in case of success
  118. */
  119. QDF_STATUS
  120. wlan_mlme_get_manufacturer_name(struct wlan_objmgr_psoc *psoc,
  121. uint8_t *pbuf, uint32_t *plen);
  122. /**
  123. * wlan_mlme_get_model_number() - get model number
  124. * @psoc: pointer to psoc object
  125. * @pbuf: pointer of the buff which will be filled for the caller
  126. * @plen: pointer of max buffer length
  127. * actual length will be returned at this address
  128. * This function gets model number
  129. *
  130. * Return: QDF_STATUS_SUCCESS - in case of success
  131. */
  132. QDF_STATUS
  133. wlan_mlme_get_model_number(struct wlan_objmgr_psoc *psoc,
  134. uint8_t *pbuf, uint32_t *plen);
  135. /**
  136. * wlan_mlme_get_model_name() - get model name
  137. * @psoc: pointer to psoc object
  138. * @pbuf: pointer of the buff which will be filled for the caller
  139. * @plen: pointer of max buffer length
  140. * actual length will be returned at this address
  141. * This function gets model name
  142. *
  143. * Return: QDF_STATUS_SUCCESS - in case of success
  144. */
  145. QDF_STATUS
  146. wlan_mlme_get_model_name(struct wlan_objmgr_psoc *psoc,
  147. uint8_t *pbuf, uint32_t *plen);
  148. /**
  149. * wlan_mlme_get_manufacture_product_name() - get manufacture product name
  150. * @psoc: pointer to psoc object
  151. * @pbuf: pointer of the buff which will be filled for the caller
  152. * @plen: pointer of max buffer length
  153. * actual length will be returned at this address
  154. * This function gets manufacture product name
  155. *
  156. * Return: QDF_STATUS_SUCCESS - in case of success
  157. */
  158. QDF_STATUS
  159. wlan_mlme_get_manufacture_product_name(struct wlan_objmgr_psoc *psoc,
  160. uint8_t *pbuf, uint32_t *plen);
  161. /**
  162. * wlan_mlme_get_manufacture_product_version() - get manufacture product version
  163. * @psoc: pointer to psoc object
  164. * @pbuf: pointer of the buff which will be filled for the caller
  165. * @plen: pointer of max buffer length
  166. * actual length will be returned at this address
  167. * This function gets manufacture product version
  168. *
  169. * Return: QDF_STATUS_SUCCESS - in case of success
  170. */
  171. QDF_STATUS
  172. wlan_mlme_get_manufacture_product_version(struct wlan_objmgr_psoc *psoc,
  173. uint8_t *pbuf, uint32_t *plen);
  174. /**
  175. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  176. * @psoc: pointer to psoc object
  177. * @value: Value that needs to be set from the caller
  178. *
  179. * Return: QDF Status
  180. */
  181. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  182. struct mlme_ht_capabilities_info
  183. ht_cap_info);
  184. /**
  185. * wlan_mlme_get_max_amsdu_num() - get the max amsdu num
  186. * @psoc: pointer to psoc object
  187. * @value: pointer to the value where the max_amsdu num is to be filled
  188. *
  189. * Return: QDF_STATUS
  190. */
  191. QDF_STATUS wlan_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  192. uint8_t *value);
  193. /**
  194. * wlan_mlme_set_max_amsdu_num() - set the max amsdu num
  195. * @psoc: pointer to psoc object
  196. * @value: value to be set for max_amsdu_num
  197. *
  198. * Return: QDF_STATUS
  199. */
  200. QDF_STATUS wlan_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  201. uint8_t value);
  202. /**
  203. * wlan_mlme_get_ht_mpdu_density() - get the ht mpdu density
  204. * @psoc: pointer to psoc object
  205. * @value: pointer to the value where the ht mpdu density is to be filled
  206. *
  207. * Return: QDF_STATUS
  208. */
  209. QDF_STATUS wlan_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  210. uint8_t *value);
  211. /**
  212. * wlan_mlme_set_ht_mpdu_density() - set the ht mpdu density
  213. * @psoc: pointer to psoc object
  214. * @value: value to be set for ht mpdu density
  215. *
  216. * Return: QDF_STATUS
  217. */
  218. QDF_STATUS wlan_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  219. uint8_t value);
  220. /**
  221. * wlan_mlme_get_band_capability() - Get the Band capability config
  222. * @psoc: pointer to psoc object
  223. * @band_capability: Pointer to the variable from caller
  224. *
  225. * Return: QDF Status
  226. */
  227. QDF_STATUS wlan_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  228. uint8_t *band_capability);
  229. /**
  230. * wlan_mlme_set_band_capability() - Set the Band capability config
  231. * @psoc: pointer to psoc object
  232. * @band_capability: Value to be set from the caller
  233. *
  234. * Return: QDF Status
  235. */
  236. QDF_STATUS wlan_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  237. uint8_t band_capability);
  238. /**
  239. * wlan_mlme_get_prevent_link_down() - Get the prevent link down config
  240. * @psoc: pointer to psoc object
  241. * @prevent_link_down: Pointer to the variable from caller
  242. *
  243. * Return: QDF Status
  244. */
  245. QDF_STATUS wlan_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  246. bool *prevent_link_down);
  247. /**
  248. * wlan_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  249. * @psoc: pointer to psoc object
  250. * @select_5ghz_margin: Pointer to the variable from caller
  251. *
  252. * Return: QDF Status
  253. */
  254. QDF_STATUS wlan_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  255. uint8_t *select_5ghz_margin);
  256. /**
  257. * wlan_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  258. * @psoc: pointer to psoc object
  259. * @rtt_mac_randomization: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. QDF_STATUS wlan_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  264. bool *rtt_mac_randomization);
  265. /**
  266. * wlan_mlme_get_crash_inject() - Get the crash inject config
  267. * @psoc: pointer to psoc object
  268. * @crash_inject: Pointer to the variable from caller
  269. *
  270. * Return: QDF Status
  271. */
  272. QDF_STATUS wlan_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  273. bool *crash_inject);
  274. /**
  275. * wlan_mlme_get_lpass_support() - Get the LPASS Support config
  276. * @psoc: pointer to psoc object
  277. * @lpass_support: Pointer to the variable from caller
  278. *
  279. * Return: QDF Status
  280. */
  281. QDF_STATUS wlan_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  282. bool *lpass_support);
  283. /**
  284. * wlan_mlme_get_self_recovery() - Get the self recovery config
  285. * @psoc: pointer to psoc object
  286. * @self_recovery: Pointer to the variable from caller
  287. *
  288. * Return: QDF Status
  289. */
  290. QDF_STATUS wlan_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  291. bool *self_recovery);
  292. /**
  293. * wlan_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  294. * @psoc: pointer to psoc object
  295. * @sub_20_chan_width: Pointer to the variable from caller
  296. *
  297. * Return: QDF Status
  298. */
  299. QDF_STATUS wlan_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  300. uint8_t *sub_20_chan_width);
  301. /**
  302. * wlan_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  303. * @psoc: pointer to psoc object
  304. * @fw_timeout_crash: Pointer to the variable from caller
  305. *
  306. * Return: QDF Status
  307. */
  308. QDF_STATUS wlan_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  309. bool *fw_timeout_crash);
  310. /**
  311. * wlan_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  312. * @psoc: pointer to psoc object
  313. * @ito_repeat_count: Pointer to the variable from caller
  314. *
  315. * Return: QDF Status
  316. */
  317. QDF_STATUS wlan_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  318. uint8_t *ito_repeat_count);
  319. /**
  320. * wlan_mlme_get_acs_with_more_param() - Get the acs_with_more_param flag
  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_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  327. bool *value);
  328. /**
  329. * wlan_mlme_get_auto_channel_weight() - Get the auto channel weight
  330. * @psoc: pointer to psoc object
  331. * @value: Value that needs to be set from the caller
  332. *
  333. * Return: QDF Status
  334. */
  335. QDF_STATUS wlan_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  336. uint32_t *value);
  337. /**
  338. * wlan_mlme_get_vendor_acs_support() - Get the vendor based channel selece
  339. * @psoc: pointer to psoc object
  340. * @value: Value that needs to be set from the caller
  341. *
  342. * Return: QDF Status
  343. */
  344. QDF_STATUS wlan_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  345. bool *value);
  346. /**
  347. * wlan_mlme_get_acs_support_for_dfs_ltecoex() - Get the flag for
  348. * acs support for dfs ltecoex
  349. * @psoc: pointer to psoc object
  350. * @value: Value that needs to be set from the caller
  351. *
  352. * Return: QDF Status
  353. */
  354. QDF_STATUS
  355. wlan_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  356. bool *value);
  357. /**
  358. * wlan_mlme_get_external_acs_policy() - Get the flag for external acs policy
  359. * @psoc: pointer to psoc object
  360. * @value: Value that needs to be set from the caller
  361. *
  362. * Return: QDF Status
  363. */
  364. QDF_STATUS
  365. wlan_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  366. bool *value);
  367. /**
  368. *
  369. * wlan_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  370. * override flag is set.
  371. * @psoc: pointer to psoc object
  372. * @sme_config - Sme config struct
  373. *
  374. * Return: QDF Status
  375. */
  376. void wlan_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  377. bool *value);
  378. /**
  379. * wlan_mlme_get_ignore_peer_ht_mode() - Get the ignore peer ht opmode flag
  380. * @psoc: pointer to psoc object
  381. * @value: Value that needs to be set from the caller
  382. *
  383. * Return: QDF Status
  384. */
  385. QDF_STATUS wlan_mlme_get_ignore_peer_ht_mode(struct wlan_objmgr_psoc *psoc,
  386. bool *value);
  387. /**
  388. * wlan_mlme_get_tx_chainmask_cck() - Get the tx_chainmask_cfg value
  389. * @psoc: pointer to psoc object
  390. * @value: Value that needs to be set from the caller
  391. *
  392. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  393. */
  394. QDF_STATUS wlan_mlme_get_tx_chainmask_cck(struct wlan_objmgr_psoc *psoc,
  395. bool *value);
  396. /**
  397. * wlan_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  398. * @psoc: pointer to psoc object
  399. * @value: Value that caller needs to get
  400. *
  401. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  402. */
  403. QDF_STATUS wlan_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  404. uint8_t *value);
  405. /**
  406. * wlan_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  407. * @psoc: pointer to psoc object
  408. * @value: Value that needs to be set from the caller
  409. *
  410. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  411. */
  412. QDF_STATUS wlan_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  413. uint16_t *value);
  414. /**
  415. * wlan_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  416. * @psoc: pointer to psoc object
  417. * @value: Value that caller needs to get
  418. *
  419. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  420. */
  421. QDF_STATUS wlan_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  422. uint16_t *value);
  423. /**
  424. * wlan_mlme_get_bt_chain_separation_flag() - get the enable_bt_chain_separation
  425. * flag
  426. * @psoc: pointer to psoc object
  427. * @value: Value that needs to be set from the caller
  428. *
  429. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  430. */
  431. QDF_STATUS wlan_mlme_get_bt_chain_separation_flag(struct wlan_objmgr_psoc *psoc,
  432. bool *value);
  433. /**
  434. * wlan_mlme_configure_chain_mask() - configure chainmask parameters
  435. * @psoc: pointer to psoc object
  436. * @session_id: vdev_id
  437. *
  438. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  439. */
  440. QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  441. uint8_t session_id);
  442. /**
  443. * wlan_mlme_set_sap_listen_interval() - Set the sap listen interval
  444. * @psoc: pointer to psoc object
  445. * @value: Value that needs to be set from the caller
  446. *
  447. * Return: QDF Status
  448. */
  449. QDF_STATUS wlan_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  450. int value);
  451. /**
  452. * wlan_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  453. * @psoc: pointer to psoc object
  454. * @value: Value that needs to be set from the caller
  455. *
  456. * Return: QDF Status
  457. */
  458. QDF_STATUS wlan_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  459. int value);
  460. /**
  461. * wlan_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  462. * @psoc: pointer to psoc object
  463. * @value: Value that needs to be set from the caller
  464. *
  465. * Return: QDF Status
  466. */
  467. QDF_STATUS wlan_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  468. int value);
  469. /**
  470. * wlan_mlme_set_sap_get_peer_info() - get the sap get peer info
  471. * @psoc: pointer to psoc object
  472. * @value: Value that needs to be set from the caller
  473. *
  474. * Return: QDF Status
  475. */
  476. QDF_STATUS wlan_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  477. bool *value);
  478. /**
  479. * wlan_mlme_get_sap_allow_all_channels() - get the value of sap allow all
  480. * channels
  481. * @psoc: pointer to psoc object
  482. * @value: Value that needs to be set from the caller
  483. *
  484. * Return: QDF Status
  485. */
  486. QDF_STATUS wlan_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  487. bool *value);
  488. /**
  489. * wlan_mlme_get_sap_allow_all_channels() - get the value sap max peers
  490. * @psoc: pointer to psoc object
  491. * @value: Value that needs to be set from the caller
  492. *
  493. * Return: QDF Status
  494. */
  495. QDF_STATUS wlan_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  496. int *value);
  497. /**
  498. * wlan_mlme_set_sap_max_peers() - set the value sap max peers
  499. * @psoc: pointer to psoc object
  500. * @value: Value that needs to be set from the caller
  501. *
  502. * Return: QDF Status
  503. */
  504. QDF_STATUS wlan_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  505. int value);
  506. /**
  507. * wlan_mlme_get_sap_max_offload_peers() - get the value sap max offload peers
  508. * @psoc: pointer to psoc object
  509. * @value: Value that needs to be set from the caller
  510. *
  511. * Return: QDF Status
  512. */
  513. QDF_STATUS wlan_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  514. int *value);
  515. /**
  516. * wlan_mlme_get_sap_max_offload_reorder_buffs() - get the value sap max offload
  517. * reorder buffs.
  518. * @psoc: pointer to psoc object
  519. * @value: Value that needs to be set from the caller
  520. *
  521. * Return: QDF Status
  522. */
  523. QDF_STATUS wlan_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  524. *psoc, int *value);
  525. /**
  526. * wlan_mlme_get_sap_chn_switch_bcn_count() - get the value sap max channel
  527. * switch beacon count
  528. * @psoc: pointer to psoc object
  529. * @value: Value that needs to be set from the caller
  530. *
  531. * Return: QDF Status
  532. */
  533. QDF_STATUS wlan_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  534. int *value);
  535. /**
  536. * wlan_mlme_get_sap_chn_switch_mode() - get the sap channel
  537. * switch mode
  538. * @psoc: pointer to psoc object
  539. * @value: Value that needs to be set from the caller
  540. *
  541. * Return: QDF Status
  542. */
  543. QDF_STATUS wlan_mlme_get_sap_chn_switch_mode(struct wlan_objmgr_psoc *psoc,
  544. bool *value);
  545. /**
  546. * wlan_mlme_get_sap_internal_restart() - get the sap internal
  547. * restart
  548. * @psoc: pointer to psoc object
  549. * @value: Value that needs to be set from the caller
  550. *
  551. * Return: QDF Status
  552. */
  553. QDF_STATUS wlan_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  554. bool *value);
  555. /**
  556. * wlan_mlme_get_sap_max_modulated_dtim() - get the max modulated dtim
  557. * restart
  558. * @psoc: pointer to psoc object
  559. * @value: Value that needs to be set from the caller
  560. *
  561. * Return: QDF Status
  562. */
  563. QDF_STATUS wlan_mlme_get_sap_max_modulated_dtim(struct wlan_objmgr_psoc *psoc,
  564. uint8_t *value);
  565. /**
  566. * wlan_mlme_get_sap_chan_pref_location() - get the sap chan pref location
  567. * restart
  568. * @psoc: pointer to psoc object
  569. * @value: Value that needs to be set from the caller
  570. *
  571. * Return: QDF Status
  572. */
  573. QDF_STATUS wlan_mlme_get_sap_chan_pref_location(struct wlan_objmgr_psoc *psoc,
  574. uint8_t *value);
  575. /**
  576. * wlan_mlme_get_sap_country_priority() - get the sap country code priority
  577. * restart
  578. * @psoc: pointer to psoc object
  579. * @value: Value that needs to be set from the caller
  580. *
  581. * Return: QDF Status
  582. */
  583. QDF_STATUS wlan_mlme_get_sap_country_priority(struct wlan_objmgr_psoc *psoc,
  584. bool *value);
  585. /**
  586. * wlan_mlme_get_sap_reduced_beacon_interval() - get the sap reduced
  587. * beacon interval
  588. * @psoc: pointer to psoc object
  589. * @value: Value that needs to be set from the caller
  590. *
  591. * Return: QDF Status
  592. */
  593. QDF_STATUS wlan_mlme_get_sap_reduced_beacon_interval(struct wlan_objmgr_psoc
  594. *psoc, int *value);
  595. /**
  596. * wlan_mlme_get_sap_chan_switch_rate_enabled() - get the sap rate hostapd
  597. * enabled beacon interval
  598. * @psoc: pointer to psoc object
  599. * @value: Value that needs to be set from the caller
  600. *
  601. * Return: QDF Status
  602. */
  603. QDF_STATUS wlan_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  604. *psoc, bool *value);
  605. /**
  606. * wlan_mlme_get_sap_force_11n_for_11ac() - get the sap 11n for 11ac
  607. *
  608. * @psoc: pointer to psoc object
  609. * @value: Value that needs to be set from the caller
  610. *
  611. * Return: QDF Status
  612. */
  613. QDF_STATUS wlan_mlme_get_sap_force_11n_for_11ac(struct wlan_objmgr_psoc
  614. *psoc, bool *value);
  615. /**
  616. * wlan_mlme_get_go_force_11n_for_11ac() - get the go 11n for 11ac
  617. *
  618. * @psoc: pointer to psoc object
  619. * @value: Value that needs to be set from the caller
  620. *
  621. * Return: QDF Status
  622. */
  623. QDF_STATUS wlan_mlme_get_go_force_11n_for_11ac(struct wlan_objmgr_psoc
  624. *psoc, bool *value);
  625. /**
  626. * wlan_mlme_is_go_11ac_override() - Override 11ac bandwdith for P2P GO
  627. *
  628. * @psoc: pointer to psoc object
  629. * @value: pointer to the value which will be filled for the caller
  630. *
  631. * Return: QDF Status
  632. */
  633. QDF_STATUS wlan_mlme_is_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  634. bool *value);
  635. /**
  636. * wlan_mlme_is_sap_11ac_override() - Override 11ac bandwdith for SAP
  637. *
  638. * @psoc: pointer to psoc object
  639. * @value: pointer to the value which will be filled for the caller
  640. *
  641. * Return: QDF Status
  642. */
  643. QDF_STATUS wlan_mlme_is_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  644. bool *value);
  645. /**
  646. * wlan_mlme_set_go_11ac_override() - set override 11ac bandwdith for P2P GO
  647. *
  648. * @psoc: pointer to psoc object
  649. * @value: pointer to the value which will be filled for the caller
  650. *
  651. * Return: QDF Status
  652. */
  653. QDF_STATUS wlan_mlme_set_go_11ac_override(struct wlan_objmgr_psoc *psoc,
  654. bool value);
  655. /**
  656. * wlan_mlme_set_sap_11ac_override() - set override 11ac bandwdith for SAP
  657. *
  658. * @psoc: pointer to psoc object
  659. * @value: pointer to the value which will be filled for the caller
  660. *
  661. * Return: QDF Status
  662. */
  663. QDF_STATUS wlan_mlme_set_sap_11ac_override(struct wlan_objmgr_psoc *psoc,
  664. bool value);
  665. /**
  666. * wlan_mlme_get_oce_sta_enabled_info() - Get the OCE feature enable
  667. * info for STA
  668. * @psoc: pointer to psoc object
  669. * @value: pointer to the value which will be filled for the caller
  670. *
  671. * Return: QDF Status
  672. */
  673. QDF_STATUS wlan_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  674. bool *value);
  675. /**
  676. * wlan_mlme_get_oce_sap_enabled_info() - Get the OCE feature enable
  677. * info for SAP
  678. * @psoc: pointer to psoc object
  679. * @value: pointer to the value which will be filled for the caller
  680. *
  681. * Return: QDF Status
  682. */
  683. QDF_STATUS wlan_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  684. bool *value);
  685. #ifdef WLAN_FEATURE_11AX
  686. /**
  687. * wlan_mlme_cfg_get_he_ul_mumimo() - Get the HE Ul Mumio
  688. * @psoc: pointer to psoc object
  689. * @value: Value that needs to be set from the caller
  690. *
  691. * Return: QDF Status
  692. */
  693. QDF_STATUS wlan_mlme_cfg_get_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  694. uint32_t *value);
  695. /**
  696. * wlan_mlme_cfg_set_he_ul_mumimo() - Set the HE Ul Mumio
  697. * @psoc: pointer to psoc object
  698. * @value: Value that needs to be set from the caller
  699. *
  700. * Return: QDF Status
  701. */
  702. QDF_STATUS wlan_mlme_cfg_set_he_ul_mumimo(struct wlan_objmgr_psoc *psoc,
  703. uint32_t value);
  704. /**
  705. * wlan_mlme_cfg_get_enable_ul_mimo() - Get the HE Ul mimo
  706. * @psoc: pointer to psoc object
  707. * @value: Value that needs to be set from the caller
  708. *
  709. * Return: QDF Status
  710. */
  711. QDF_STATUS wlan_mlme_cfg_get_enable_ul_mimo(struct wlan_objmgr_psoc *psoc,
  712. uint8_t *value);
  713. /**
  714. * wlan_mlme_cfg_get_enable_ul_ofdm() - Get enable ul ofdm
  715. * @psoc: pointer to psoc object
  716. * @value: Value that needs to be set from the caller
  717. *
  718. * Return: QDF Status
  719. */
  720. QDF_STATUS wlan_mlme_cfg_get_enable_ul_ofdm(struct wlan_objmgr_psoc *psoc,
  721. uint8_t *value);
  722. /**
  723. * mlme_update_tgt_he_caps_in_cfg() - Update tgt he cap in mlme component
  724. *
  725. * @psoc: pointer to psoc object
  726. * @cfg: pointer to config params from target
  727. *
  728. * This api to be used by callers to update
  729. * he caps in mlme.
  730. *
  731. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  732. */
  733. QDF_STATUS mlme_update_tgt_he_caps_in_cfg(struct wlan_objmgr_psoc *psoc,
  734. struct wma_tgt_cfg *cfg);
  735. #endif
  736. /**
  737. * wlan_mlme_is_ap_prot_enabled() - check if sap protection is enabled
  738. * @psoc: pointer to psoc object
  739. *
  740. * Return: is_ap_prot_enabled flag
  741. */
  742. bool wlan_mlme_is_ap_prot_enabled(struct wlan_objmgr_psoc *psoc);
  743. /**
  744. * wlan_mlme_get_ap_protection_mode() - Get ap_protection_mode value
  745. * @psoc: pointer to psoc object
  746. * @value: pointer to the value which needs to be filled for the caller
  747. *
  748. * Return: QDF Status
  749. */
  750. QDF_STATUS wlan_mlme_get_ap_protection_mode(struct wlan_objmgr_psoc *psoc,
  751. uint16_t *value);
  752. /**
  753. * wlan_mlme_is_ap_obss_prot_enabled() - Get ap_obss_protection is
  754. * enabled/disabled
  755. * @psoc: pointer to psoc object
  756. * @value: pointer to the value which needs to be filled for the caller
  757. *
  758. * Return: QDF Status
  759. */
  760. QDF_STATUS wlan_mlme_is_ap_obss_prot_enabled(struct wlan_objmgr_psoc *psoc,
  761. bool *value);
  762. /**
  763. * wlan_mlme_get_rts_threshold() - Get the RTS threshold config
  764. * @psoc: pointer to psoc object
  765. * @value: pointer to the value which will be filled for the caller
  766. *
  767. * Return: QDF Status
  768. */
  769. QDF_STATUS wlan_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  770. uint32_t *value);
  771. /**
  772. * wlan_mlme_set_rts_threshold() - Set the RTS threshold config
  773. * @psoc: pointer to psoc object
  774. * @value: Value that needs to be set from the caller
  775. *
  776. * Return: QDF Status
  777. */
  778. QDF_STATUS wlan_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  779. uint32_t value);
  780. /**
  781. * wlan_mlme_get_frag_threshold() - Get the Fragmentation threshold
  782. * config
  783. * @psoc: pointer to psoc object
  784. * @value: pointer to the value which will be filled for the caller
  785. *
  786. * Return: QDF Status
  787. */
  788. QDF_STATUS wlan_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  789. uint32_t *value);
  790. /**
  791. * wlan_mlme_set_frag_threshold() - Set the Fragmentation threshold
  792. * config
  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 wlan_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  799. uint32_t value);
  800. /**
  801. * wlan_mlme_get_fils_enabled_info() - Get the fils enable info for driver
  802. * @psoc: pointer to psoc object
  803. * @value: pointer to the value which will be filled for the caller
  804. *
  805. * Return: QDF Status
  806. */
  807. QDF_STATUS wlan_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  808. bool *value);
  809. /**
  810. * wlan_mlme_set_fils_enabled_info() - Set the fils enable info for driver
  811. * @psoc: pointer to psoc object
  812. * @value: value that needs to be set from the caller
  813. *
  814. * Return: QDF Status
  815. */
  816. QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  817. bool value);
  818. /**
  819. * wlan_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  820. * for VI
  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_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  828. /**
  829. * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  830. * MSDU size for VI
  831. * @psoc: pointer to psoc object
  832. * @value: Value that needs to be set from the caller
  833. *
  834. * Return: QDF Status
  835. */
  836. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  837. uint16_t *value);
  838. /**
  839. * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  840. * rate for VI
  841. * @psoc: pointer to psoc object
  842. * @value: Value that needs to be set from the caller
  843. *
  844. * Return: QDF Status
  845. */
  846. QDF_STATUS
  847. wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  848. uint32_t *value);
  849. /**
  850. * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  851. * rate for VI
  852. * @psoc: pointer to psoc object
  853. * @value: Value that needs to be set from the caller
  854. *
  855. * Return: QDF Status
  856. */
  857. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  858. uint32_t *value);
  859. /**
  860. * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  861. * allowance for VI
  862. * @psoc: pointer to psoc object
  863. * @value: Value that needs to be set from the caller
  864. *
  865. * Return: QDF Status
  866. */
  867. QDF_STATUS
  868. wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  869. /**
  870. * wlan_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  871. * interval for video
  872. * @psoc: pointer to psoc object
  873. * @value: pointer to the value which will be filled for the caller
  874. *
  875. * Return: QDF Status
  876. */
  877. QDF_STATUS
  878. wlan_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  879. uint32_t *value);
  880. /**
  881. * wlan_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  882. * interval for video
  883. * @psoc: pointer to psoc object
  884. * @value: pointer to the value which will be filled for the caller
  885. *
  886. * Return: QDF Status
  887. */
  888. QDF_STATUS
  889. wlan_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  890. uint32_t *value);
  891. /**
  892. * wlan_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  893. * for BE
  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_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  901. uint8_t *value);
  902. /**
  903. * wlan_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  904. * MSDU size for BE
  905. * @psoc: pointer to psoc object
  906. * @value: Value that needs to be set from the caller
  907. *
  908. * Return: QDF Status
  909. */
  910. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  911. uint16_t *value);
  912. /**
  913. * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  914. * rate for BE
  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 wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  921. uint32_t *value);
  922. /**
  923. * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  924. * rate for BE
  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 wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  931. uint32_t *value);
  932. /**
  933. * wlan_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  934. * allowance for BE
  935. * @psoc: pointer to psoc object
  936. * @value: Value that needs to be set from the caller
  937. *
  938. * Return: QDF Status
  939. */
  940. QDF_STATUS
  941. wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  942. /**
  943. * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  944. * interval for BE
  945. * @psoc: pointer to psoc object
  946. * @value: pointer to the value which will be filled for the caller
  947. *
  948. * Return: QDF Status
  949. */
  950. QDF_STATUS
  951. wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  952. uint32_t *value);
  953. /**
  954. * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  955. * interval for BE
  956. * @psoc: pointer to psoc object
  957. * @value: pointer to the value which will be filled for the caller
  958. *
  959. * Return: QDF Status
  960. */
  961. QDF_STATUS
  962. wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  963. uint32_t *value);
  964. /**
  965. * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  966. * for BK
  967. * @psoc: pointer to psoc object
  968. * @value: Value that needs to be set from the caller
  969. *
  970. * Return: QDF Status
  971. */
  972. QDF_STATUS
  973. wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  974. /**
  975. * wlan_mlme_get_wmm_nom_msdu_size_ac_bk() - Get normal
  976. * MSDU size for BK
  977. * @psoc: pointer to psoc object
  978. * @value: Value that needs to be set from the caller
  979. *
  980. * Return: QDF Status
  981. */
  982. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  983. uint16_t *value);
  984. /**
  985. * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  986. * rate for BK
  987. * @psoc: pointer to psoc object
  988. * @value: Value that needs to be set from the caller
  989. *
  990. * Return: QDF Status
  991. */
  992. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  993. uint32_t *value);
  994. /**
  995. * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  996. * rate for BK
  997. * @psoc: pointer to psoc object
  998. * @value: Value that needs to be set from the caller
  999. *
  1000. * Return: QDF Status
  1001. */
  1002. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1003. uint32_t *value);
  1004. /**
  1005. * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1006. * allowance for BE
  1007. * @psoc: pointer to psoc object
  1008. * @value: Value that needs to be set from the caller
  1009. *
  1010. * Return: QDF Status
  1011. */
  1012. QDF_STATUS
  1013. wlan_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1014. /**
  1015. * wlan_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1016. * interval for BK
  1017. * @psoc: pointer to psoc object
  1018. * @value: pointer to the value which will be filled for the caller
  1019. *
  1020. * Return: QDF Status
  1021. */
  1022. QDF_STATUS
  1023. wlan_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1024. uint32_t *value);
  1025. /**
  1026. * wlan_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1027. * interval for BK
  1028. * @psoc: pointer to psoc object
  1029. * @value: pointer to the value which will be filled for the caller
  1030. *
  1031. * Return: QDF Status
  1032. */
  1033. QDF_STATUS
  1034. wlan_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1035. uint32_t *value);
  1036. /**
  1037. * wlan_mlme_get_wmm_mode() - Enable WMM feature
  1038. * @psoc: pointer to psoc object
  1039. * @value: pointer to the value which will be filled for the caller
  1040. *
  1041. * Return: QDF Status
  1042. */
  1043. QDF_STATUS
  1044. wlan_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1045. /**
  1046. * wlan_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  1047. * @psoc: pointer to psoc object
  1048. * @value: pointer to the value which will be filled for the caller
  1049. *
  1050. * Return: QDF Status
  1051. */
  1052. QDF_STATUS
  1053. wlan_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1054. /**
  1055. * wlan_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  1056. * @psoc: pointer to psoc object
  1057. * @value: pointer to the value which will be filled for the caller
  1058. *
  1059. * Return: QDF Status
  1060. */
  1061. QDF_STATUS
  1062. wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1063. /**
  1064. * wlan_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  1065. * @psoc: pointer to psoc object
  1066. * @value: pointer to the value which will be filled for the caller
  1067. *
  1068. * Return: QDF Status
  1069. */
  1070. QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  1071. bool *value);
  1072. #ifdef FEATURE_WLAN_ESE
  1073. /**
  1074. * wlan_mlme_get_inactivity_interval() - Infra Inactivity Interval
  1075. * @psoc: pointer to psoc object
  1076. * @value: pointer to the value which will be filled for the caller
  1077. *
  1078. * Return: None
  1079. */
  1080. void
  1081. wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
  1082. uint32_t *value);
  1083. #endif
  1084. /**
  1085. * wlan_mlme_get_is_ts_burst_size_enable() - Get TS burst size flag
  1086. * @psoc: pointer to psoc object
  1087. * @value: pointer to the value which will be filled for the caller
  1088. *
  1089. * Return: None
  1090. */
  1091. void wlan_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
  1092. bool *value);
  1093. /**
  1094. * wlan_mlme_get_ts_info_ack_policy() - Get TS ack policy
  1095. * @psoc: pointer to psoc object
  1096. * @value: pointer to the value which will be filled for the caller
  1097. *
  1098. * Return: None
  1099. */
  1100. void wlan_mlme_get_ts_info_ack_policy(struct wlan_objmgr_psoc *psoc,
  1101. enum mlme_ts_info_ack_policy *value);
  1102. /**
  1103. * wlan_mlme_get_ts_acm_value_for_ac() - Get ACM value for AC
  1104. * @psoc: pointer to psoc object
  1105. * @value: pointer to the value which will be filled for the caller
  1106. *
  1107. * Return: QDF Status
  1108. */
  1109. QDF_STATUS
  1110. wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  1111. /**
  1112. * wlan_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction
  1113. * for VO
  1114. * @psoc: pointer to psoc object
  1115. * @value: Value that needs to be set from the caller
  1116. *
  1117. * Return: QDF Status
  1118. */
  1119. QDF_STATUS
  1120. wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1121. /**
  1122. * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  1123. * MSDU size for VO
  1124. * @psoc: pointer to psoc object
  1125. * @value: Value that needs to be set from the caller
  1126. *
  1127. * Return: QDF Status
  1128. */
  1129. QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  1130. uint16_t *value);
  1131. /**
  1132. * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  1133. * @psoc: pointer to psoc object
  1134. * @value: Value that needs to be set from the caller
  1135. *
  1136. * Return: QDF Status
  1137. */
  1138. QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1139. uint32_t *value);
  1140. /**
  1141. * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  1142. * rate for VO
  1143. * @psoc: pointer to psoc object
  1144. * @value: Value that needs to be set from the caller
  1145. *
  1146. * Return: QDF Status
  1147. */
  1148. QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  1149. uint32_t *value);
  1150. /**
  1151. * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  1152. * @psoc: pointer to psoc object
  1153. * @value: Value that needs to be set from the caller
  1154. *
  1155. * Return: QDF Status
  1156. */
  1157. QDF_STATUS
  1158. wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value);
  1159. /**
  1160. * wlan_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1161. * @psoc: pointer to psoc object
  1162. * @value: value that needs to be set from the caller
  1163. *
  1164. * Return: QDF Status
  1165. */
  1166. QDF_STATUS wlan_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1167. bool value);
  1168. /**
  1169. * wlan_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  1170. * interval for voice
  1171. * @psoc: pointer to psoc object
  1172. * @value: pointer to the value which will be filled for the caller
  1173. *
  1174. * Return: QDF Status
  1175. */
  1176. QDF_STATUS
  1177. wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  1178. uint32_t *value);
  1179. /**
  1180. * wlan_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  1181. * interval for voice
  1182. * @psoc: pointer to psoc object
  1183. * @value: pointer to the value which will be filled for the caller
  1184. *
  1185. * Return: QDF Status
  1186. */
  1187. QDF_STATUS
  1188. wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  1189. uint32_t *value);
  1190. /**
  1191. * wlan_mlme_cfg_get_vht_max_mpdu_len() - gets vht max mpdu length from cfg item
  1192. * @psoc: psoc context
  1193. * @value: pointer to get required data
  1194. *
  1195. * Return: QDF_STATUS
  1196. */
  1197. QDF_STATUS
  1198. wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1199. uint8_t *value);
  1200. /**
  1201. * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
  1202. * @psoc: psoc context
  1203. * @value: data to be set
  1204. *
  1205. * Return: QDF_STATUS
  1206. */
  1207. QDF_STATUS
  1208. wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  1209. uint8_t value);
  1210. /**
  1211. * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
  1212. * cfg item
  1213. * @psoc: psoc context
  1214. * @value: pointer to get required data
  1215. *
  1216. * Return: QDF_STATUS
  1217. */
  1218. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1219. uint8_t *value);
  1220. /**
  1221. * wlan_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1222. * cfg item
  1223. * @psoc: psoc context
  1224. * @value: data to be set
  1225. *
  1226. * Return: QDF_STATUS
  1227. */
  1228. QDF_STATUS wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1229. uint8_t value);
  1230. /**
  1231. * wlan_mlme_cfg_get_vht_chan_width() - sets vht supported channel width into
  1232. * cfg item
  1233. * @psoc: psoc context
  1234. * @value: data to be set
  1235. *
  1236. * Return: QDF_STATUS
  1237. */
  1238. QDF_STATUS wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1239. uint8_t *value);
  1240. /**
  1241. * wlan_mlme_cfg_get_vht_ldpc_coding_cap() - gets vht ldpc coding cap from
  1242. * cfg item
  1243. * @psoc: psoc context
  1244. * @value: pointer to get required data
  1245. *
  1246. * Return: QDF_STATUS
  1247. */
  1248. QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1249. bool *value);
  1250. /**
  1251. * wlan_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1252. * cfg item
  1253. * @psoc: psoc context
  1254. * @value: data to be set
  1255. *
  1256. * Return: QDF_STATUS
  1257. */
  1258. QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1259. bool value);
  1260. /**
  1261. * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
  1262. * cfg item
  1263. * @psoc: psoc context
  1264. * @value: pointer to get required data
  1265. *
  1266. * Return: QDF_STATUS
  1267. */
  1268. QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1269. bool *value);
  1270. /**
  1271. * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
  1272. * cfg item
  1273. * @psoc: psoc context
  1274. * @value: data to be set
  1275. *
  1276. * Return: QDF_STATUS
  1277. */
  1278. QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  1279. bool value);
  1280. /**
  1281. * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
  1282. * cfg item
  1283. * @psoc: psoc context
  1284. * @value: pointer to get required data
  1285. *
  1286. * Return: QDF_STATUS
  1287. */
  1288. QDF_STATUS
  1289. wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
  1290. /**
  1291. * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
  1292. * cfg item
  1293. * @psoc: psoc context
  1294. * @value: data to be set
  1295. *
  1296. * Return: QDF_STATUS
  1297. */
  1298. QDF_STATUS
  1299. wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
  1300. /**
  1301. * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1302. * cfg item
  1303. * @psoc: psoc context
  1304. * @value: pointer to get required data
  1305. *
  1306. * Return: QDF_STATUS
  1307. */
  1308. QDF_STATUS
  1309. wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1310. /**
  1311. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1312. * cfg item
  1313. * @psoc: psoc context
  1314. * @value: pointer to get required data
  1315. *
  1316. * Return: QDF_STATUS
  1317. */
  1318. QDF_STATUS
  1319. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1320. /**
  1321. * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
  1322. * cfg item
  1323. * @psoc: psoc context
  1324. * @value: data to be set
  1325. *
  1326. * Return: QDF_STATUS
  1327. */
  1328. QDF_STATUS
  1329. wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1330. /**
  1331. * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1332. * cfg item
  1333. * @psoc: psoc context
  1334. * @value: pointer to get required data
  1335. *
  1336. * Return: QDF_STATUS
  1337. */
  1338. QDF_STATUS
  1339. wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
  1340. /**
  1341. * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
  1342. * cfg item
  1343. * @psoc: psoc context
  1344. * @value: data to be set
  1345. *
  1346. * Return: QDF_STATUS
  1347. */
  1348. QDF_STATUS
  1349. wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
  1350. /**
  1351. * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
  1352. * cfg item
  1353. * @psoc: psoc context
  1354. * @value: pointer to get required data
  1355. *
  1356. * Return: QDF_STATUS
  1357. */
  1358. QDF_STATUS
  1359. wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1360. /**
  1361. * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
  1362. * cfg item
  1363. * @psoc: psoc context
  1364. * @value: data to be set
  1365. *
  1366. * Return: QDF_STATUS
  1367. */
  1368. QDF_STATUS
  1369. wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1370. /**
  1371. * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
  1372. * cfg item
  1373. * @psoc: psoc context
  1374. * @value: data to be set
  1375. *
  1376. * Return: QDF_STATUS
  1377. */
  1378. QDF_STATUS
  1379. wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1380. /**
  1381. * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1382. * support cap
  1383. * into cfg item
  1384. * @psoc: psoc context
  1385. * @value: data to be set
  1386. *
  1387. * Return: QDF_STATUS
  1388. */
  1389. QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1390. uint8_t value);
  1391. /**
  1392. * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
  1393. * support cap into cfg item
  1394. *
  1395. * @psoc: psoc context
  1396. * @value: data to be set
  1397. *
  1398. * Return: QDF_STATUS
  1399. */
  1400. QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1401. uint8_t *value);
  1402. /**
  1403. * wlan_mlme_cfg_set_vht_num_sounding_dim() - sets vht no of sounding dimensions
  1404. * into cfg item
  1405. * @psoc: psoc context
  1406. * @value: data to be set
  1407. *
  1408. * Return: QDF_STATUS
  1409. */
  1410. QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  1411. uint8_t value);
  1412. /**
  1413. * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
  1414. * cfg item
  1415. * @psoc: psoc context
  1416. * @value: pointer to get required data
  1417. *
  1418. * Return: QDF_STATUS
  1419. */
  1420. QDF_STATUS
  1421. wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1422. /**
  1423. * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
  1424. * cfg item
  1425. * @psoc: psoc context
  1426. * @value: data to be set
  1427. *
  1428. * Return: QDF_STATUS
  1429. */
  1430. QDF_STATUS
  1431. wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
  1432. /**
  1433. * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
  1434. * cfg item
  1435. * @psoc: psoc context
  1436. * @value: pointer to get required data
  1437. *
  1438. * Return: QDF_STATUS
  1439. */
  1440. QDF_STATUS
  1441. wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
  1442. /**
  1443. * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
  1444. * cfg item
  1445. * @psoc: psoc context
  1446. * @value: data to be set
  1447. *
  1448. * Return: QDF_STATUS
  1449. */
  1450. QDF_STATUS
  1451. wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
  1452. /**
  1453. * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
  1454. * cfg item
  1455. * @psoc: psoc context
  1456. * @value: pointer to get required data
  1457. *
  1458. * Return: QDF_STATUS
  1459. */
  1460. QDF_STATUS
  1461. wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
  1462. /**
  1463. * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
  1464. * cfg item
  1465. * @psoc: psoc context
  1466. * @value: data to be set
  1467. *
  1468. * Return: QDF_STATUS
  1469. */
  1470. QDF_STATUS
  1471. wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
  1472. /**
  1473. * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
  1474. * cfg item
  1475. * @psoc: psoc context
  1476. * @value: pointer to get required data
  1477. *
  1478. * Return: QDF_STATUS
  1479. */
  1480. QDF_STATUS
  1481. wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1482. uint8_t *value);
  1483. /**
  1484. * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
  1485. * cfg item
  1486. * @psoc: psoc context
  1487. * @value: data to be set
  1488. *
  1489. * Return: QDF_STATUS
  1490. */
  1491. QDF_STATUS
  1492. wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  1493. uint8_t value);
  1494. /**
  1495. * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1496. * cfg item
  1497. * @psoc: psoc context
  1498. * @value: pointer to get required data
  1499. *
  1500. * Return: QDF_STATUS
  1501. */
  1502. QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1503. uint32_t *value);
  1504. /**
  1505. * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1506. * cfg item
  1507. * @psoc: psoc context
  1508. * @value: data to be set
  1509. *
  1510. * Return: QDF_STATUS
  1511. */
  1512. QDF_STATUS
  1513. wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
  1514. /**
  1515. * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1516. * cfg item
  1517. * @psoc: psoc context
  1518. * @value: pointer to get required data
  1519. *
  1520. * Return: QDF_STATUS
  1521. */
  1522. QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1523. uint32_t *value);
  1524. /**
  1525. * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1526. * cfg item
  1527. * @psoc: psoc context
  1528. * @value: data to be set
  1529. *
  1530. * Return: QDF_STATUS
  1531. */
  1532. QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1533. uint32_t value);
  1534. /**
  1535. * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
  1536. * cfg item
  1537. * @psoc: psoc context
  1538. * @value: data to be set
  1539. *
  1540. * Return: QDF_STATUS
  1541. */
  1542. QDF_STATUS
  1543. wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1544. uint32_t value);
  1545. /**
  1546. * wlan_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1547. * cfg item
  1548. * @psoc: psoc context
  1549. * @value: data to be set
  1550. *
  1551. * Return: QDF_STATUS
  1552. */
  1553. QDF_STATUS
  1554. wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1555. uint32_t value);
  1556. /**
  1557. * wlan_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1558. * cfg item
  1559. * @psoc: psoc context
  1560. * @value: data to be set
  1561. *
  1562. * Return: QDF_STATUS
  1563. */
  1564. QDF_STATUS
  1565. wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1566. uint32_t *value);
  1567. /**
  1568. * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1569. * cfg item
  1570. * @psoc: psoc context
  1571. * @value: data to be set
  1572. *
  1573. * Return: QDF_STATUS
  1574. */
  1575. QDF_STATUS
  1576. wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1577. uint32_t value);
  1578. /**
  1579. * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
  1580. * @psoc: psoc context
  1581. * @value: data to be set
  1582. *
  1583. * Return: QDF_STATUS
  1584. */
  1585. QDF_STATUS
  1586. wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
  1587. /**
  1588. * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
  1589. * @psoc: psoc context
  1590. * @value: data to be set
  1591. *
  1592. * Return: QDF_STATUS
  1593. */
  1594. QDF_STATUS
  1595. wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
  1596. /**
  1597. * wlan_mlme_get_vht_channel_width() - gets Channel width capability
  1598. * for 11ac
  1599. * @psoc: psoc context
  1600. * @value: data to be set
  1601. *
  1602. * Return: QDF_STATUS
  1603. */
  1604. QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
  1605. uint8_t *value);
  1606. /**
  1607. * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1608. * @psoc: psoc context
  1609. * @value: data to be set
  1610. *
  1611. * Return: QDF_STATUS
  1612. */
  1613. QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  1614. uint8_t *value);
  1615. /**
  1616. * wlan_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1617. * @psoc: psoc context
  1618. * @value: data to be set
  1619. *
  1620. * Return: QDF_STATUS
  1621. */
  1622. QDF_STATUS
  1623. wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  1624. /**
  1625. * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1626. * @psoc: psoc context
  1627. * @value: data to be set
  1628. *
  1629. * Return: QDF_STATUS
  1630. */
  1631. QDF_STATUS wlan_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1632. uint8_t *value);
  1633. /**
  1634. * wlan_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1635. * @psoc: psoc context
  1636. * @value: data to be set
  1637. *
  1638. * Return: QDF_STATUS
  1639. */
  1640. QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  1641. uint8_t *value);
  1642. /**
  1643. * wlan_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1644. * @psoc: psoc context
  1645. * @value: data to be set
  1646. *
  1647. * Return: QDF_STATUS
  1648. */
  1649. QDF_STATUS
  1650. wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
  1651. /**
  1652. * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1653. * @psoc: psoc context
  1654. * @value: data to be set
  1655. *
  1656. * Return: QDF_STATUS
  1657. */
  1658. QDF_STATUS
  1659. wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
  1660. /**
  1661. * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1662. * @psoc: psoc context
  1663. * @value: data to be set
  1664. *
  1665. * Return: QDF_STATUS
  1666. */
  1667. QDF_STATUS
  1668. wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
  1669. /**
  1670. * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1671. * @psoc: psoc context
  1672. * @value: data to be set
  1673. *
  1674. * Return: QDF_STATUS
  1675. */
  1676. QDF_STATUS
  1677. wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
  1678. /**
  1679. * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
  1680. * @psoc: psoc context
  1681. * @value: data to be set
  1682. *
  1683. * Return: QDF_STATUS
  1684. */
  1685. QDF_STATUS
  1686. wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
  1687. /**
  1688. * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1689. * @psoc: psoc context
  1690. * @value: data to be set
  1691. *
  1692. * Return: QDF_STATUS
  1693. */
  1694. QDF_STATUS
  1695. wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1696. /**
  1697. * wlan_mlme_set_vht_for_24ghz() - Enables/disables VHT for 24 ghz
  1698. * @psoc: psoc context
  1699. * @value: data to be set
  1700. *
  1701. * Return: QDF_STATUS
  1702. */
  1703. QDF_STATUS
  1704. wlan_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value);
  1705. /**
  1706. * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
  1707. * @psoc: psoc context
  1708. * @value: data to be set
  1709. *
  1710. * Return: QDF_STATUS
  1711. */
  1712. QDF_STATUS
  1713. wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
  1714. /**
  1715. * mlme_update_vht_cap() - update vht capabilities
  1716. * @psoc: psoc context
  1717. * @cfg: data to be set
  1718. *
  1719. * Return: QDF_STATUS
  1720. */
  1721. QDF_STATUS
  1722. mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
  1723. /**
  1724. * mlme_update_nss_vht_cap() - Update the number of spatial
  1725. * streams supported for vht
  1726. * @psoc: psoc context
  1727. *
  1728. * Return: QDF_STATUS
  1729. */
  1730. QDF_STATUS mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc);
  1731. /**
  1732. * wlan_mlme_is_sap_uapsd_enabled() - Get if SAP UAPSD is enabled/disabled
  1733. * @psoc: psoc context
  1734. * @value: value to be filled for caller
  1735. *
  1736. * Return: QDF_STATUS
  1737. */
  1738. QDF_STATUS wlan_mlme_is_sap_uapsd_enabled(struct wlan_objmgr_psoc *psoc,
  1739. bool *value);
  1740. /**
  1741. * wlan_mlme_set_sap_uapsd_flag() - Enable/Disable SAP UAPSD
  1742. * @psoc: psoc context
  1743. * @value: Enable/Disable control value for sap_uapsd_enabled field
  1744. *
  1745. * Return: QDF_STATUS
  1746. */
  1747. QDF_STATUS wlan_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc,
  1748. bool value);
  1749. /**
  1750. * wlan_mlme_is_11h_enabled() - Get the 11h flag
  1751. * @psoc: psoc context
  1752. *
  1753. * Return: QDF_STATUS
  1754. */
  1755. QDF_STATUS
  1756. wlan_mlme_is_11h_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1757. /**
  1758. * wlan_mlme_set_11h_enabled() - Set the 11h flag
  1759. * @psoc: psoc context
  1760. *
  1761. * Return: QDF_STATUS
  1762. */
  1763. QDF_STATUS
  1764. wlan_mlme_set_11h_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1765. /**
  1766. * wlan_mlme_is_11d_enabled() - Get the 11d flag
  1767. * @psoc: psoc context
  1768. *
  1769. * Return: QDF_STATUS
  1770. */
  1771. QDF_STATUS
  1772. wlan_mlme_is_11d_enabled(struct wlan_objmgr_psoc *psoc, bool *value);
  1773. /**
  1774. * wlan_mlme_ibss_power_save_setup() - Set IBSS power save params
  1775. * @psoc: pointer to psoc object
  1776. * @vdev_id: IBSS Vdev ID
  1777. *
  1778. * Return: QDF Status
  1779. */
  1780. QDF_STATUS wlan_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  1781. uint32_t vdev_id);
  1782. /**
  1783. * wlan_mlme_set_11d_enabled() - Set the 11h flag
  1784. * @psoc: psoc context
  1785. *
  1786. * Return: QDF_STATUS
  1787. */
  1788. QDF_STATUS
  1789. wlan_mlme_set_11d_enabled(struct wlan_objmgr_psoc *psoc, bool value);
  1790. /**
  1791. * wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
  1792. *
  1793. * @psoc: pointer to psoc object
  1794. * @value: value which needs to filled by API
  1795. *
  1796. * This API gives rest time to be used when STA and MIRACAST MCC conc happens
  1797. *
  1798. * Return: QDF_STATUS
  1799. */
  1800. QDF_STATUS
  1801. wlan_mlme_get_sta_miracast_mcc_rest_time(struct wlan_objmgr_psoc *psoc,
  1802. uint32_t *value);
  1803. /**
  1804. * wlan_mlme_get_sap_mcc_chnl_avoid() - Check if SAP MCC needs to be avoided
  1805. *
  1806. * @psoc: pointer to psoc object
  1807. * @value: value which needs to filled by API
  1808. *
  1809. * This API fetches the user setting to determine if SAP MCC with other persona
  1810. * to be avoided.
  1811. *
  1812. * Return: QDF_STATUS
  1813. */
  1814. QDF_STATUS
  1815. wlan_mlme_get_sap_mcc_chnl_avoid(struct wlan_objmgr_psoc *psoc,
  1816. uint8_t *value);
  1817. /**
  1818. * wlan_mlme_get_mcc_bcast_prob_resp() - Get broadcast probe rsp in MCC
  1819. *
  1820. * @psoc: pointer to psoc object
  1821. * @value: value which needs to filled by API
  1822. *
  1823. * To get INI value which helps to determe whether to enable/disable use of
  1824. * broadcast probe response to increase the detectability of SAP in MCC mode.
  1825. *
  1826. *
  1827. * Return: QDF_STATUS
  1828. */
  1829. QDF_STATUS
  1830. wlan_mlme_get_mcc_bcast_prob_resp(struct wlan_objmgr_psoc *psoc,
  1831. uint8_t *value);
  1832. /**
  1833. * wlan_mlme_get_mcc_rts_cts_prot() - To get RTS-CTS protection in MCC.
  1834. *
  1835. * @psoc: pointer to psoc object
  1836. * @value: value which needs to filled by API
  1837. *
  1838. * To get INI value which helps to determine whether to enable/disable
  1839. * use of long duration RTS-CTS protection when SAP goes off
  1840. * channel in MCC mode.
  1841. *
  1842. * Return: QDF_STATUS
  1843. */
  1844. QDF_STATUS
  1845. wlan_mlme_get_mcc_rts_cts_prot(struct wlan_objmgr_psoc *psoc,
  1846. uint8_t *value);
  1847. /**
  1848. * wlan_mlme_get_mcc_feature() - To find out to enable/disable MCC feature
  1849. *
  1850. * @psoc: pointer to psoc object
  1851. * @value: value which needs to filled by API
  1852. *
  1853. * To get INI value which helps to determine whether to enable MCC feature
  1854. *
  1855. * Return: QDF_STATUS
  1856. */
  1857. QDF_STATUS
  1858. wlan_mlme_get_mcc_feature(struct wlan_objmgr_psoc *psoc,
  1859. uint8_t *value);
  1860. /**
  1861. * wlan_mlme_get_rrm_enabled() - Get the RRM enabled ini
  1862. * @psoc: pointer to psoc object
  1863. * @value: pointer to the value which will be filled for the caller
  1864. *
  1865. * Return: QDF Status
  1866. */
  1867. QDF_STATUS wlan_mlme_get_rrm_enabled(struct wlan_objmgr_psoc *psoc,
  1868. bool *value);
  1869. /*
  1870. * wlan_mlme_get_dtim_selection_diversity() - get dtim selection diversity
  1871. * bitmap
  1872. * @psoc: pointer to psoc object
  1873. * @dtim_selection_div: value that is requested by the caller
  1874. * This function gets the dtim selection diversity bitmap to be
  1875. * sent to the firmware
  1876. *
  1877. * Return: QDF_STATUS_SUCCESS - in case of success
  1878. */
  1879. QDF_STATUS wlan_mlme_get_dtim_selection_diversity(struct wlan_objmgr_psoc *psoc,
  1880. uint32_t *dtim_selection_div);
  1881. /**
  1882. * wlan_mlme_get_bmps_min_listen_interval() - get beacon mode powersave
  1883. * minimum listen interval value
  1884. * @psoc: pointer to psoc object
  1885. * @value: value that is requested by the caller
  1886. *
  1887. * Return: QDF_STATUS_SUCCESS - in case of success
  1888. */
  1889. QDF_STATUS wlan_mlme_get_bmps_min_listen_interval(struct wlan_objmgr_psoc *psoc,
  1890. uint32_t *value);
  1891. /**
  1892. * wlan_mlme_get_bmps_max_listen_interval() - get beacon mode powersave
  1893. * maximum listen interval value
  1894. * @psoc: pointer to psoc object
  1895. * @value: value that is requested by the caller
  1896. *
  1897. * Return: QDF_STATUS_SUCCESS - in case of success
  1898. */
  1899. QDF_STATUS wlan_mlme_get_bmps_max_listen_interval(struct wlan_objmgr_psoc *psoc,
  1900. uint32_t *value);
  1901. /**
  1902. * wlan_mlme_get_auto_bmps_timer_value() - get bmps timer value
  1903. * @psoc: pointer to psoc object
  1904. * @value: value that is requested by the caller
  1905. *
  1906. * Return: QDF_STATUS_SUCCESS - in case of success
  1907. */
  1908. QDF_STATUS wlan_mlme_get_auto_bmps_timer_value(struct wlan_objmgr_psoc *psoc,
  1909. uint32_t *value);
  1910. /**
  1911. * wlan_mlme_is_bmps_enabled() - check if beacon mode powersave is
  1912. * enabled/disabled
  1913. * @psoc: pointer to psoc object
  1914. * @value: value that is requested by the caller
  1915. *
  1916. * Return: QDF_STATUS_SUCCESS - in case of success
  1917. */
  1918. QDF_STATUS wlan_mlme_is_bmps_enabled(struct wlan_objmgr_psoc *psoc,
  1919. bool *value);
  1920. /**
  1921. * wlan_mlme_override_bmps_imps() - disable imps/bmps
  1922. * @psoc: pointer to psoc object
  1923. * @value: value that is requested by the caller
  1924. *
  1925. * Return: QDF_STATUS_SUCCESS - in case of success
  1926. */
  1927. QDF_STATUS wlan_mlme_override_bmps_imps(struct wlan_objmgr_psoc *psoc);
  1928. /**
  1929. * wlan_mlme_is_imps_enabled() - check if idle mode powersave is
  1930. * enabled/disabled
  1931. * @psoc: pointer to psoc object
  1932. * @value: value that is requested by the caller
  1933. *
  1934. * Return: QDF_STATUS_SUCCESS - in case of success
  1935. */
  1936. QDF_STATUS wlan_mlme_is_imps_enabled(struct wlan_objmgr_psoc *psoc,
  1937. bool *value);
  1938. /*
  1939. * wlan_mlme_get_wps_uuid() - get the wps uuid string
  1940. * @wps_params: pointer to mlme wps parameters structure
  1941. * @data: data to which the parameter is to be copied
  1942. *
  1943. * Return None
  1944. *
  1945. */
  1946. void
  1947. wlan_mlme_get_wps_uuid(struct wlan_mlme_wps_params *wps_params, uint8_t *data);
  1948. /*
  1949. * wlan_mlme_get_self_gen_frm_pwr() - get self gen frm pwr
  1950. * @psoc: pointer to psoc object
  1951. * @val: Pointer to the value which will be filled for the caller
  1952. *
  1953. * Return: QDF Status
  1954. */
  1955. QDF_STATUS
  1956. wlan_mlme_get_self_gen_frm_pwr(struct wlan_objmgr_psoc *psoc,
  1957. uint32_t *value);
  1958. #endif /* _WLAN_MLME_API_H_ */