wlan_mlme_ucfg_api.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 internal API related to 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. /**
  28. * mlme_psoc_open() - MLME component Open
  29. * @psoc: pointer to psoc object
  30. *
  31. * Open the MLME component and initialize the MLME strucutre
  32. *
  33. * Return: QDF Status
  34. */
  35. QDF_STATUS mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
  36. /**
  37. * mlme_psoc_close() - MLME component close
  38. * @psoc: pointer to psoc object
  39. *
  40. * Close the MLME component and clear the MLME structures
  41. *
  42. * Return: None
  43. */
  44. void mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
  45. /**
  46. * wlan_mlme_get_ht_cap_info() - Get the HT cap info config
  47. * @psoc: pointer to psoc object
  48. * @value: pointer to the value which will be filled for the caller
  49. *
  50. * Return: QDF Status
  51. */
  52. QDF_STATUS wlan_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  53. struct mlme_ht_capabilities_info
  54. *ht_cap_info);
  55. /**
  56. * wlan_mlme_set_ht_cap_info() - Set the HT cap info config
  57. * @psoc: pointer to psoc object
  58. * @value: Value that needs to be set from the caller
  59. *
  60. * Return: QDF Status
  61. */
  62. QDF_STATUS wlan_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  63. struct mlme_ht_capabilities_info
  64. ht_cap_info);
  65. /**
  66. * ucfg_mlme_get_ht_cap_info() - Get the HT cap info config
  67. * @psoc: pointer to psoc object
  68. * @value: pointer to the value which will be filled for the caller
  69. *
  70. * Inline UCFG API to be used by HDD/OSIF callers
  71. *
  72. * Return: QDF Status
  73. */
  74. static inline
  75. QDF_STATUS ucfg_mlme_get_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  76. struct mlme_ht_capabilities_info
  77. *ht_cap_info)
  78. {
  79. return wlan_mlme_get_ht_cap_info(psoc, ht_cap_info);
  80. }
  81. /**
  82. * ucfg_mlme_set_ht_cap_info() - Set the HT cap info config
  83. * @psoc: pointer to psoc object
  84. * @value: Value that needs to be set from the caller
  85. *
  86. * Inline UCFG API to be used by HDD/OSIF callers
  87. *
  88. * Return: QDF Status
  89. */
  90. static inline
  91. QDF_STATUS ucfg_mlme_set_ht_cap_info(struct wlan_objmgr_psoc *psoc,
  92. struct mlme_ht_capabilities_info
  93. ht_cap_info)
  94. {
  95. return wlan_mlme_set_ht_cap_info(psoc, ht_cap_info);
  96. }
  97. #endif /* _WLAN_MLME_UCFG_API_H_ */