wlan_mlme_ucfg_api.h 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703
  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 UCFG APIs exposed by the mlme component
  20. */
  21. #ifndef _WLAN_MLME_UCFG_API_H_
  22. #define _WLAN_MLME_UCFG_API_H_
  23. #include <wlan_mlme_public_struct.h>
  24. #include <wlan_objmgr_psoc_obj.h>
  25. #include <wlan_objmgr_global_obj.h>
  26. #include <wlan_cmn.h>
  27. #include <wlan_mlme_api.h>
  28. /**
  29. * ucfg_mlme_init() - initialize mlme_ctx context.
  30. *
  31. * This function initializes the mlme context.
  32. *
  33. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  34. */
  35. QDF_STATUS ucfg_mlme_init(void);
  36. /**
  37. * ucfg_mlme_deinit() - De initialize mlme_ctx context.
  38. *
  39. * This function De initializes mlme contex.
  40. *
  41. * Return: QDF_STATUS_SUCCESS - in case of success else return error
  42. */
  43. QDF_STATUS ucfg_mlme_deinit(void);
  44. /**
  45. * ucfg_mlme_psoc_open() - MLME component Open
  46. * @psoc: pointer to psoc object
  47. *
  48. * Open the MLME component and initialize the MLME strucutre
  49. *
  50. * Return: QDF Status
  51. */
  52. QDF_STATUS ucfg_mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
  53. /**
  54. * ucfg_mlme_psoc_close() - MLME component close
  55. * @psoc: pointer to psoc object
  56. *
  57. * Close the MLME component and clear the MLME structures
  58. *
  59. * Return: None
  60. */
  61. void ucfg_mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
  62. #ifdef CONFIG_VDEV_SM
  63. /**
  64. * ucfg_mlme_pdev_open() - MLME component pdev Open
  65. * @pdev: pointer to pdev object
  66. *
  67. * Open the MLME component and initialize the MLME pdev strucutre
  68. *
  69. * Return: QDF Status
  70. */
  71. QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev);
  72. /**
  73. * ucfg_mlme_pdev_close() - MLME component pdev close
  74. * @pdev: pointer to pdev object
  75. *
  76. * close the MLME pdev information
  77. *
  78. * Return: QDF Status
  79. */
  80. QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev);
  81. #else
  82. /**
  83. * ucfg_mlme_pdev_open() - MLME component pdev Open
  84. * @pdev: pointer to pdev object
  85. *
  86. * Open the MLME component and initialize the MLME pdev strucutre
  87. *
  88. * Return: QDF Status
  89. */
  90. static inline QDF_STATUS ucfg_mlme_pdev_open(struct wlan_objmgr_pdev *pdev)
  91. {
  92. return QDF_STATUS_SUCCESS;
  93. }
  94. /**
  95. * ucfg_mlme_pdev_close() - MLME component pdev close
  96. * @pdev: pointer to pdev object
  97. *
  98. * close the MLME pdev information
  99. *
  100. * Return: QDF Status
  101. */
  102. static inline QDF_STATUS ucfg_mlme_pdev_close(struct wlan_objmgr_pdev *pdev)
  103. {
  104. return QDF_STATUS_SUCCESS;
  105. }
  106. #endif
  107. /**
  108. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  109. * @psoc: pointer to psoc object
  110. * @value: pointer to the value which will be filled for the caller
  111. *
  112. * Inline UCFG API to be used by HDD/OSIF callers
  113. *
  114. * Return: QDF Status
  115. */
  116. static inline
  117. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  118. struct mlme_ht_capabilities_info
  119. *ht_cap_info)
  120. {
  121. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  122. }
  123. /**
  124. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  125. * @psoc: pointer to psoc object
  126. * @value: Value that needs to be set from the caller
  127. *
  128. * Inline UCFG API to be used by HDD/OSIF callers
  129. *
  130. * Return: QDF Status
  131. */
  132. static inline
  133. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  134. struct mlme_ht_capabilities_info
  135. ht_cap_info)
  136. {
  137. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  138. }
  139. /**
  140. * ucfg_mlme_get_band_capability() - Get the Band capability config
  141. * @psoc: pointer to psoc object
  142. * @band_capability: Pointer to the variable from caller
  143. *
  144. * Return: QDF Status
  145. */
  146. static inline
  147. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  148. uint8_t *band_capability)
  149. {
  150. return wlan_mlme_get_band_capability(psoc, band_capability);
  151. }
  152. /**
  153. * ucfg_mlme_set_band_capability() - Set the Band capability config
  154. * @psoc: pointer to psoc object
  155. * @band_capability: Value to be set from the caller
  156. *
  157. * Return: QDF Status
  158. */
  159. static inline
  160. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  161. uint8_t band_capability)
  162. {
  163. return wlan_mlme_set_band_capability(psoc, band_capability);
  164. }
  165. /**
  166. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  167. * @psoc: pointer to psoc object
  168. * @prevent_link_down: Pointer to the variable from caller
  169. *
  170. * Return: QDF Status
  171. */
  172. static inline
  173. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  174. bool *prevent_link_down)
  175. {
  176. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  177. }
  178. /**
  179. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  180. * @psoc: pointer to psoc object
  181. * @select_5ghz_margin: Pointer to the variable from caller
  182. *
  183. * Return: QDF Status
  184. */
  185. static inline
  186. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  187. uint8_t *select_5ghz_margin)
  188. {
  189. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  190. }
  191. /**
  192. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  193. * @psoc: pointer to psoc object
  194. * @crash_inject: Pointer to the variable from caller
  195. *
  196. * Return: QDF Status
  197. */
  198. static inline
  199. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  200. bool *crash_inject)
  201. {
  202. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  203. }
  204. /**
  205. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  206. * @psoc: pointer to psoc object
  207. * @lpass_support: Pointer to the variable from caller
  208. *
  209. * Return: QDF Status
  210. */
  211. static inline
  212. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  213. bool *lpass_support)
  214. {
  215. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  216. }
  217. /**
  218. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  219. * @psoc: pointer to psoc object
  220. * @self_recovery: Pointer to the variable from caller
  221. *
  222. * Return: QDF Status
  223. */
  224. static inline
  225. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  226. bool *self_recovery)
  227. {
  228. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  229. }
  230. /**
  231. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  232. * @psoc: pointer to psoc object
  233. * @sub_20_chan_width: Pointer to the variable from caller
  234. *
  235. * Return: QDF Status
  236. */
  237. static inline
  238. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  239. uint8_t *sub_20_chan_width)
  240. {
  241. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  242. }
  243. /**
  244. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  245. * @psoc: pointer to psoc object
  246. * @fw_timeout_crash: Pointer to the variable from caller
  247. *
  248. * Return: QDF Status
  249. */
  250. static inline
  251. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  252. bool *fw_timeout_crash)
  253. {
  254. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  255. }
  256. /**
  257. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  258. * @psoc: pointer to psoc object
  259. * @ito_repeat_count: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. static inline
  264. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  265. uint8_t *ito_repeat_count)
  266. {
  267. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  268. }
  269. /**
  270. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  271. * more param
  272. * @psoc: pointer to psoc object
  273. * @value: Value that needs to be set from the caller
  274. *
  275. * Inline UCFG API to be used by HDD/OSIF callers
  276. *
  277. * Return: QDF Status
  278. */
  279. static inline
  280. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  281. bool *value)
  282. {
  283. return wlan_mlme_get_acs_with_more_param(psoc, value);
  284. }
  285. /**
  286. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  287. * @psoc: pointer to psoc object
  288. * @value: Value that needs to be set from the caller
  289. *
  290. * Inline UCFG API to be used by HDD/OSIF callers
  291. *
  292. * Return: QDF Status
  293. */
  294. static inline
  295. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  296. uint32_t *value)
  297. {
  298. return wlan_mlme_get_auto_channel_weight(psoc, value);
  299. }
  300. /**
  301. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  302. * vendor acs support
  303. * @psoc: pointer to psoc object
  304. * @value: Value that needs to be set from the caller
  305. *
  306. * Inline UCFG API to be used by HDD/OSIF callers
  307. *
  308. * Return: QDF Status
  309. */
  310. static inline
  311. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  312. bool *value)
  313. {
  314. return wlan_mlme_get_vendor_acs_support(psoc, value);
  315. }
  316. /**
  317. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  318. * acs policy
  319. * @psoc: pointer to psoc object
  320. * @value: Value that needs to be set from the caller
  321. *
  322. * Inline UCFG API to be used by HDD/OSIF callers
  323. *
  324. * Return: QDF Status
  325. */
  326. static inline QDF_STATUS
  327. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  328. bool *value)
  329. {
  330. return wlan_mlme_get_external_acs_policy(psoc, value);
  331. }
  332. /**
  333. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  334. * @psoc: pointer to psoc object
  335. * @value: Value that needs to be set from the caller
  336. *
  337. * Inline UCFG API to be used by HDD/OSIF callers
  338. *
  339. * Return: QDF Status
  340. */
  341. static inline
  342. QDF_STATUS
  343. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  344. bool *value)
  345. {
  346. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  347. }
  348. /**
  349. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  350. * @psoc: pointer to psoc object
  351. * @value: Value that needs to be set from the caller
  352. *
  353. * Inline UCFG API to be used by HDD/OSIF callers
  354. *
  355. * Return: QDF Status
  356. */
  357. static inline QDF_STATUS
  358. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  359. uint8_t *value)
  360. {
  361. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  362. }
  363. /**
  364. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  365. * MSDU size for VO
  366. * @psoc: pointer to psoc object
  367. * @value: Value that needs to be set from the caller
  368. *
  369. * Inline UCFG API to be used by HDD/OSIF callers
  370. *
  371. * Return: QDF Status
  372. */
  373. static inline QDF_STATUS
  374. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  375. uint16_t *value)
  376. {
  377. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  378. }
  379. /**
  380. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  381. * @psoc: pointer to psoc object
  382. * @value: Value that needs to be set from the caller
  383. *
  384. * Inline UCFG API to be used by HDD/OSIF callers
  385. *
  386. * Return: QDF Status
  387. */
  388. static inline QDF_STATUS
  389. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  390. uint32_t *value)
  391. {
  392. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  393. }
  394. /**
  395. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  396. * rate for VO
  397. * @psoc: pointer to psoc object
  398. * @value: Value that needs to be set from the caller
  399. *
  400. * Inline UCFG API to be used by HDD/OSIF callers
  401. *
  402. * Return: QDF Status
  403. */
  404. static inline QDF_STATUS
  405. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  406. uint32_t *value)
  407. {
  408. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  409. }
  410. /**
  411. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  412. * allowance for VO
  413. * @psoc: pointer to psoc object
  414. * @value: Value that needs to be set from the caller
  415. *
  416. * Inline UCFG API to be used by HDD/OSIF callers
  417. *
  418. * Return: QDF Status
  419. */
  420. static inline QDF_STATUS
  421. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  422. uint16_t *value)
  423. {
  424. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  425. }
  426. /**
  427. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  428. * interval for voice
  429. * @psoc: pointer to psoc object
  430. * @value: pointer to the value which will be filled for the caller
  431. *
  432. * Inline UCFG API to be used by HDD/OSIF callers
  433. *
  434. * Return: QDF Status
  435. */
  436. static inline QDF_STATUS
  437. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  438. uint32_t *value)
  439. {
  440. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  441. }
  442. /**
  443. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  444. * interval for voice
  445. * @psoc: pointer to psoc object
  446. * @value: Value that needs to be set from the caller
  447. *
  448. * Inline UCFG API to be used by HDD/OSIF callers
  449. *
  450. * Return: QDF Status
  451. */
  452. static inline QDF_STATUS
  453. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  454. uint32_t *value)
  455. {
  456. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  457. }
  458. /**
  459. *
  460. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  461. * override flag is set.
  462. * @psoc: pointer to psoc object
  463. * @sme_config - Sme config struct
  464. *
  465. * Inline UCFG API to be used by HDD/OSIF callers to call
  466. * the mlme function wlan_mlme_get_sap_inactivity_override
  467. *
  468. * Return: QDF Status
  469. */
  470. static inline
  471. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  472. bool *value)
  473. {
  474. wlan_mlme_get_sap_inactivity_override(psoc, value);
  475. }
  476. /**
  477. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  478. *
  479. * @psoc: pointer to psoc object
  480. * @value: Value that needs to be set from the caller
  481. *
  482. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  483. */
  484. static inline
  485. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  486. uint8_t *value)
  487. {
  488. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  489. }
  490. /**
  491. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  492. *
  493. * @psoc: pointer to psoc object
  494. * @value: Value that needs to be set from the caller
  495. *
  496. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  497. */
  498. static inline
  499. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  500. uint16_t *value)
  501. {
  502. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  503. }
  504. /**
  505. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  506. *
  507. * @psoc: pointer to psoc object
  508. * @value: Value that needs to be set from the caller
  509. *
  510. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  511. */
  512. static inline
  513. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  514. uint16_t *value)
  515. {
  516. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  517. }
  518. /**
  519. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  520. *
  521. * @psoc: pointer to psoc object
  522. * @session_id: vdev_id
  523. *
  524. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  525. */
  526. static inline
  527. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  528. uint8_t session_id)
  529. {
  530. return wlan_mlme_configure_chain_mask(psoc, session_id);
  531. }
  532. /*
  533. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  534. * @psoc: pointer to psoc object
  535. * @val: Pointer to the value which will be filled for the caller
  536. *
  537. * Return: QDF Status
  538. */
  539. QDF_STATUS
  540. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  541. uint32_t *val);
  542. /*
  543. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  544. * @psoc: pointer to psoc object
  545. * @val: Pointer to the value which will be filled for the caller
  546. *
  547. * Return: QDF Status
  548. */
  549. QDF_STATUS
  550. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  551. bool *val);
  552. /**
  553. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  554. * @psoc: pointer to psoc object
  555. * @val: Pointer to the value which will be filled for the caller
  556. *
  557. * Return: QDF Status
  558. */
  559. QDF_STATUS
  560. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  561. uint32_t *val);
  562. /**
  563. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  564. * @psoc: pointer to psoc object
  565. * @val: Pointer to the value which will be filled for the caller
  566. *
  567. * Return: QDF Status
  568. */
  569. QDF_STATUS
  570. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  571. uint32_t val);
  572. /**
  573. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  574. * @psoc: pointer to psoc object
  575. * @out_mode: Pointer to the mode which will be filled for the caller
  576. *
  577. * Return: QDF Status
  578. */
  579. QDF_STATUS
  580. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  581. enum dot11p_mode *out_mode);
  582. /**
  583. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  584. * @psoc: pointer to psoc object
  585. * @val: Pointer to the value which will be filled for the caller
  586. *
  587. * Return: QDF Status
  588. */
  589. QDF_STATUS
  590. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  591. bool *val);
  592. /**
  593. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  594. * @psoc: pointer to psoc object
  595. * @val: Pointer to the value which will be filled for the caller
  596. *
  597. * Return: QDF Status
  598. */
  599. QDF_STATUS
  600. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  601. bool *val);
  602. /**
  603. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  604. * @psoc: pointer to psoc object
  605. * @val: Pointer to the value which will be filled for the caller
  606. *
  607. * Return: QDF Status
  608. */
  609. QDF_STATUS
  610. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  611. bool *val);
  612. /**
  613. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  614. * @psoc: pointer to psoc object
  615. * @val: Pointer to the value which will be filled for the caller
  616. *
  617. * Return: QDF Status
  618. */
  619. QDF_STATUS
  620. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  621. uint32_t *val);
  622. /**
  623. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  624. * @psoc: pointer to psoc object
  625. * @val: Pointer to enable/disable roaming offload
  626. *
  627. * Return: QDF Status
  628. */
  629. QDF_STATUS
  630. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  631. bool *val);
  632. /**
  633. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  634. * @psoc: pointer to psoc object
  635. * @val: enable/disable roaming offload
  636. *
  637. * Return: QDF Status
  638. */
  639. QDF_STATUS
  640. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  641. bool val);
  642. /**
  643. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  644. * @psoc: pointer to psoc object
  645. * @val: first scan bucket threshold
  646. *
  647. * Return: QDF Status
  648. */
  649. QDF_STATUS
  650. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  651. uint8_t *val);
  652. /**
  653. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  654. * @psoc: pointer to psoc object
  655. * @value: Value that needs to be set from the caller
  656. *
  657. * Inline UCFG API to be used by HDD/OSIF callers
  658. *
  659. * Return: QDF Status
  660. */
  661. static inline
  662. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  663. int value)
  664. {
  665. return wlan_mlme_set_sap_listen_interval(psoc, value);
  666. }
  667. /**
  668. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  669. * @psoc: pointer to psoc object
  670. * @value: Value that needs to be set from the caller
  671. *
  672. * Inline UCFG API to be used by HDD/OSIF callers
  673. *
  674. * Return: QDF Status
  675. */
  676. static inline
  677. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  678. int value)
  679. {
  680. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  681. }
  682. /**
  683. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  684. * @psoc: pointer to psoc object
  685. * @value: Value that needs to be set from the caller
  686. *
  687. * Inline UCFG API to be used by HDD/OSIF callers
  688. *
  689. * Return: QDF Status
  690. */
  691. static inline
  692. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  693. int value)
  694. {
  695. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  696. }
  697. /**
  698. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  699. * @psoc: pointer to psoc object
  700. * @value: Value that needs to be set from the caller
  701. *
  702. * Inline UCFG API to be used by HDD/OSIF callers
  703. *
  704. * Return: QDF Status
  705. */
  706. static inline
  707. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  708. bool *value)
  709. {
  710. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  711. }
  712. /**
  713. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  714. * @psoc: pointer to psoc object
  715. * @value: Value that needs to be set from the caller
  716. *
  717. * Inline UCFG API to be used by HDD/OSIF callers
  718. *
  719. * Return: QDF Status
  720. */
  721. static inline
  722. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  723. bool *value)
  724. {
  725. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  726. }
  727. /**
  728. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  729. * @psoc: pointer to psoc object
  730. * @value: Value that needs to be set from the caller
  731. *
  732. * Inline UCFG API to be used by HDD/OSIF callers
  733. *
  734. * Return: QDF Status
  735. */
  736. static inline
  737. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  738. int *value)
  739. {
  740. return wlan_mlme_get_sap_max_peers(psoc, value);
  741. }
  742. /**
  743. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  744. * @psoc: pointer to psoc object
  745. * @value: Value that needs to be set from the caller
  746. *
  747. * Inline UCFG API to be used by HDD/OSIF callers
  748. *
  749. * Return: QDF Status
  750. */
  751. static inline
  752. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  753. {
  754. return wlan_mlme_set_sap_max_peers(psoc, value);
  755. }
  756. /**
  757. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  758. * @psoc: pointer to psoc object
  759. * @value: Value that needs to be set from the caller
  760. *
  761. * Inline UCFG API to be used by HDD/OSIF callers
  762. *
  763. * Return: QDF Status
  764. */
  765. static inline
  766. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  767. int *value)
  768. {
  769. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  770. }
  771. /**
  772. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  773. * reorder buffs
  774. * @psoc: pointer to psoc object
  775. * @value: Value that needs to be set from the caller
  776. *
  777. * Inline UCFG API to be used by HDD/OSIF callers
  778. *
  779. * Return: QDF Status
  780. */
  781. static inline
  782. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  783. *psoc, int *value)
  784. {
  785. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  786. }
  787. /**
  788. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  789. * switch beacon count
  790. * @psoc: pointer to psoc object
  791. * @value: Value that needs to be set from the caller
  792. *
  793. * Inline UCFG API to be used by HDD/OSIF callers
  794. *
  795. * Return: QDF Status
  796. */
  797. static inline
  798. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  799. int *value)
  800. {
  801. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  802. }
  803. /**
  804. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  805. * @psoc: pointer to psoc object
  806. * @value: Value that needs to be set from the caller
  807. *
  808. * Inline UCFG API to be used by HDD/OSIF callers
  809. *
  810. * Return: QDF Status
  811. */
  812. static inline
  813. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  814. bool *value)
  815. {
  816. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  817. }
  818. /**
  819. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  820. * @psoc: pointer to psoc object
  821. * @value: Value that needs to be set from the caller
  822. *
  823. * Inline UCFG API to be used by HDD/OSIF callers
  824. *
  825. * Return: QDF Status
  826. */
  827. static inline
  828. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  829. bool *value)
  830. {
  831. return wlan_mlme_get_sap_internal_restart(psoc, value);
  832. }
  833. /**
  834. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  835. * interval
  836. * @psoc: pointer to psoc object
  837. * @value: Value that needs to be set from the caller
  838. *
  839. * Inline UCFG API to be used by HDD/OSIF callers
  840. *
  841. * Return: QDF Status
  842. */
  843. static inline
  844. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  845. *psoc, int *value)
  846. {
  847. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  848. }
  849. /**
  850. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  851. * switch rate enabled.
  852. * @psoc: pointer to psoc object
  853. * @value: Value that needs to be set from the caller
  854. *
  855. * Inline UCFG API to be used by HDD/OSIF callers
  856. *
  857. * Return: QDF Status
  858. */
  859. static inline
  860. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  861. *psoc, bool *value)
  862. {
  863. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  864. }
  865. /**
  866. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  867. * info for STA
  868. *
  869. * @psoc: pointer to psoc object
  870. * @value: pointer to the value which will be filled for the caller
  871. *
  872. * Inline UCFG API to be used by HDD/OSIF callers to get the
  873. * OCE STA feature enable value
  874. *
  875. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  876. */
  877. static inline
  878. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  879. bool *value)
  880. {
  881. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  882. }
  883. /**
  884. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  885. * info for SAP
  886. *
  887. * @psoc: pointer to psoc object
  888. * @value: pointer to the value which will be filled for the caller
  889. *
  890. * Inline UCFG API to be used by HDD/OSIF callers to get the
  891. * OCE SAP feature enable value
  892. *
  893. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  894. */
  895. static inline
  896. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  897. bool *value)
  898. {
  899. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  900. }
  901. /**
  902. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  903. * @psoc: pointer to psoc object
  904. * @value: pointer to the value which will be filled for the caller
  905. *
  906. * Inline UCFG API to be used by HDD/OSIF callers
  907. *
  908. * Return: QDF Status
  909. */
  910. static inline
  911. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  912. uint32_t *value)
  913. {
  914. return wlan_mlme_get_rts_threshold(psoc, value);
  915. }
  916. /**
  917. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  918. * @psoc: pointer to psoc object
  919. * @value: pointer to the value which will be filled for the caller
  920. *
  921. * Inline UCFG API to be used by HDD/OSIF callers
  922. *
  923. * Return: QDF Status
  924. */
  925. static inline
  926. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  927. uint32_t value)
  928. {
  929. return wlan_mlme_set_rts_threshold(psoc, value);
  930. }
  931. /**
  932. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  933. * config
  934. * @psoc: pointer to psoc object
  935. * @value: Value that needs to be set from the caller
  936. *
  937. * Inline UCFG API to be used by HDD/OSIF callers
  938. *
  939. * Return: QDF Status
  940. */
  941. static inline
  942. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  943. uint32_t *value)
  944. {
  945. return wlan_mlme_get_frag_threshold(psoc, value);
  946. }
  947. /**
  948. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  949. * @psoc: pointer to psoc object
  950. * @value: pointer to the value which will be filled for the caller
  951. *
  952. * Inline UCFG API to be used by HDD/OSIF callers
  953. *
  954. * Return: QDF Status
  955. */
  956. static inline
  957. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  958. uint32_t value)
  959. {
  960. return wlan_mlme_set_frag_threshold(psoc, value);
  961. }
  962. /**
  963. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  964. *
  965. * @psoc: pointer to psoc object
  966. * @value: pointer to the value which will be filled for the caller
  967. *
  968. * Inline UCFG API to be used by HDD/OSIF callers to get the
  969. * fils enable value
  970. *
  971. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  972. */
  973. static inline
  974. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  975. bool *value)
  976. {
  977. return wlan_mlme_get_fils_enabled_info(psoc, value);
  978. }
  979. /**
  980. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  981. *
  982. * @psoc: pointer to psoc object
  983. * @value: value that needs to be set from the caller
  984. *
  985. * Inline UCFG API to be used by HDD/OSIF callers to set the
  986. * fils enable value
  987. *
  988. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  989. */
  990. static inline
  991. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  992. bool value)
  993. {
  994. return wlan_mlme_set_fils_enabled_info(psoc, value);
  995. }
  996. /**
  997. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  998. *
  999. * @psoc: pointer to psoc object
  1000. * @value: value that needs to be set from the caller
  1001. *
  1002. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1003. * enable bcast probe resp info
  1004. *
  1005. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1006. */
  1007. static inline
  1008. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1009. bool value)
  1010. {
  1011. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1012. }
  1013. /**
  1014. * ucfg_mlme_cfg_set_vht_chan_width() - sets vht supported channel width into
  1015. * cfg item
  1016. * @psoc: psoc context
  1017. * @value: data to be set
  1018. *
  1019. * Inline UCFG API to be used by HDD/OSIF callers
  1020. *
  1021. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1022. */
  1023. static inline
  1024. QDF_STATUS ucfg_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1025. uint8_t value)
  1026. {
  1027. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1028. }
  1029. /**
  1030. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1031. * cfg item
  1032. * @psoc: psoc context
  1033. * @value: data to be set
  1034. *
  1035. * Inline UCFG API to be used by HDD/OSIF callers
  1036. *
  1037. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1038. */
  1039. static inline
  1040. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1041. uint8_t *value)
  1042. {
  1043. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1044. }
  1045. /**
  1046. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1047. * cfg item
  1048. * @psoc: psoc context
  1049. * @value: data to be set
  1050. *
  1051. * Inline UCFG API to be used by HDD/OSIF callers
  1052. *
  1053. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1054. */
  1055. static inline QDF_STATUS
  1056. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1057. bool value)
  1058. {
  1059. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1060. }
  1061. /**
  1062. * ucfg_mlme_cfg_get_short_gi_160_mhz() - gets basic set SHORT GI 160MHZ from
  1063. * cfg item
  1064. * @psoc: psoc context
  1065. * @value: data to be set
  1066. *
  1067. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1068. * ignore_peer_ht_opmode flag value
  1069. *
  1070. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1071. */
  1072. static inline QDF_STATUS
  1073. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1074. bool *value)
  1075. {
  1076. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1077. }
  1078. /**
  1079. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1080. * cfg item
  1081. * @psoc: psoc context
  1082. * @value: data to be set
  1083. *
  1084. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1085. * ignore_peer_ht_opmode flag value
  1086. *
  1087. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1088. */
  1089. static inline QDF_STATUS
  1090. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1091. bool value)
  1092. {
  1093. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1094. }
  1095. /**
  1096. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1097. * cfg item
  1098. * @psoc: psoc context
  1099. * @value: pointer to get required data
  1100. *
  1101. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1102. * ignore_peer_ht_opmode flag value
  1103. *
  1104. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1105. */
  1106. static inline QDF_STATUS
  1107. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1108. bool *value)
  1109. {
  1110. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1111. }
  1112. /**
  1113. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht tx stbc from
  1114. * cfg item
  1115. * @psoc: psoc context
  1116. * @value: pointer to get required data
  1117. *
  1118. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1119. * ignore_peer_ht_opmode flag value
  1120. *
  1121. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1122. */
  1123. static inline QDF_STATUS
  1124. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1125. bool *value)
  1126. {
  1127. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1128. }
  1129. /**
  1130. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1131. * support cap into cfg item
  1132. * @psoc: psoc context
  1133. * @value: data to be set
  1134. *
  1135. * Inline UCFG API to be used by HDD/OSIF callers
  1136. *
  1137. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1138. */
  1139. static inline QDF_STATUS
  1140. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1141. uint8_t value)
  1142. {
  1143. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1144. }
  1145. /**
  1146. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1147. * support cap into cfg item
  1148. * @psoc: psoc context
  1149. * @value: data to be set
  1150. *
  1151. * Inline UCFG API to be used by HDD/OSIF callers
  1152. *
  1153. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1154. */
  1155. static inline QDF_STATUS
  1156. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1157. uint8_t *value)
  1158. {
  1159. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1160. }
  1161. /**
  1162. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1163. * cfg item
  1164. * @psoc: psoc context
  1165. * @value: pointer to get required data
  1166. *
  1167. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1168. * ignore_peer_ht_opmode flag value
  1169. *
  1170. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1171. */
  1172. static inline QDF_STATUS
  1173. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1174. uint32_t *value)
  1175. {
  1176. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1177. }
  1178. /**
  1179. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1180. * cfg item
  1181. * @psoc: psoc context
  1182. * @value: data to be set
  1183. *
  1184. * Inline UCFG API to be used by HDD/OSIF callers
  1185. *
  1186. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1187. */
  1188. static inline QDF_STATUS
  1189. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1190. uint32_t value)
  1191. {
  1192. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1193. }
  1194. /**
  1195. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1196. * cfg item
  1197. * @psoc: psoc context
  1198. * @value: pointer to get required data
  1199. *
  1200. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1201. * ignore_peer_ht_opmode flag value
  1202. *
  1203. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1204. */
  1205. static inline QDF_STATUS
  1206. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1207. uint32_t *value)
  1208. {
  1209. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1210. }
  1211. /**
  1212. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1213. * cfg item
  1214. * @psoc: psoc context
  1215. * @value: data to be set
  1216. *
  1217. * Inline UCFG API to be used by HDD/OSIF callers
  1218. *
  1219. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1220. */
  1221. static inline QDF_STATUS
  1222. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1223. uint32_t value)
  1224. {
  1225. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1226. }
  1227. /**
  1228. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1229. * rate into cfg item
  1230. * @psoc: psoc context
  1231. * @value: data to be set
  1232. *
  1233. * Inline UCFG API to be used by HDD/OSIF callers
  1234. *
  1235. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1236. */
  1237. static inline QDF_STATUS
  1238. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1239. uint32_t value)
  1240. {
  1241. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1242. }
  1243. /**
  1244. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1245. * cfg item
  1246. * @psoc: psoc context
  1247. * @value: data to be set
  1248. *
  1249. * Inline UCFG API to be used by HDD/OSIF callers
  1250. *
  1251. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1252. */
  1253. static inline QDF_STATUS
  1254. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1255. uint32_t value)
  1256. {
  1257. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1258. }
  1259. /**
  1260. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1261. * cfg item
  1262. * @psoc: psoc context
  1263. * @value: data to be set
  1264. *
  1265. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1266. * ignore_peer_ht_opmode flag value
  1267. *
  1268. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1269. */
  1270. static inline QDF_STATUS
  1271. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1272. uint32_t *value)
  1273. {
  1274. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1275. }
  1276. /**
  1277. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1278. * cfg item
  1279. * @psoc: psoc context
  1280. * @value: data to be set
  1281. *
  1282. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1283. * ignore_peer_ht_opmode flag value
  1284. *
  1285. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1286. */
  1287. static inline QDF_STATUS
  1288. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1289. uint32_t value)
  1290. {
  1291. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1292. }
  1293. /**
  1294. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1295. * for 11ac
  1296. * @psoc: psoc context
  1297. * @value: data to be set
  1298. *
  1299. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1300. * ignore_peer_ht_opmode flag value
  1301. *
  1302. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1303. */
  1304. static inline QDF_STATUS
  1305. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1306. {
  1307. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1308. }
  1309. /**
  1310. * ucfg_mlme_get_vht_enable_tx_su_beam() - gets enable enable_tx_su_beam
  1311. * for 11ac
  1312. * @psoc: psoc context
  1313. * @value: data to be set
  1314. *
  1315. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1316. * ignore_peer_ht_opmode flag value
  1317. *
  1318. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1319. */
  1320. static inline QDF_STATUS
  1321. ucfg_mlme_get_vht_enable_tx_su_beam(struct wlan_objmgr_psoc *psoc, bool *value)
  1322. {
  1323. return wlan_mlme_get_vht_enable_tx_su_beam(psoc, value);
  1324. }
  1325. /**
  1326. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1327. * for 11ac
  1328. * @psoc: psoc context
  1329. * @value: data to be set
  1330. *
  1331. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1332. * ignore_peer_ht_opmode flag value
  1333. *
  1334. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1335. */
  1336. static inline QDF_STATUS
  1337. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1338. {
  1339. return wlan_mlme_get_vht_channel_width(psoc, value);
  1340. }
  1341. /**
  1342. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1343. * for 11ac
  1344. * @psoc: psoc context
  1345. * @value: data to be set
  1346. *
  1347. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1348. * ignore_peer_ht_opmode flag value
  1349. *
  1350. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1351. */
  1352. static inline QDF_STATUS
  1353. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1354. {
  1355. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1356. }
  1357. /**
  1358. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1359. * for 11ac
  1360. * @psoc: psoc context
  1361. * @value: data to be set
  1362. *
  1363. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1364. * ignore_peer_ht_opmode flag value
  1365. *
  1366. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1367. */
  1368. static inline QDF_STATUS
  1369. ucfg_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1370. {
  1371. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1372. }
  1373. /**
  1374. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1375. * for 11ac
  1376. * @psoc: psoc context
  1377. * @value: data to be set
  1378. *
  1379. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1380. * ignore_peer_ht_opmode flag value
  1381. *
  1382. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1383. */
  1384. static inline QDF_STATUS
  1385. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1386. {
  1387. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1388. }
  1389. /**
  1390. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1391. * for 11ac
  1392. * @psoc: psoc context
  1393. * @value: data to be set
  1394. *
  1395. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1396. * ignore_peer_ht_opmode flag value
  1397. *
  1398. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1399. */
  1400. static inline QDF_STATUS
  1401. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1402. {
  1403. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1404. }
  1405. /**
  1406. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1407. * @psoc: psoc context
  1408. * @value: data to be set
  1409. *
  1410. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1411. * ignore_peer_ht_opmode flag value
  1412. *
  1413. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1414. */
  1415. static inline QDF_STATUS
  1416. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1417. {
  1418. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1419. }
  1420. /**
  1421. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1422. * @psoc: psoc context
  1423. * @value: data to be set
  1424. *
  1425. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1426. * ignore_peer_ht_opmode flag value
  1427. *
  1428. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1429. */
  1430. static inline QDF_STATUS
  1431. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1432. {
  1433. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1434. }
  1435. /**
  1436. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1437. * @psoc: psoc context
  1438. * @value: data to be set
  1439. *
  1440. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1441. * ignore_peer_ht_opmode flag value
  1442. *
  1443. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1444. */
  1445. static inline QDF_STATUS
  1446. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1447. {
  1448. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1449. }
  1450. /**
  1451. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1452. * @psoc: psoc context
  1453. * @value: data to be set
  1454. *
  1455. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1456. * ignore_peer_ht_opmode flag value
  1457. *
  1458. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1459. */
  1460. static inline QDF_STATUS
  1461. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1462. {
  1463. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1464. }
  1465. /**
  1466. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  1467. * @psoc: psoc context
  1468. * @value: data to be set
  1469. *
  1470. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1471. * ignore_peer_ht_opmode flag value
  1472. *
  1473. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1474. */
  1475. static inline QDF_STATUS
  1476. ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1477. {
  1478. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1479. }
  1480. /**
  1481. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1482. * @psoc: psoc context
  1483. * @value: data to be set
  1484. *
  1485. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1486. * ignore_peer_ht_opmode flag value
  1487. *
  1488. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1489. */
  1490. static inline QDF_STATUS
  1491. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1492. {
  1493. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1494. }
  1495. /**
  1496. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1497. * @psoc: psoc context
  1498. * @value: data to be set
  1499. *
  1500. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1501. * ignore_peer_ht_opmode flag value
  1502. *
  1503. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1504. */
  1505. static inline QDF_STATUS
  1506. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1507. {
  1508. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1509. }
  1510. /**
  1511. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1512. * @psoc: psoc context
  1513. * @value: data to be set
  1514. *
  1515. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1516. * ignore_peer_ht_opmode flag value
  1517. *
  1518. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1519. */
  1520. static inline QDF_STATUS
  1521. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1522. struct wma_tgt_vht_cap *cfg)
  1523. {
  1524. return mlme_update_vht_cap(psoc, cfg);
  1525. }
  1526. /**
  1527. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1528. * streams supported for vht
  1529. * @psoc: psoc context
  1530. * @value: data to be set
  1531. *
  1532. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1533. * ignore_peer_ht_opmode flag value
  1534. *
  1535. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1536. */
  1537. static inline QDF_STATUS
  1538. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1539. {
  1540. return mlme_update_nss_vht_cap(psoc);
  1541. }
  1542. /**
  1543. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1544. * @psoc: pointer to psoc object
  1545. * @buf: buffer to get rates set
  1546. * @len: length of the buffer
  1547. * Return: QDF Status
  1548. */
  1549. QDF_STATUS
  1550. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1551. qdf_size_t *len);
  1552. /**
  1553. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1554. * @psoc: pointer to psoc object
  1555. * @buf: buffer to get rates set
  1556. * @len: length of the buffer
  1557. * Return: QDF Status
  1558. */
  1559. QDF_STATUS
  1560. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1561. qdf_size_t *len);
  1562. /**
  1563. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1564. * @psoc: pointer to psoc object
  1565. * @buf: caller buffer to copy mcs set info
  1566. * @len: length of the buffer
  1567. * Return: QDF Status
  1568. */
  1569. QDF_STATUS
  1570. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1571. qdf_size_t *len);
  1572. /**
  1573. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1574. * @psoc: pointer to psoc object
  1575. * @buf: caller buffer having mcs set info
  1576. * @len: length of the buffer
  1577. * Return: QDF Status
  1578. */
  1579. QDF_STATUS
  1580. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1581. qdf_size_t len);
  1582. /**
  1583. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1584. * @psoc: pointer to psoc object
  1585. * @buf: caller buffer to copy mcs set info
  1586. * @len: length of the buffer
  1587. * Return: QDF Status
  1588. */
  1589. QDF_STATUS
  1590. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1591. qdf_size_t *len);
  1592. #endif /* _WLAN_MLME_UCFG_API_H_ */