wmi_unified_11be_param.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2023 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_HOST_MLO_TEARDOWN_REASON_DOWN: Wifi down
  42. * @WMI_HOST_MLO_TEARDOWN_REASON_SSR: Wifi Recovery
  43. * @WMI_HOST_MLO_TEARDOWN_REASON_MODE1_SSR: Recovery Mode1 SSR teardown
  44. */
  45. enum wmi_mlo_teardown_reason {
  46. WMI_HOST_MLO_TEARDOWN_REASON_DOWN,
  47. WMI_HOST_MLO_TEARDOWN_REASON_SSR,
  48. WMI_HOST_MLO_TEARDOWN_REASON_MODE1_SSR,
  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. * @umac_reset: trigger umac reset for mode1 or not
  54. */
  55. struct wmi_mlo_teardown_params {
  56. uint32_t pdev_id;
  57. enum wmi_mlo_teardown_reason reason;
  58. bool umac_reset;
  59. };
  60. /** enum wmi_mlo_setup_status - Status code in WMI MLO setup completion event
  61. * @WMI_HOST_MLO_SETUP_STATUS_SUCCESS: Success
  62. * @WMI_HOST_MLO_SETUP_STATUS_FAILURE: Failure
  63. */
  64. enum wmi_mlo_setup_status {
  65. WMI_HOST_MLO_SETUP_STATUS_SUCCESS,
  66. WMI_HOST_MLO_SETUP_STATUS_FAILURE,
  67. };
  68. /** struct wmi_mlo_setup_complete_params - MLO setup complete event params
  69. * @pdev_id: pdev id of radio on which this event is received
  70. * @status: status code
  71. * @max_ml_peer_ids: Maximum ML Peer ID's
  72. */
  73. struct wmi_mlo_setup_complete_params {
  74. uint32_t pdev_id;
  75. enum wmi_mlo_setup_status status;
  76. uint32_t max_ml_peer_ids;
  77. };
  78. /** enum wmi_mlo_teardown_status - Status code in WMI MLO teardown completion
  79. * event
  80. * @WMI_HOST_MLO_TEARDOWN_STATUS_SUCCESS: Success
  81. * @WMI_HOST_MLO_TEARDOWN_STATUS_FAILURE: Failure
  82. * @WMI_HOST_MLO_TEARDOWN_STATUS_ONGOING: Ongoing
  83. */
  84. enum wmi_mlo_teardown_status {
  85. WMI_HOST_MLO_TEARDOWN_STATUS_SUCCESS,
  86. WMI_HOST_MLO_TEARDOWN_STATUS_FAILURE,
  87. WMI_HOST_MLO_TEARDOWN_STATUS_ONGOING,
  88. };
  89. /** struct wmi_mlo_teardown_cmpl_params - MLO setup teardown event params
  90. * @pdev_id: pdev id of radio on which this event is received
  91. * @status: Teardown status from enum wmi_mlo_teardown_status
  92. */
  93. struct wmi_mlo_teardown_cmpl_params {
  94. uint32_t pdev_id;
  95. enum wmi_mlo_teardown_status status;
  96. };
  97. #endif
  98. #endif