wlan_mlme_ucfg_api.h 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183
  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_max_amsdu_num() - get the max amsdu num
  141. * @psoc: pointer to psoc object
  142. * @value: pointer to the value where the max_amsdu num is to be filled
  143. *
  144. * Return: QDF_STATUS
  145. */
  146. static inline
  147. QDF_STATUS ucfg_mlme_get_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  148. uint8_t *value)
  149. {
  150. return wlan_mlme_get_max_amsdu_num(psoc, value);
  151. }
  152. /**
  153. * ucfg_mlme_set_max_amsdu_num() - set the max amsdu num
  154. * @psoc: pointer to psoc object
  155. * @value: value to be set for max_amsdu_num
  156. *
  157. * Return: QDF_STATUS
  158. */
  159. static inline
  160. QDF_STATUS ucfg_mlme_set_max_amsdu_num(struct wlan_objmgr_psoc *psoc,
  161. uint8_t value)
  162. {
  163. return wlan_mlme_set_max_amsdu_num(psoc, value);
  164. }
  165. /**
  166. * ucfg_mlme_get_ht_mpdu_density() - get the ht mpdu density
  167. * @psoc: pointer to psoc object
  168. * @value: pointer to the value where the ht mpdu density is to be filled
  169. *
  170. * Return: QDF_STATUS
  171. */
  172. static inline
  173. QDF_STATUS ucfg_mlme_get_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  174. uint8_t *value)
  175. {
  176. return wlan_mlme_get_ht_mpdu_density(psoc, value);
  177. }
  178. /**
  179. * ucfg_mlme_set_ht_mpdu_density() - set the ht mpdu density
  180. * @psoc: pointer to psoc object
  181. * @value: value to be set for ht mpdu density
  182. *
  183. * Return: QDF_STATUS
  184. */
  185. static inline
  186. QDF_STATUS ucfg_mlme_set_ht_mpdu_density(struct wlan_objmgr_psoc *psoc,
  187. uint8_t value)
  188. {
  189. return wlan_mlme_set_ht_mpdu_density(psoc, value);
  190. }
  191. /**
  192. * ucfg_mlme_get_band_capability() - Get the Band capability config
  193. * @psoc: pointer to psoc object
  194. * @band_capability: Pointer to the variable from caller
  195. *
  196. * Return: QDF Status
  197. */
  198. static inline
  199. QDF_STATUS ucfg_mlme_get_band_capability(struct wlan_objmgr_psoc *psoc,
  200. uint8_t *band_capability)
  201. {
  202. return wlan_mlme_get_band_capability(psoc, band_capability);
  203. }
  204. /**
  205. * ucfg_mlme_set_band_capability() - Set the Band capability config
  206. * @psoc: pointer to psoc object
  207. * @band_capability: Value to be set from the caller
  208. *
  209. * Return: QDF Status
  210. */
  211. static inline
  212. QDF_STATUS ucfg_mlme_set_band_capability(struct wlan_objmgr_psoc *psoc,
  213. uint8_t band_capability)
  214. {
  215. return wlan_mlme_set_band_capability(psoc, band_capability);
  216. }
  217. /**
  218. * ucfg_mlme_get_prevent_link_down() - Get the prevent link down config
  219. * @psoc: pointer to psoc object
  220. * @prevent_link_down: Pointer to the variable from caller
  221. *
  222. * Return: QDF Status
  223. */
  224. static inline
  225. QDF_STATUS ucfg_mlme_get_prevent_link_down(struct wlan_objmgr_psoc *psoc,
  226. bool *prevent_link_down)
  227. {
  228. return wlan_mlme_get_prevent_link_down(psoc, prevent_link_down);
  229. }
  230. /**
  231. * ucfg_mlme_get_select_5ghz_margin() - Get the select 5Ghz margin config
  232. * @psoc: pointer to psoc object
  233. * @select_5ghz_margin: Pointer to the variable from caller
  234. *
  235. * Return: QDF Status
  236. */
  237. static inline
  238. QDF_STATUS ucfg_mlme_get_select_5ghz_margin(struct wlan_objmgr_psoc *psoc,
  239. uint8_t *select_5ghz_margin)
  240. {
  241. return wlan_mlme_get_select_5ghz_margin(psoc, select_5ghz_margin);
  242. }
  243. /**
  244. * ucfg_mlme_get_rtt_mac_randomization() - Get the RTT MAC randomization config
  245. * @psoc: pointer to psoc object
  246. * @rtt_mac_randomization: Pointer to the variable from caller
  247. *
  248. * Return: QDF Status
  249. */
  250. static inline
  251. QDF_STATUS ucfg_mlme_get_rtt_mac_randomization(struct wlan_objmgr_psoc *psoc,
  252. bool *rtt_mac_randomization)
  253. {
  254. return wlan_mlme_get_rtt_mac_randomization(psoc, rtt_mac_randomization);
  255. }
  256. /**
  257. * ucfg_mlme_get_crash_inject() - Get the crash inject config
  258. * @psoc: pointer to psoc object
  259. * @crash_inject: Pointer to the variable from caller
  260. *
  261. * Return: QDF Status
  262. */
  263. static inline
  264. QDF_STATUS ucfg_mlme_get_crash_inject(struct wlan_objmgr_psoc *psoc,
  265. bool *crash_inject)
  266. {
  267. return wlan_mlme_get_crash_inject(psoc, crash_inject);
  268. }
  269. /**
  270. * ucfg_mlme_get_lpass_support() - Get the LPASS Support config
  271. * @psoc: pointer to psoc object
  272. * @lpass_support: Pointer to the variable from caller
  273. *
  274. * Return: QDF Status
  275. */
  276. static inline
  277. QDF_STATUS ucfg_mlme_get_lpass_support(struct wlan_objmgr_psoc *psoc,
  278. bool *lpass_support)
  279. {
  280. return wlan_mlme_get_lpass_support(psoc, lpass_support);
  281. }
  282. /**
  283. * ucfg_mlme_get_self_recovery() - Get the self recovery config
  284. * @psoc: pointer to psoc object
  285. * @self_recovery: Pointer to the variable from caller
  286. *
  287. * Return: QDF Status
  288. */
  289. static inline
  290. QDF_STATUS ucfg_mlme_get_self_recovery(struct wlan_objmgr_psoc *psoc,
  291. bool *self_recovery)
  292. {
  293. return wlan_mlme_get_self_recovery(psoc, self_recovery);
  294. }
  295. /**
  296. * ucfg_mlme_get_sub_20_chan_width() - Get the sub 20 chan width config
  297. * @psoc: pointer to psoc object
  298. * @sub_20_chan_width: Pointer to the variable from caller
  299. *
  300. * Return: QDF Status
  301. */
  302. static inline
  303. QDF_STATUS ucfg_mlme_get_sub_20_chan_width(struct wlan_objmgr_psoc *psoc,
  304. uint8_t *sub_20_chan_width)
  305. {
  306. return wlan_mlme_get_sub_20_chan_width(psoc, sub_20_chan_width);
  307. }
  308. /**
  309. * ucfg_mlme_get_fw_timeout_crash() - Get the fw timeout crash config
  310. * @psoc: pointer to psoc object
  311. * @fw_timeout_crash: Pointer to the variable from caller
  312. *
  313. * Return: QDF Status
  314. */
  315. static inline
  316. QDF_STATUS ucfg_mlme_get_fw_timeout_crash(struct wlan_objmgr_psoc *psoc,
  317. bool *fw_timeout_crash)
  318. {
  319. return wlan_mlme_get_fw_timeout_crash(psoc, fw_timeout_crash);
  320. }
  321. /**
  322. * ucfg_mlme_get_ito_repeat_count() - Get the fw timeout crash config
  323. * @psoc: pointer to psoc object
  324. * @ito_repeat_count: Pointer to the variable from caller
  325. *
  326. * Return: QDF Status
  327. */
  328. static inline
  329. QDF_STATUS ucfg_mlme_get_ito_repeat_count(struct wlan_objmgr_psoc *psoc,
  330. uint8_t *ito_repeat_count)
  331. {
  332. return wlan_mlme_get_ito_repeat_count(psoc, ito_repeat_count);
  333. }
  334. /**
  335. * ucfg_mlme_get_acs_with_more_param() - Get the flag for acs with
  336. * more param
  337. * @psoc: pointer to psoc object
  338. * @value: Value that needs to be set from the caller
  339. *
  340. * Inline UCFG API to be used by HDD/OSIF callers
  341. *
  342. * Return: QDF Status
  343. */
  344. static inline
  345. QDF_STATUS ucfg_mlme_get_acs_with_more_param(struct wlan_objmgr_psoc *psoc,
  346. bool *value)
  347. {
  348. return wlan_mlme_get_acs_with_more_param(psoc, value);
  349. }
  350. /**
  351. * ucfg_mlme_get_auto_channel_weight() - Get the auto channel select weight
  352. * @psoc: pointer to psoc object
  353. * @value: Value that needs to be set from the caller
  354. *
  355. * Inline UCFG API to be used by HDD/OSIF callers
  356. *
  357. * Return: QDF Status
  358. */
  359. static inline
  360. QDF_STATUS ucfg_mlme_get_auto_channel_weight(struct wlan_objmgr_psoc *psoc,
  361. uint32_t *value)
  362. {
  363. return wlan_mlme_get_auto_channel_weight(psoc, value);
  364. }
  365. /**
  366. * ucfg_mlme_get_vendor_acs_support() - Get the flag for
  367. * vendor acs support
  368. * @psoc: pointer to psoc object
  369. * @value: Value that needs to be set from the caller
  370. *
  371. * Inline UCFG API to be used by HDD/OSIF callers
  372. *
  373. * Return: QDF Status
  374. */
  375. static inline
  376. QDF_STATUS ucfg_mlme_get_vendor_acs_support(struct wlan_objmgr_psoc *psoc,
  377. bool *value)
  378. {
  379. return wlan_mlme_get_vendor_acs_support(psoc, value);
  380. }
  381. /**
  382. * ucfg_mlme_get_external_acs_policy() - Get flag for external control
  383. * acs policy
  384. * @psoc: pointer to psoc object
  385. * @value: Value that needs to be set from the caller
  386. *
  387. * Inline UCFG API to be used by HDD/OSIF callers
  388. *
  389. * Return: QDF Status
  390. */
  391. static inline QDF_STATUS
  392. ucfg_mlme_get_external_acs_policy(struct wlan_objmgr_psoc *psoc,
  393. bool *value)
  394. {
  395. return wlan_mlme_get_external_acs_policy(psoc, value);
  396. }
  397. /**
  398. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  399. * @psoc: pointer to psoc object
  400. * @value: Value that needs to be set from the caller
  401. *
  402. * Inline UCFG API to be used by HDD/OSIF callers
  403. *
  404. * Return: QDF Status
  405. */
  406. static inline
  407. QDF_STATUS
  408. ucfg_mlme_get_acs_support_for_dfs_ltecoex(struct wlan_objmgr_psoc *psoc,
  409. bool *value)
  410. {
  411. return wlan_mlme_get_acs_support_for_dfs_ltecoex(psoc, value);
  412. }
  413. /**
  414. * ucfg_mlme_get_wmm_dir_ac_vo() - Get TSPEC direction for VO
  415. * @psoc: pointer to psoc object
  416. * @value: Value that needs to be set from the caller
  417. *
  418. * Inline UCFG API to be used by HDD/OSIF callers
  419. *
  420. * Return: QDF Status
  421. */
  422. static inline QDF_STATUS
  423. ucfg_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  424. uint8_t *value)
  425. {
  426. return wlan_mlme_get_wmm_dir_ac_vo(psoc, value);
  427. }
  428. /**
  429. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
  430. * MSDU size for VO
  431. * @psoc: pointer to psoc object
  432. * @value: Value that needs to be set from the caller
  433. *
  434. * Inline UCFG API to be used by HDD/OSIF callers
  435. *
  436. * Return: QDF Status
  437. */
  438. static inline QDF_STATUS
  439. ucfg_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  440. uint16_t *value)
  441. {
  442. return wlan_mlme_get_wmm_nom_msdu_size_ac_vo(psoc, value);
  443. }
  444. /**
  445. * ucfg_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
  446. * @psoc: pointer to psoc object
  447. * @value: Value that needs to be set from the caller
  448. *
  449. * Inline UCFG API to be used by HDD/OSIF callers
  450. *
  451. * Return: QDF Status
  452. */
  453. static inline QDF_STATUS
  454. ucfg_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  455. uint32_t *value)
  456. {
  457. return wlan_mlme_get_wmm_mean_data_rate_ac_vo(psoc, value);
  458. }
  459. /**
  460. * ucfg_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  461. * rate for VO
  462. * @psoc: pointer to psoc object
  463. * @value: Value that needs to be set from the caller
  464. *
  465. * Inline UCFG API to be used by HDD/OSIF callers
  466. *
  467. * Return: QDF Status
  468. */
  469. static inline QDF_STATUS
  470. ucfg_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  471. uint32_t *value)
  472. {
  473. return wlan_mlme_get_wmm_min_phy_rate_ac_vo(psoc, value);
  474. }
  475. /**
  476. * ucfg_mlme_get_wmm_sba_ac_vo() - surplus bandwidth
  477. * allowance for VO
  478. * @psoc: pointer to psoc object
  479. * @value: Value that needs to be set from the caller
  480. *
  481. * Inline UCFG API to be used by HDD/OSIF callers
  482. *
  483. * Return: QDF Status
  484. */
  485. static inline QDF_STATUS
  486. ucfg_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
  487. uint16_t *value)
  488. {
  489. return wlan_mlme_get_wmm_sba_ac_vo(psoc, value);
  490. }
  491. /**
  492. * ucfg_mlme_get_wmm_uapsd_vo_srv_intv() - Get Uapsd service
  493. * interval for voice
  494. * @psoc: pointer to psoc object
  495. * @value: pointer to the value which will be filled for the caller
  496. *
  497. * Inline UCFG API to be used by HDD/OSIF callers
  498. *
  499. * Return: QDF Status
  500. */
  501. static inline QDF_STATUS
  502. ucfg_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
  503. uint32_t *value)
  504. {
  505. return wlan_mlme_get_wmm_uapsd_vo_srv_intv(psoc, value);
  506. }
  507. /**
  508. * ucfg_mlme_get_wmm_uapsd_vo_sus_intv() - Get Uapsd suspension
  509. * interval for voice
  510. * @psoc: pointer to psoc object
  511. * @value: Value that needs to be set from the caller
  512. *
  513. * Inline UCFG API to be used by HDD/OSIF callers
  514. *
  515. * Return: QDF Status
  516. */
  517. static inline QDF_STATUS
  518. ucfg_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  519. uint32_t *value)
  520. {
  521. return wlan_mlme_get_wmm_uapsd_vo_sus_intv(psoc, value);
  522. }
  523. /**
  524. *
  525. * ucfg_mlme_get_sap_inactivity_override() - Check if sap max inactivity
  526. * override flag is set.
  527. * @psoc: pointer to psoc object
  528. * @sme_config - Sme config struct
  529. *
  530. * Inline UCFG API to be used by HDD/OSIF callers to call
  531. * the mlme function wlan_mlme_get_sap_inactivity_override
  532. *
  533. * Return: QDF Status
  534. */
  535. static inline
  536. void ucfg_mlme_get_sap_inactivity_override(struct wlan_objmgr_psoc *psoc,
  537. bool *value)
  538. {
  539. wlan_mlme_get_sap_inactivity_override(psoc, value);
  540. }
  541. /**
  542. * ucfg_mlme_get_tx_chainmask_1ss() - Get the tx_chainmask_1ss value
  543. *
  544. * @psoc: pointer to psoc object
  545. * @value: Value that needs to be set from the caller
  546. *
  547. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  548. */
  549. static inline
  550. QDF_STATUS ucfg_mlme_get_tx_chainmask_1ss(struct wlan_objmgr_psoc *psoc,
  551. uint8_t *value)
  552. {
  553. return wlan_mlme_get_tx_chainmask_1ss(psoc, value);
  554. }
  555. /**
  556. * ucfg_mlme_get_num_11b_tx_chains() - Get the number of 11b only tx chains
  557. *
  558. * @psoc: pointer to psoc object
  559. * @value: Value that needs to be set from the caller
  560. *
  561. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  562. */
  563. static inline
  564. QDF_STATUS ucfg_mlme_get_num_11b_tx_chains(struct wlan_objmgr_psoc *psoc,
  565. uint16_t *value)
  566. {
  567. return wlan_mlme_get_num_11b_tx_chains(psoc, value);
  568. }
  569. /**
  570. * ucfg_mlme_get_num_11ag_tx_chains() - get the total number of 11a/g tx chains
  571. *
  572. * @psoc: pointer to psoc object
  573. * @value: Value that needs to be set from the caller
  574. *
  575. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  576. */
  577. static inline
  578. QDF_STATUS ucfg_mlme_get_num_11ag_tx_chains(struct wlan_objmgr_psoc *psoc,
  579. uint16_t *value)
  580. {
  581. return wlan_mlme_get_num_11ag_tx_chains(psoc, value);
  582. }
  583. /**
  584. * ucfg_mlme_configure_chain_mask() - configure chainmask parameters
  585. *
  586. * @psoc: pointer to psoc object
  587. * @session_id: vdev_id
  588. *
  589. * Return: QDF_STATUS_FAILURE or QDF_STATUS_SUCCESS
  590. */
  591. static inline
  592. QDF_STATUS ucfg_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
  593. uint8_t session_id)
  594. {
  595. return wlan_mlme_configure_chain_mask(psoc, session_id);
  596. }
  597. /*
  598. * ucfg_mlme_get_sta_keep_alive_period() - Get the sta keep alive period
  599. * @psoc: pointer to psoc object
  600. * @val: Pointer to the value which will be filled for the caller
  601. *
  602. * Return: QDF Status
  603. */
  604. QDF_STATUS
  605. ucfg_mlme_get_sta_keep_alive_period(struct wlan_objmgr_psoc *psoc,
  606. uint32_t *val);
  607. /*
  608. * ucfg_mlme_get_dfs_master_capability() - Get the dfs master capability
  609. * @psoc: pointer to psoc object
  610. * @val: Pointer to the value which will be filled for the caller
  611. *
  612. * Return: QDF Status
  613. */
  614. QDF_STATUS
  615. ucfg_mlme_get_dfs_master_capability(struct wlan_objmgr_psoc *psoc,
  616. bool *val);
  617. /**
  618. * ucfg_mlme_get_pmkid_modes() - Get PMKID modes
  619. * @psoc: pointer to psoc object
  620. * @val: Pointer to the value which will be filled for the caller
  621. *
  622. * Return: QDF Status
  623. */
  624. QDF_STATUS
  625. ucfg_mlme_get_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  626. uint32_t *val);
  627. /**
  628. * ucfg_mlme_set_pmkid_modes() - Set PMKID modes
  629. * @psoc: pointer to psoc object
  630. * @val: Pointer to the value which will be filled for the caller
  631. *
  632. * Return: QDF Status
  633. */
  634. QDF_STATUS
  635. ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
  636. uint32_t val);
  637. /**
  638. * ucfg_mlme_get_dot11p_mode() - Get the setting about 802.11p mode
  639. * @psoc: pointer to psoc object
  640. * @out_mode: Pointer to the mode which will be filled for the caller
  641. *
  642. * Return: QDF Status
  643. */
  644. QDF_STATUS
  645. ucfg_mlme_get_dot11p_mode(struct wlan_objmgr_psoc *psoc,
  646. enum dot11p_mode *out_mode);
  647. /**
  648. * ucfg_mlme_get_go_cts2self_for_sta() - Stop NOA and start using cts2self
  649. * @psoc: pointer to psoc object
  650. * @val: Pointer to the value which will be filled for the caller
  651. *
  652. * Return: QDF Status
  653. */
  654. QDF_STATUS
  655. ucfg_mlme_get_go_cts2self_for_sta(struct wlan_objmgr_psoc *psoc,
  656. bool *val);
  657. /**
  658. * ucfg_mlme_get_force_rsne_override() - Force rsnie override from user
  659. * @psoc: pointer to psoc object
  660. * @val: Pointer to the value which will be filled for the caller
  661. *
  662. * Return: QDF Status
  663. */
  664. QDF_STATUS
  665. ucfg_mlme_get_force_rsne_override(struct wlan_objmgr_psoc *psoc,
  666. bool *val);
  667. /**
  668. * ucfg_mlme_get_qcn_ie_support() - QCN IE support or not
  669. * @psoc: pointer to psoc object
  670. * @val: Pointer to the value which will be filled for the caller
  671. *
  672. * Return: QDF Status
  673. */
  674. QDF_STATUS
  675. ucfg_mlme_get_qcn_ie_support(struct wlan_objmgr_psoc *psoc,
  676. bool *val);
  677. /**
  678. * ucfg_mlme_get_tgt_gtx_usr_cfg() - Get the target gtx user config
  679. * @psoc: pointer to psoc object
  680. * @val: Pointer to the value which will be filled for the caller
  681. *
  682. * Return: QDF Status
  683. */
  684. QDF_STATUS
  685. ucfg_mlme_get_tgt_gtx_usr_cfg(struct wlan_objmgr_psoc *psoc,
  686. uint32_t *val);
  687. /**
  688. * ucfg_mlme_get_roaming_offload() - Get roaming offload setting
  689. * @psoc: pointer to psoc object
  690. * @val: Pointer to enable/disable roaming offload
  691. *
  692. * Return: QDF Status
  693. */
  694. QDF_STATUS
  695. ucfg_mlme_get_roaming_offload(struct wlan_objmgr_psoc *psoc,
  696. bool *val);
  697. /**
  698. * ucfg_mlme_set_roaming_offload() - Enable/disable roaming offload
  699. * @psoc: pointer to psoc object
  700. * @val: enable/disable roaming offload
  701. *
  702. * Return: QDF Status
  703. */
  704. QDF_STATUS
  705. ucfg_mlme_set_roaming_offload(struct wlan_objmgr_psoc *psoc,
  706. bool val);
  707. /**
  708. * ucfg_mlme_get_first_scan_bucket_threshold() - Get first scan bucket thre
  709. * @psoc: pointer to psoc object
  710. * @val: first scan bucket threshold
  711. *
  712. * Return: QDF Status
  713. */
  714. QDF_STATUS
  715. ucfg_mlme_get_first_scan_bucket_threshold(struct wlan_objmgr_psoc *psoc,
  716. uint8_t *val);
  717. /**
  718. * ucfg_mlme_set_sap_listen_interval() - Set the Sap listen interval
  719. * @psoc: pointer to psoc object
  720. * @value: Value that needs to be set from the caller
  721. *
  722. * Inline UCFG API to be used by HDD/OSIF callers
  723. *
  724. * Return: QDF Status
  725. */
  726. static inline
  727. QDF_STATUS ucfg_mlme_set_sap_listen_interval(struct wlan_objmgr_psoc *psoc,
  728. int value)
  729. {
  730. return wlan_mlme_set_sap_listen_interval(psoc, value);
  731. }
  732. /**
  733. * ucfg_mlme_set_assoc_sta_limit() - Set the assoc sta limit
  734. * @psoc: pointer to psoc object
  735. * @value: Value that needs to be set from the caller
  736. *
  737. * Inline UCFG API to be used by HDD/OSIF callers
  738. *
  739. * Return: QDF Status
  740. */
  741. static inline
  742. QDF_STATUS ucfg_mlme_set_assoc_sta_limit(struct wlan_objmgr_psoc *psoc,
  743. int value)
  744. {
  745. return wlan_mlme_set_assoc_sta_limit(psoc, value);
  746. }
  747. /**
  748. * ucfg_mlme_set_rmc_action_period_freq() - Set the rmc action period frequency
  749. * @psoc: pointer to psoc object
  750. * @value: Value that needs to be set from the caller
  751. *
  752. * Inline UCFG API to be used by HDD/OSIF callers
  753. *
  754. * Return: QDF Status
  755. */
  756. static inline
  757. QDF_STATUS ucfg_mlme_set_rmc_action_period_freq(struct wlan_objmgr_psoc *psoc,
  758. int value)
  759. {
  760. return wlan_mlme_set_rmc_action_period_freq(psoc, value);
  761. }
  762. /**
  763. * ucfg_mlme_get_sap_get_peer_info() - get the sap get peer info
  764. * @psoc: pointer to psoc object
  765. * @value: Value that needs to be set from the caller
  766. *
  767. * Inline UCFG API to be used by HDD/OSIF callers
  768. *
  769. * Return: QDF Status
  770. */
  771. static inline
  772. QDF_STATUS ucfg_mlme_get_sap_get_peer_info(struct wlan_objmgr_psoc *psoc,
  773. bool *value)
  774. {
  775. return wlan_mlme_get_sap_get_peer_info(psoc, value);
  776. }
  777. /**
  778. * ucfg_mlme_get_sap_allow_all_channels() - get the sap allow all channels
  779. * @psoc: pointer to psoc object
  780. * @value: Value that needs to be set from the caller
  781. *
  782. * Inline UCFG API to be used by HDD/OSIF callers
  783. *
  784. * Return: QDF Status
  785. */
  786. static inline
  787. QDF_STATUS ucfg_mlme_get_sap_allow_all_channels(struct wlan_objmgr_psoc *psoc,
  788. bool *value)
  789. {
  790. return wlan_mlme_get_sap_allow_all_channels(psoc, value);
  791. }
  792. /**
  793. * ucfg_mlme_get_sap_max_peers() - get the sap max peers
  794. * @psoc: pointer to psoc object
  795. * @value: Value that needs to be set from the caller
  796. *
  797. * Inline UCFG API to be used by HDD/OSIF callers
  798. *
  799. * Return: QDF Status
  800. */
  801. static inline
  802. QDF_STATUS ucfg_mlme_get_sap_max_peers(struct wlan_objmgr_psoc *psoc,
  803. int *value)
  804. {
  805. return wlan_mlme_get_sap_max_peers(psoc, value);
  806. }
  807. /**
  808. * ucfg_mlme_set_sap_max_peers() - Set the sap max peers
  809. * @psoc: pointer to psoc object
  810. * @value: Value that needs to be set from the caller
  811. *
  812. * Inline UCFG API to be used by HDD/OSIF callers
  813. *
  814. * Return: QDF Status
  815. */
  816. static inline
  817. QDF_STATUS ucfg_mlme_set_sap_max_peers(struct wlan_objmgr_psoc *psoc, int value)
  818. {
  819. return wlan_mlme_set_sap_max_peers(psoc, value);
  820. }
  821. /**
  822. * ucfg_mlme_get_sap_max_offload_peers() - get the sap max offload peers
  823. * @psoc: pointer to psoc object
  824. * @value: Value that needs to be set from the caller
  825. *
  826. * Inline UCFG API to be used by HDD/OSIF callers
  827. *
  828. * Return: QDF Status
  829. */
  830. static inline
  831. QDF_STATUS ucfg_mlme_get_sap_max_offload_peers(struct wlan_objmgr_psoc *psoc,
  832. int *value)
  833. {
  834. return wlan_mlme_get_sap_max_offload_peers(psoc, value);
  835. }
  836. /**
  837. * ucfg_mlme_get_sap_max_offload_reorder_buffs() - get the sap max offload
  838. * reorder buffs
  839. * @psoc: pointer to psoc object
  840. * @value: Value that needs to be set from the caller
  841. *
  842. * Inline UCFG API to be used by HDD/OSIF callers
  843. *
  844. * Return: QDF Status
  845. */
  846. static inline
  847. QDF_STATUS ucfg_mlme_get_sap_max_offload_reorder_buffs(struct wlan_objmgr_psoc
  848. *psoc, int *value)
  849. {
  850. return wlan_mlme_get_sap_max_offload_reorder_buffs(psoc, value);
  851. }
  852. /**
  853. * ucfg_mlme_get_sap_chn_switch_bcn_count() - get the sap channel
  854. * switch beacon count
  855. * @psoc: pointer to psoc object
  856. * @value: Value that needs to be set from the caller
  857. *
  858. * Inline UCFG API to be used by HDD/OSIF callers
  859. *
  860. * Return: QDF Status
  861. */
  862. static inline
  863. QDF_STATUS ucfg_mlme_get_sap_chn_switch_bcn_count(struct wlan_objmgr_psoc *psoc,
  864. int *value)
  865. {
  866. return wlan_mlme_get_sap_chn_switch_bcn_count(psoc, value);
  867. }
  868. /**
  869. * ucfg_mlme_get_sap_channel_switch_mode() - get the sap channel switch mode
  870. * @psoc: pointer to psoc object
  871. * @value: Value that needs to be set from the caller
  872. *
  873. * Inline UCFG API to be used by HDD/OSIF callers
  874. *
  875. * Return: QDF Status
  876. */
  877. static inline
  878. QDF_STATUS ucfg_mlme_get_sap_channel_switch_mode(struct wlan_objmgr_psoc *psoc,
  879. bool *value)
  880. {
  881. return wlan_mlme_get_sap_chn_switch_mode(psoc, value);
  882. }
  883. /**
  884. * ucfg_mlme_get_sap_internal_restart() - get sap internal restart value
  885. * @psoc: pointer to psoc object
  886. * @value: Value that needs to be set from the caller
  887. *
  888. * Inline UCFG API to be used by HDD/OSIF callers
  889. *
  890. * Return: QDF Status
  891. */
  892. static inline
  893. QDF_STATUS ucfg_mlme_get_sap_internal_restart(struct wlan_objmgr_psoc *psoc,
  894. bool *value)
  895. {
  896. return wlan_mlme_get_sap_internal_restart(psoc, value);
  897. }
  898. /**
  899. * ucfg_mlme_get_sap_reduces_beacon_interval() - get the sap reduces beacon
  900. * interval
  901. * @psoc: pointer to psoc object
  902. * @value: Value that needs to be set from the caller
  903. *
  904. * Inline UCFG API to be used by HDD/OSIF callers
  905. *
  906. * Return: QDF Status
  907. */
  908. static inline
  909. QDF_STATUS ucfg_mlme_get_sap_reduces_beacon_interval(struct wlan_objmgr_psoc
  910. *psoc, int *value)
  911. {
  912. return wlan_mlme_get_sap_reduced_beacon_interval(psoc, value);
  913. }
  914. /**
  915. * ucfg_mlme_get_sap_chan_switch_rate_enabled() - get the sap channel
  916. * switch rate enabled.
  917. * @psoc: pointer to psoc object
  918. * @value: Value that needs to be set from the caller
  919. *
  920. * Inline UCFG API to be used by HDD/OSIF callers
  921. *
  922. * Return: QDF Status
  923. */
  924. static inline
  925. QDF_STATUS ucfg_mlme_get_sap_chan_switch_rate_enabled(struct wlan_objmgr_psoc
  926. *psoc, bool *value)
  927. {
  928. return wlan_mlme_get_sap_chan_switch_rate_enabled(psoc, value);
  929. }
  930. /**
  931. * ucfg_mlme_get_oce_sta_enabled_info() - Get OCE feature enable/disable
  932. * info for STA
  933. *
  934. * @psoc: pointer to psoc object
  935. * @value: pointer to the value which will be filled for the caller
  936. *
  937. * Inline UCFG API to be used by HDD/OSIF callers to get the
  938. * OCE STA feature enable value
  939. *
  940. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  941. */
  942. static inline
  943. QDF_STATUS ucfg_mlme_get_oce_sta_enabled_info(struct wlan_objmgr_psoc *psoc,
  944. bool *value)
  945. {
  946. return wlan_mlme_get_oce_sta_enabled_info(psoc, value);
  947. }
  948. /**
  949. * ucfg_mlme_get_oce_sap_enabled_info() - Get OCE feature enable/disable
  950. * info for SAP
  951. *
  952. * @psoc: pointer to psoc object
  953. * @value: pointer to the value which will be filled for the caller
  954. *
  955. * Inline UCFG API to be used by HDD/OSIF callers to get the
  956. * OCE SAP feature enable value
  957. *
  958. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  959. */
  960. static inline
  961. QDF_STATUS ucfg_mlme_get_oce_sap_enabled_info(struct wlan_objmgr_psoc *psoc,
  962. bool *value)
  963. {
  964. return wlan_mlme_get_oce_sap_enabled_info(psoc, value);
  965. }
  966. /**
  967. * ucfg_mlme_get_rts_threshold() - Get the rts threshold config
  968. * @psoc: pointer to psoc object
  969. * @value: pointer to the value which will be filled for the caller
  970. *
  971. * Inline UCFG API to be used by HDD/OSIF callers
  972. *
  973. * Return: QDF Status
  974. */
  975. static inline
  976. QDF_STATUS ucfg_mlme_get_rts_threshold(struct wlan_objmgr_psoc *psoc,
  977. uint32_t *value)
  978. {
  979. return wlan_mlme_get_rts_threshold(psoc, value);
  980. }
  981. /**
  982. * ucfg_mlme_set_rts_threshold() - Set the rts threshold config
  983. * @psoc: pointer to psoc object
  984. * @value: pointer to the value which will be filled for the caller
  985. *
  986. * Inline UCFG API to be used by HDD/OSIF callers
  987. *
  988. * Return: QDF Status
  989. */
  990. static inline
  991. QDF_STATUS ucfg_mlme_set_rts_threshold(struct wlan_objmgr_psoc *psoc,
  992. uint32_t value)
  993. {
  994. return wlan_mlme_set_rts_threshold(psoc, value);
  995. }
  996. /**
  997. * ucfg_mlme_get_frag_threshold() - Get the fragmentation threshold
  998. * config
  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
  1003. *
  1004. * Return: QDF Status
  1005. */
  1006. static inline
  1007. QDF_STATUS ucfg_mlme_get_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1008. uint32_t *value)
  1009. {
  1010. return wlan_mlme_get_frag_threshold(psoc, value);
  1011. }
  1012. /**
  1013. * ucfg_mlme_set_frag_threshold() - set the frag threshold config
  1014. * @psoc: pointer to psoc object
  1015. * @value: pointer to the value which will be filled for the caller
  1016. *
  1017. * Inline UCFG API to be used by HDD/OSIF callers
  1018. *
  1019. * Return: QDF Status
  1020. */
  1021. static inline
  1022. QDF_STATUS ucfg_mlme_set_frag_threshold(struct wlan_objmgr_psoc *psoc,
  1023. uint32_t value)
  1024. {
  1025. return wlan_mlme_set_frag_threshold(psoc, value);
  1026. }
  1027. /**
  1028. * ucfg_mlme_get_fils_enabled_info() - Get fils enable/disable info
  1029. *
  1030. * @psoc: pointer to psoc object
  1031. * @value: pointer to the value which will be filled for the caller
  1032. *
  1033. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1034. * fils enable value
  1035. *
  1036. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1037. */
  1038. static inline
  1039. QDF_STATUS ucfg_mlme_get_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1040. bool *value)
  1041. {
  1042. return wlan_mlme_get_fils_enabled_info(psoc, value);
  1043. }
  1044. /**
  1045. * ucfg_mlme_set_fils_enabled_info() - Set fils enable info
  1046. *
  1047. * @psoc: pointer to psoc object
  1048. * @value: value that needs to be set from the caller
  1049. *
  1050. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1051. * fils enable value
  1052. *
  1053. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1054. */
  1055. static inline
  1056. QDF_STATUS ucfg_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  1057. bool value)
  1058. {
  1059. return wlan_mlme_set_fils_enabled_info(psoc, value);
  1060. }
  1061. /**
  1062. * ucfg_mlme_set_enable_bcast_probe_rsp() - Set enable bcast probe resp info
  1063. * @psoc: pointer to psoc object
  1064. * @value: value that needs to be set from the caller
  1065. *
  1066. * Inline UCFG API to be used by HDD/OSIF callers to set the
  1067. * enable bcast probe resp info
  1068. *
  1069. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1070. */
  1071. static inline
  1072. QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  1073. bool value)
  1074. {
  1075. return wlan_mlme_set_enable_bcast_probe_rsp(psoc, value);
  1076. }
  1077. /**
  1078. * ucfg_mlme_set_vht_ch_width() - set the vht supported channel width cfg
  1079. * @psoc: psoc context
  1080. * @value: data to be set
  1081. *
  1082. * Inline UCFG API to be used by HDD/OSIF callers
  1083. *
  1084. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1085. */
  1086. static inline
  1087. QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  1088. uint8_t value)
  1089. {
  1090. return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
  1091. }
  1092. /**
  1093. * ucfg_mlme_cfg_get_vht_chan_width() - gets vht supported channel width into
  1094. * cfg item
  1095. * @psoc: psoc context
  1096. * @value: data to be set
  1097. *
  1098. * Inline UCFG API to be used by HDD/OSIF callers
  1099. *
  1100. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1101. */
  1102. static inline
  1103. QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  1104. uint8_t *value)
  1105. {
  1106. return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
  1107. }
  1108. /**
  1109. * ucfg_mlme_cfg_set_vht_ldpc_coding_cap() - sets vht ldpc coding cap into
  1110. * cfg item
  1111. * @psoc: psoc context
  1112. * @value: data to be set
  1113. *
  1114. * Inline UCFG API to be used by HDD/OSIF callers
  1115. *
  1116. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1117. */
  1118. static inline QDF_STATUS
  1119. ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  1120. bool value)
  1121. {
  1122. return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
  1123. }
  1124. /**
  1125. * ucfg_mlme_cfg_get_short_gi_160_mhz() - Get SHORT GI 160MHZ from cfg item
  1126. * @psoc: psoc context
  1127. * @value: data to be set
  1128. *
  1129. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1130. * ignore_peer_ht_opmode flag value
  1131. *
  1132. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1133. */
  1134. static inline QDF_STATUS
  1135. ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1136. bool *value)
  1137. {
  1138. return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
  1139. }
  1140. /**
  1141. * ucfg_mlme_cfg_set_short_gi_160_mhz() - sets basic set SHORT GI 160MHZ into
  1142. * cfg item
  1143. * @psoc: psoc context
  1144. * @value: data to be set
  1145. *
  1146. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1147. * ignore_peer_ht_opmode flag value
  1148. *
  1149. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1150. */
  1151. static inline QDF_STATUS
  1152. ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  1153. bool value)
  1154. {
  1155. return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
  1156. }
  1157. /**
  1158. * ucfg_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
  1159. * cfg item
  1160. * @psoc: psoc context
  1161. * @value: pointer to get required data
  1162. *
  1163. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1164. * ignore_peer_ht_opmode flag value
  1165. *
  1166. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1167. */
  1168. static inline QDF_STATUS
  1169. ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  1170. bool *value)
  1171. {
  1172. return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
  1173. }
  1174. /**
  1175. * ucfg_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
  1176. * cfg item
  1177. * @psoc: psoc context
  1178. * @value: pointer to get required data
  1179. *
  1180. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1181. * ignore_peer_ht_opmode flag value
  1182. *
  1183. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1184. */
  1185. static inline QDF_STATUS
  1186. ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  1187. bool *value)
  1188. {
  1189. return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
  1190. }
  1191. /**
  1192. * ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
  1193. * support cap into cfg item
  1194. * @psoc: psoc context
  1195. * @value: data to be set
  1196. *
  1197. * Inline UCFG API to be used by HDD/OSIF callers
  1198. *
  1199. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1200. */
  1201. static inline QDF_STATUS
  1202. ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1203. uint8_t value)
  1204. {
  1205. return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
  1206. }
  1207. /**
  1208. * ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp() - gets vht Beamformee antenna
  1209. * support cap into cfg item
  1210. * @psoc: psoc context
  1211. * @value: data to be set
  1212. *
  1213. * Inline UCFG API to be used by HDD/OSIF callers
  1214. *
  1215. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1216. */
  1217. static inline QDF_STATUS
  1218. ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  1219. uint8_t *value)
  1220. {
  1221. return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
  1222. }
  1223. /**
  1224. * ucfg_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
  1225. * cfg item
  1226. * @psoc: psoc context
  1227. * @value: pointer to get required data
  1228. *
  1229. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1230. * ignore_peer_ht_opmode flag value
  1231. *
  1232. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1233. */
  1234. static inline QDF_STATUS
  1235. ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1236. uint32_t *value)
  1237. {
  1238. return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
  1239. }
  1240. /**
  1241. * ucfg_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
  1242. * cfg item
  1243. * @psoc: psoc context
  1244. * @value: data to be set
  1245. *
  1246. * Inline UCFG API to be used by HDD/OSIF callers
  1247. *
  1248. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1249. */
  1250. static inline QDF_STATUS
  1251. ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1252. uint32_t value)
  1253. {
  1254. return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
  1255. }
  1256. /**
  1257. * ucfg_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
  1258. * cfg item
  1259. * @psoc: psoc context
  1260. * @value: pointer to get required data
  1261. *
  1262. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1263. * ignore_peer_ht_opmode flag value
  1264. *
  1265. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1266. */
  1267. static inline QDF_STATUS
  1268. ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1269. uint32_t *value)
  1270. {
  1271. return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
  1272. }
  1273. /**
  1274. * ucfg_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
  1275. * cfg item
  1276. * @psoc: psoc context
  1277. * @value: data to be set
  1278. *
  1279. * Inline UCFG API to be used by HDD/OSIF callers
  1280. *
  1281. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1282. */
  1283. static inline QDF_STATUS
  1284. ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  1285. uint32_t value)
  1286. {
  1287. return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
  1288. }
  1289. /**
  1290. * ucfg_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data
  1291. * rate into cfg item
  1292. * @psoc: psoc context
  1293. * @value: data to be set
  1294. *
  1295. * Inline UCFG API to be used by HDD/OSIF callers
  1296. *
  1297. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1298. */
  1299. static inline QDF_STATUS
  1300. ucfg_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1301. uint32_t value)
  1302. {
  1303. return wlan_mlme_cfg_set_vht_rx_supp_data_rate(psoc, value);
  1304. }
  1305. /**
  1306. * ucfg_mlme_cfg_set_vht_tx_supp_data_rate() - sets tx supported data rate into
  1307. * cfg item
  1308. * @psoc: psoc context
  1309. * @value: data to be set
  1310. *
  1311. * Inline UCFG API to be used by HDD/OSIF callers
  1312. *
  1313. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1314. */
  1315. static inline QDF_STATUS
  1316. ucfg_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  1317. uint32_t value)
  1318. {
  1319. return wlan_mlme_cfg_set_vht_tx_supp_data_rate(psoc, value);
  1320. }
  1321. /**
  1322. * ucfg_mlme_cfg_get_vht_basic_mcs_set() - gets basic mcs set from
  1323. * cfg item
  1324. * @psoc: psoc context
  1325. * @value: data to be set
  1326. *
  1327. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1328. * ignore_peer_ht_opmode flag value
  1329. *
  1330. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1331. */
  1332. static inline QDF_STATUS
  1333. ucfg_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1334. uint32_t *value)
  1335. {
  1336. return wlan_mlme_cfg_get_vht_basic_mcs_set(psoc, value);
  1337. }
  1338. /**
  1339. * ucfg_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
  1340. * cfg item
  1341. * @psoc: psoc context
  1342. * @value: data to be set
  1343. *
  1344. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1345. * ignore_peer_ht_opmode flag value
  1346. *
  1347. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1348. */
  1349. static inline QDF_STATUS
  1350. ucfg_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  1351. uint32_t value)
  1352. {
  1353. return wlan_mlme_cfg_set_vht_basic_mcs_set(psoc, value);
  1354. }
  1355. /**
  1356. * ucfg_mlme_get_vht_enable_tx_bf() - gets enable TXBF for 20MHZ
  1357. * for 11ac
  1358. * @psoc: psoc context
  1359. * @value: data to be set
  1360. *
  1361. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1362. * ignore_peer_ht_opmode flag value
  1363. *
  1364. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1365. */
  1366. static inline QDF_STATUS
  1367. ucfg_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value)
  1368. {
  1369. return wlan_mlme_get_vht_enable_tx_bf(psoc, value);
  1370. }
  1371. /**
  1372. * ucfg_mlme_get_vht_tx_su_beamformer() - gets enable tx_su_beamformer
  1373. * for 11ac
  1374. * @psoc: psoc context
  1375. * @value: data to be set
  1376. *
  1377. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1378. * ignore_peer_ht_opmode flag value
  1379. *
  1380. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1381. */
  1382. static inline QDF_STATUS
  1383. ucfg_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value)
  1384. {
  1385. return wlan_mlme_get_vht_tx_su_beamformer(psoc, value);
  1386. }
  1387. /**
  1388. * ucfg_mlme_get_vht_channel_width() - gets Channel width capability
  1389. * for 11ac
  1390. * @psoc: psoc context
  1391. * @value: data to be set
  1392. *
  1393. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1394. * ignore_peer_ht_opmode flag value
  1395. *
  1396. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1397. */
  1398. static inline QDF_STATUS
  1399. ucfg_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1400. {
  1401. return wlan_mlme_get_vht_channel_width(psoc, value);
  1402. }
  1403. /**
  1404. * ucfg_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
  1405. * for 11ac
  1406. * @psoc: psoc context
  1407. * @value: data to be set
  1408. *
  1409. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1410. * ignore_peer_ht_opmode flag value
  1411. *
  1412. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1413. */
  1414. static inline QDF_STATUS
  1415. ucfg_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1416. {
  1417. return wlan_mlme_get_vht_rx_mcs_8_9(psoc, value);
  1418. }
  1419. /**
  1420. * ucfg_mlme_get_vht_tx_mcs_8_9() - VHT Tx MCS capability for 1x1 mode
  1421. * for 11ac
  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_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1432. {
  1433. return wlan_mlme_get_vht_tx_mcs_8_9(psoc, value);
  1434. }
  1435. /**
  1436. * ucfg_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
  1437. * for 11ac
  1438. * @psoc: psoc context
  1439. * @value: data to be set
  1440. *
  1441. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1442. * ignore_peer_ht_opmode flag value
  1443. *
  1444. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1445. */
  1446. static inline QDF_STATUS
  1447. ucfg_mlme_get_vht_rx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1448. {
  1449. return wlan_mlme_get_vht_rx_mcs_2x2(psoc, value);
  1450. }
  1451. /**
  1452. * ucfg_mlme_get_vht_tx_mcs_2x2() - VHT Tx MCS capability for 2x2 mode
  1453. * for 11ac
  1454. * @psoc: psoc context
  1455. * @value: data to be set
  1456. *
  1457. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1458. * ignore_peer_ht_opmode flag value
  1459. *
  1460. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1461. */
  1462. static inline QDF_STATUS
  1463. ucfg_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1464. {
  1465. return wlan_mlme_get_vht_tx_mcs_2x2(psoc, value);
  1466. }
  1467. /**
  1468. * ucfg_mlme_get_vht20_mcs9() - Enables VHT MCS9 in 20M BW operation
  1469. * @psoc: psoc context
  1470. * @value: data to be set
  1471. *
  1472. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1473. * ignore_peer_ht_opmode flag value
  1474. *
  1475. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1476. */
  1477. static inline QDF_STATUS
  1478. ucfg_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value)
  1479. {
  1480. return wlan_mlme_get_vht20_mcs9(psoc, value);
  1481. }
  1482. /**
  1483. * ucfg_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1484. * @psoc: psoc context
  1485. * @value: data to be set
  1486. *
  1487. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1488. * ignore_peer_ht_opmode flag value
  1489. *
  1490. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1491. */
  1492. static inline QDF_STATUS
  1493. ucfg_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value)
  1494. {
  1495. return wlan_mlme_get_vht_enable2x2(psoc, value);
  1496. }
  1497. /**
  1498. * ucfg_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
  1499. * @psoc: psoc context
  1500. * @value: data to be set
  1501. *
  1502. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1503. * ignore_peer_ht_opmode flag value
  1504. *
  1505. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1506. */
  1507. static inline QDF_STATUS
  1508. ucfg_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value)
  1509. {
  1510. return wlan_mlme_set_vht_enable2x2(psoc, value);
  1511. }
  1512. /**
  1513. * ucfg_mlme_get_vht_enable_paid() - Enables/disables paid feature
  1514. * @psoc: psoc context
  1515. * @value: data to be set
  1516. *
  1517. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1518. * ignore_peer_ht_opmode flag value
  1519. *
  1520. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1521. */
  1522. static inline QDF_STATUS
  1523. ucfg_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value)
  1524. {
  1525. return wlan_mlme_get_vht_enable_paid(psoc, value);
  1526. }
  1527. /**
  1528. * ucfg_mlme_get_vht_enable_gid() - Enables/disables gid feature
  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_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
  1539. {
  1540. return wlan_mlme_get_vht_enable_gid(psoc, value);
  1541. }
  1542. /**
  1543. * ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
  1544. * @psoc: psoc context
  1545. * @value: data to be set
  1546. *
  1547. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1548. * ignore_peer_ht_opmode flag value
  1549. *
  1550. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1551. */
  1552. static inline QDF_STATUS
  1553. ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1554. {
  1555. return wlan_mlme_get_vht_for_24ghz(psoc, value);
  1556. }
  1557. /**
  1558. * ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
  1559. * @psoc: psoc context
  1560. * @value: data to be set
  1561. *
  1562. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1563. * ignore_peer_ht_opmode flag value
  1564. *
  1565. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1566. */
  1567. static inline QDF_STATUS
  1568. ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  1569. {
  1570. return wlan_mlme_get_vendor_vht_for_24ghz(psoc, value);
  1571. }
  1572. /**
  1573. * ucfg_mlme_update_vht_cap() - Update vht capabilities
  1574. * @psoc: psoc context
  1575. * @value: data to be set
  1576. *
  1577. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1578. * ignore_peer_ht_opmode flag value
  1579. *
  1580. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1581. */
  1582. static inline QDF_STATUS
  1583. ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
  1584. struct wma_tgt_vht_cap *cfg)
  1585. {
  1586. return mlme_update_vht_cap(psoc, cfg);
  1587. }
  1588. /**
  1589. * ucfg_mlme_update_nss_vht_cap() -Update the number of spatial
  1590. * streams supported for vht
  1591. * @psoc: psoc context
  1592. * @value: data to be set
  1593. *
  1594. * Inline UCFG API to be used by HDD/OSIF callers to get the
  1595. * ignore_peer_ht_opmode flag value
  1596. *
  1597. * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  1598. */
  1599. static inline QDF_STATUS
  1600. ucfg_mlme_update_nss_vht_cap(struct wlan_objmgr_psoc *psoc)
  1601. {
  1602. return mlme_update_nss_vht_cap(psoc);
  1603. }
  1604. /**
  1605. * ucfg_mlme_get_opr_rate_set() - Get operational rate set
  1606. * @psoc: pointer to psoc object
  1607. * @buf: buffer to get rates set
  1608. * @len: length of the buffer
  1609. * Return: QDF Status
  1610. */
  1611. QDF_STATUS
  1612. ucfg_mlme_get_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1613. qdf_size_t *len);
  1614. /**
  1615. * ucfg_mlme_get_ext_opr_rate_set() - Get operational rate set
  1616. * @psoc: pointer to psoc object
  1617. * @buf: buffer to get rates set
  1618. * @len: length of the buffer
  1619. * Return: QDF Status
  1620. */
  1621. QDF_STATUS
  1622. ucfg_mlme_get_ext_opr_rate_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1623. qdf_size_t *len);
  1624. /**
  1625. * ucfg_mlme_get_supported_mcs_set() - Get Supported MCS set
  1626. * @psoc: pointer to psoc object
  1627. * @buf: caller buffer to copy mcs set info
  1628. * @len: length of the buffer
  1629. * Return: QDF Status
  1630. */
  1631. QDF_STATUS
  1632. ucfg_mlme_get_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1633. qdf_size_t *len);
  1634. /**
  1635. * ucfg_mlme_set_supported_mcs_set() - Get Supported MCS set
  1636. * @psoc: pointer to psoc object
  1637. * @buf: caller buffer having mcs set info
  1638. * @len: length of the buffer
  1639. * Return: QDF Status
  1640. */
  1641. QDF_STATUS
  1642. ucfg_mlme_set_supported_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1643. qdf_size_t len);
  1644. /**
  1645. * ucfg_mlme_get_current_mcs_set() - Get current MCS set
  1646. * @psoc: pointer to psoc object
  1647. * @buf: caller buffer to copy mcs set info
  1648. * @len: length of the buffer
  1649. * Return: QDF Status
  1650. */
  1651. QDF_STATUS
  1652. ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
  1653. qdf_size_t *len);
  1654. /**
  1655. * ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
  1656. * for VI
  1657. * @psoc: pointer to psoc object
  1658. * @value: Value that needs to be set from the caller
  1659. *
  1660. * Inline UCFG API to be used by HDD/OSIF callers
  1661. *
  1662. * Return: QDF Status
  1663. */
  1664. static inline QDF_STATUS
  1665. ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  1666. uint8_t *value)
  1667. {
  1668. return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
  1669. }
  1670. /**
  1671. * ucfg_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
  1672. * MSDU size for VI
  1673. * @psoc: pointer to psoc object
  1674. * @value: Value that needs to be set from the caller
  1675. *
  1676. * Inline UCFG API to be used by HDD/OSIF callers
  1677. *
  1678. * Return: QDF Status
  1679. */
  1680. static inline QDF_STATUS
  1681. ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  1682. uint16_t *value)
  1683. {
  1684. return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
  1685. }
  1686. /**
  1687. * ucfg_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
  1688. * rate for VI
  1689. * @psoc: pointer to psoc object
  1690. * @value: Value that needs to be set from the caller
  1691. *
  1692. * Inline UCFG API to be used by HDD/OSIF callers
  1693. *
  1694. * Return: QDF Status
  1695. */
  1696. static inline QDF_STATUS
  1697. ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1698. uint32_t *value)
  1699. {
  1700. return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
  1701. }
  1702. /**
  1703. * ucfg_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
  1704. * rate for VI
  1705. * @psoc: pointer to psoc object
  1706. * @value: Value that needs to be set from the caller
  1707. *
  1708. * Inline UCFG API to be used by HDD/OSIF callers
  1709. *
  1710. * Return: QDF Status
  1711. */
  1712. static inline QDF_STATUS
  1713. ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  1714. uint32_t *value)
  1715. {
  1716. return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
  1717. }
  1718. /**
  1719. * ucfg_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
  1720. * allowance for VI
  1721. * @psoc: pointer to psoc object
  1722. * @value: Value that needs to be set from the caller
  1723. *
  1724. * Inline UCFG API to be used by HDD/OSIF callers
  1725. *
  1726. * Return: QDF Status
  1727. */
  1728. static inline QDF_STATUS
  1729. ucfg_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1730. {
  1731. return wlan_mlme_get_wmm_sba_ac_vi(psoc, value);
  1732. }
  1733. /**
  1734. * ucfg_mlme_get_wmm_uapsd_vi_srv_intv() - Get Uapsd service
  1735. * interval for video
  1736. * @psoc: pointer to psoc object
  1737. * @value: pointer to the value which will be filled for the caller
  1738. *
  1739. * Inline UCFG API to be used by HDD/OSIF callers
  1740. *
  1741. * Return: QDF Status
  1742. */
  1743. static inline QDF_STATUS
  1744. ucfg_mlme_get_wmm_uapsd_vi_srv_intv(struct wlan_objmgr_psoc *psoc,
  1745. uint32_t *value)
  1746. {
  1747. return wlan_mlme_get_wmm_uapsd_vi_srv_intv(psoc, value);
  1748. }
  1749. /**
  1750. * ucfg_mlme_get_wmm_uapsd_vi_sus_intv() - Get Uapsd suspension
  1751. * interval for video
  1752. * @psoc: pointer to psoc object
  1753. * @value: Value that needs to be set from the caller
  1754. *
  1755. * Inline UCFG API to be used by HDD/OSIF callers
  1756. *
  1757. * Return: QDF Status
  1758. */
  1759. static inline QDF_STATUS
  1760. ucfg_mlme_get_wmm_uapsd_vi_sus_intv(struct wlan_objmgr_psoc *psoc,
  1761. uint32_t *value)
  1762. {
  1763. return wlan_mlme_get_wmm_uapsd_vi_sus_intv(psoc, value);
  1764. }
  1765. /**
  1766. * ucfg_mlme_get_wmm_dir_ac_be() - Get TSPEC direction
  1767. * for BE
  1768. * @psoc: pointer to psoc object
  1769. * @value: Value that needs to be set from the caller
  1770. *
  1771. * Inline UCFG API to be used by HDD/OSIF callers
  1772. *
  1773. * Return: QDF Status
  1774. */
  1775. static inline QDF_STATUS
  1776. ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1777. {
  1778. return wlan_mlme_get_wmm_dir_ac_be(psoc, value);
  1779. }
  1780. /**
  1781. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1782. * MSDU size for BE
  1783. * @psoc: pointer to psoc object
  1784. * @value: Value that needs to be set from the caller
  1785. *
  1786. * Inline UCFG API to be used by HDD/OSIF callers
  1787. *
  1788. * Return: QDF Status
  1789. */
  1790. static inline QDF_STATUS
  1791. ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  1792. uint16_t *value)
  1793. {
  1794. return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
  1795. }
  1796. /**
  1797. * ucfg_mlme_get_wmm_mean_data_rate_ac_be() - mean data
  1798. * rate for BE
  1799. * @psoc: pointer to psoc object
  1800. * @value: Value that needs to be set from the caller
  1801. *
  1802. * Inline UCFG API to be used by HDD/OSIF callers
  1803. *
  1804. * Return: QDF Status
  1805. */
  1806. static inline QDF_STATUS
  1807. ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1808. uint32_t *value)
  1809. {
  1810. return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
  1811. }
  1812. /**
  1813. * ucfg_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
  1814. * rate for BE
  1815. * @psoc: pointer to psoc object
  1816. * @value: Value that needs to be set from the caller
  1817. *
  1818. * Inline UCFG API to be used by HDD/OSIF callers
  1819. *
  1820. * Return: QDF Status
  1821. */
  1822. static inline QDF_STATUS
  1823. ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  1824. uint32_t *value)
  1825. {
  1826. return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
  1827. }
  1828. /**
  1829. * ucfg_mlme_get_wmm_sba_ac_be() - surplus bandwidth
  1830. * allowance for BE
  1831. * @psoc: pointer to psoc object
  1832. * @value: Value that needs to be set from the caller
  1833. *
  1834. * Inline UCFG API to be used by HDD/OSIF callers
  1835. *
  1836. * Return: QDF Status
  1837. */
  1838. static inline QDF_STATUS
  1839. ucfg_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1840. {
  1841. return wlan_mlme_get_wmm_sba_ac_be(psoc, value);
  1842. }
  1843. /**
  1844. * ucfg_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
  1845. * interval for BE
  1846. * @psoc: pointer to psoc object
  1847. * @value: pointer to the value which will be filled for the caller
  1848. *
  1849. * Inline UCFG API to be used by HDD/OSIF callers
  1850. *
  1851. * Return: QDF Status
  1852. */
  1853. static inline QDF_STATUS
  1854. ucfg_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  1855. uint32_t *value)
  1856. {
  1857. return wlan_mlme_get_wmm_uapsd_be_srv_intv(psoc, value);
  1858. }
  1859. /**
  1860. * ucfg_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
  1861. * interval for BE
  1862. * @psoc: pointer to psoc object
  1863. * @value: Value that needs to be set from the caller
  1864. *
  1865. * Inline UCFG API to be used by HDD/OSIF callers
  1866. *
  1867. * Return: QDF Status
  1868. */
  1869. static inline QDF_STATUS
  1870. ucfg_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
  1871. uint32_t *value)
  1872. {
  1873. return wlan_mlme_get_wmm_uapsd_be_sus_intv(psoc, value);
  1874. }
  1875. /**
  1876. * ucfg_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
  1877. * for BK
  1878. * @psoc: pointer to psoc object
  1879. * @value: Value that needs to be set from the caller
  1880. *
  1881. * Inline UCFG API to be used by HDD/OSIF callers
  1882. *
  1883. * Return: QDF Status
  1884. */
  1885. static inline QDF_STATUS
  1886. ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1887. {
  1888. return wlan_mlme_get_wmm_dir_ac_bk(psoc, value);
  1889. }
  1890. /**
  1891. * ucfg_mlme_get_wmm_nom_msdu_size_ac_be() - Get normal
  1892. * MSDU size for BE
  1893. * @psoc: pointer to psoc object
  1894. * @value: Value that needs to be set from the caller
  1895. *
  1896. * Inline UCFG API to be used by HDD/OSIF callers
  1897. *
  1898. * Return: QDF Status
  1899. */
  1900. static inline QDF_STATUS
  1901. ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  1902. uint16_t *value)
  1903. {
  1904. return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
  1905. }
  1906. /**
  1907. * ucfg_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
  1908. * rate for BK
  1909. * @psoc: pointer to psoc object
  1910. * @value: Value that needs to be set from the caller
  1911. *
  1912. * Inline UCFG API to be used by HDD/OSIF callers
  1913. *
  1914. * Return: QDF Status
  1915. */
  1916. static inline QDF_STATUS
  1917. ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1918. uint32_t *value)
  1919. {
  1920. return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
  1921. }
  1922. /**
  1923. * ucfg_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
  1924. * rate for BE
  1925. * @psoc: pointer to psoc object
  1926. * @value: Value that needs to be set from the caller
  1927. *
  1928. * Inline UCFG API to be used by HDD/OSIF callers
  1929. *
  1930. * Return: QDF Status
  1931. */
  1932. static inline QDF_STATUS
  1933. ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  1934. uint32_t *value)
  1935. {
  1936. return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
  1937. }
  1938. /**
  1939. * ucfg_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
  1940. * allowance for BE
  1941. * @psoc: pointer to psoc object
  1942. * @value: Value that needs to be set from the caller
  1943. *
  1944. * Inline UCFG API to be used by HDD/OSIF callers
  1945. *
  1946. * Return: QDF Status
  1947. */
  1948. static inline QDF_STATUS
  1949. ucfg_mlme_get_wmm_sba_ac_bk(struct wlan_objmgr_psoc *psoc, uint16_t *value)
  1950. {
  1951. return wlan_mlme_get_wmm_sba_ac_bk(psoc, value);
  1952. }
  1953. /**
  1954. * ucfg_mlme_get_wmm_uapsd_bk_srv_intv() - Get Uapsd service
  1955. * interval for BK
  1956. * @psoc: pointer to psoc object
  1957. * @value: pointer to the value which will be filled for the caller
  1958. *
  1959. * Inline UCFG API to be used by HDD/OSIF callers
  1960. *
  1961. * Return: QDF Status
  1962. */
  1963. static inline QDF_STATUS
  1964. ucfg_mlme_get_wmm_uapsd_bk_srv_intv(struct wlan_objmgr_psoc *psoc,
  1965. uint32_t *value)
  1966. {
  1967. return wlan_mlme_get_wmm_uapsd_bk_srv_intv(psoc, value);
  1968. }
  1969. /**
  1970. * ucfg_mlme_get_wmm_uapsd_bk_sus_intv() - Get Uapsd suspension
  1971. * interval for BK
  1972. * @psoc: pointer to psoc object
  1973. * @value: Value that needs to be set from the caller
  1974. *
  1975. * Inline UCFG API to be used by HDD/OSIF callers
  1976. *
  1977. * Return: QDF Status
  1978. */
  1979. static inline QDF_STATUS
  1980. ucfg_mlme_get_wmm_uapsd_bk_sus_intv(struct wlan_objmgr_psoc *psoc,
  1981. uint32_t *value)
  1982. {
  1983. return wlan_mlme_get_wmm_uapsd_bk_sus_intv(psoc, value);
  1984. }
  1985. /**
  1986. * ucfg_mlme_get_wmm_mode() - Enable WMM feature
  1987. * @psoc: pointer to psoc object
  1988. * @value: Value that needs to be set from the caller
  1989. *
  1990. * Inline UCFG API to be used by HDD/OSIF callers
  1991. *
  1992. * Return: QDF Status
  1993. */
  1994. static inline QDF_STATUS
  1995. ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  1996. {
  1997. return wlan_mlme_get_wmm_mode(psoc, value);
  1998. }
  1999. /**
  2000. * ucfg_mlme_get_80211e_is_enabled() - Enable 802.11e feature
  2001. * @psoc: pointer to psoc object
  2002. * @value: Value that needs to be set from the caller
  2003. *
  2004. * Inline UCFG API to be used by HDD/OSIF callers
  2005. *
  2006. * Return: QDF Status
  2007. */
  2008. static inline QDF_STATUS
  2009. ucfg_mlme_get_80211e_is_enabled(struct wlan_objmgr_psoc *psoc, bool *value)
  2010. {
  2011. return wlan_mlme_get_80211e_is_enabled(psoc, value);
  2012. }
  2013. /**
  2014. * ucfg_mlme_get_wmm_uapsd_mask() - setup U-APSD mask for ACs
  2015. * @psoc: pointer to psoc object
  2016. * @value: Value that needs to be set from the caller
  2017. *
  2018. * Inline UCFG API to be used by HDD/OSIF callers
  2019. *
  2020. * Return: QDF Status
  2021. */
  2022. static inline QDF_STATUS
  2023. ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  2024. {
  2025. return wlan_mlme_get_wmm_uapsd_mask(psoc, value);
  2026. }
  2027. /**
  2028. * ucfg_mlme_get_implicit_qos_is_enabled() - Enable implicit QOS
  2029. * @psoc: pointer to psoc object
  2030. * @value: Value that needs to be set from the caller
  2031. *
  2032. * Inline UCFG API to be used by HDD/OSIF callers
  2033. *
  2034. * Return: QDF Status
  2035. */
  2036. static inline QDF_STATUS
  2037. ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  2038. bool *value)
  2039. {
  2040. return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
  2041. }
  2042. #endif /* _WLAN_MLME_UCFG_API_H_ */