wmi_unified_11be_param.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef _WMI_UNIFIED_11BE_PARAM_H_
  18. #define _WMI_UNIFIED_11BE_PARAM_H_
  19. #include <wmi_unified_param.h>
  20. #ifdef WLAN_FEATURE_11BE_MLO
  21. #define MAX_LINK_IN_MLO 6
  22. /** struct wmi_mlo_setup_params - MLO setup command params
  23. * @mld_grp_id: Unique ID to FW for MLD group
  24. * @pdev_id: pdev id of radio on which this command is sent
  25. * @num_valid_hw_links: Num of valid links in partner_links array
  26. * @partner_links[MAX_LINK_IN_MLO]: Partner link IDs
  27. */
  28. struct wmi_mlo_setup_params {
  29. uint32_t mld_grp_id;
  30. uint32_t pdev_id;
  31. uint8_t num_valid_hw_links;
  32. uint32_t partner_links[MAX_LINK_IN_MLO];
  33. };
  34. /** struct wmi_mlo_ready_params - MLO ready command params
  35. * @pdev_id: pdev id of radio on which this command is sent
  36. */
  37. struct wmi_mlo_ready_params {
  38. uint32_t pdev_id;
  39. };
  40. /** enum wmi_mlo_teardown_reason - Reason code in WMI MLO teardown command
  41. * @WMI_MLO_TEARDOWN_REASON_DOWN: Wifi down
  42. * @WMI_MLO_TEARDOWN_REASON_SSR: Wifi Recovery
  43. * @WMI_MLO_TEARDOWN_REASON_CLEANUP_DONE: SSR related cleanup done
  44. */
  45. enum wmi_mlo_teardown_reason {
  46. WMI_MLO_TEARDOWN_REASON_DOWN,
  47. WMI_MLO_TEARDOWN_REASON_SSR,
  48. WMI_MLO_TEARDOWN_REASON_CLEANUP_DONE,
  49. };
  50. /** struct wmi_mlo_teardown_params - MLO teardown command params
  51. * @pdev_id: pdev id of radio on which this command is sent
  52. * @reason: reason code from enum wmi_mlo_teardown_reason
  53. */
  54. struct wmi_mlo_teardown_params {
  55. uint32_t pdev_id;
  56. enum wmi_mlo_teardown_reason reason;
  57. };
  58. /** enum wmi_mlo_setup_status - Status code in WMI MLO setup completion event
  59. * @WMI_MLO_SETUP_STATUS_SUCCESS: Success
  60. * @WMI_MLO_SETUP_STATUS_FAILURE: Failure
  61. */
  62. enum wmi_mlo_setup_status {
  63. WMI_MLO_SETUP_STATUS_SUCCESS,
  64. WMI_MLO_SETUP_STATUS_FAILURE,
  65. };
  66. /** struct wmi_mlo_setup_complete_params - MLO setup complete event params
  67. * @pdev_id: pdev id of radio on which this event is received
  68. * @status: status code
  69. */
  70. struct wmi_mlo_setup_complete_params {
  71. uint32_t pdev_id;
  72. enum wmi_mlo_setup_status status;
  73. };
  74. /** enum wmi_mlo_teardown_status - Status code in WMI MLO teardown completion
  75. * event
  76. * @WMI_MLO_TEARDOWN_STATUS_SUCCESS: Success
  77. * @WMI_MLO_TEARDOWN_STATUS_FAILURE: Failure
  78. * @WMI_MLO_TEARDOWN_STATUS_ONGOING: Ongoing
  79. */
  80. enum wmi_mlo_teardown_status {
  81. WMI_MLO_TEARDOWN_STATUS_SUCCESS,
  82. WMI_MLO_TEARDOWN_STATUS_FAILURE,
  83. WMI_MLO_TEARDOWN_STATUS_ONGOING,
  84. };
  85. /** struct wmi_mlo_teardown_cmpl_params - MLO setup teardown event params
  86. * @pdev_id: pdev id of radio on which this event is received
  87. * @status: Teardown status from enum wmi_mlo_teardown_status
  88. */
  89. struct wmi_mlo_teardown_cmpl_params {
  90. uint32_t pdev_id;
  91. enum wmi_mlo_teardown_status status;
  92. };
  93. #endif
  94. #endif