wlan_mlme_api.h 43 KB

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