wmi_unified_11be_param.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. * @WMI_HOST_MLO_TEARDOWN_REASON_STANDBY: Network Standby mode teardown
  45. */
  46. enum wmi_mlo_teardown_reason {
  47. WMI_HOST_MLO_TEARDOWN_REASON_DOWN,
  48. WMI_HOST_MLO_TEARDOWN_REASON_SSR,
  49. WMI_HOST_MLO_TEARDOWN_REASON_MODE1_SSR,
  50. WMI_HOST_MLO_TEARDOWN_REASON_STANDBY,
  51. };
  52. /** struct wmi_mlo_teardown_params - MLO teardown command params
  53. * @pdev_id: pdev id of radio on which this command is sent
  54. * @reason: reason code from enum wmi_mlo_teardown_reason
  55. * @umac_reset: trigger umac reset for mode1 or not
  56. */
  57. struct wmi_mlo_teardown_params {
  58. uint32_t pdev_id;
  59. enum wmi_mlo_teardown_reason reason;
  60. bool umac_reset;
  61. bool standby_active;
  62. };
  63. /** enum wmi_mlo_setup_status - Status code in WMI MLO setup completion event
  64. * @WMI_HOST_MLO_SETUP_STATUS_SUCCESS: Success
  65. * @WMI_HOST_MLO_SETUP_STATUS_FAILURE: Failure
  66. */
  67. enum wmi_mlo_setup_status {
  68. WMI_HOST_MLO_SETUP_STATUS_SUCCESS,
  69. WMI_HOST_MLO_SETUP_STATUS_FAILURE,
  70. };
  71. /** struct wmi_mlo_setup_complete_params - MLO setup complete event params
  72. * @pdev_id: pdev id of radio on which this event is received
  73. * @status: status code
  74. * @max_ml_peer_ids: Maximum ML Peer ID's
  75. */
  76. struct wmi_mlo_setup_complete_params {
  77. uint32_t pdev_id;
  78. enum wmi_mlo_setup_status status;
  79. uint32_t max_ml_peer_ids;
  80. };
  81. /** enum wmi_mlo_teardown_status - Status code in WMI MLO teardown completion
  82. * event
  83. * @WMI_HOST_MLO_TEARDOWN_STATUS_SUCCESS: Success
  84. * @WMI_HOST_MLO_TEARDOWN_STATUS_FAILURE: Failure
  85. * @WMI_HOST_MLO_TEARDOWN_STATUS_ONGOING: Ongoing
  86. */
  87. enum wmi_mlo_teardown_status {
  88. WMI_HOST_MLO_TEARDOWN_STATUS_SUCCESS,
  89. WMI_HOST_MLO_TEARDOWN_STATUS_FAILURE,
  90. WMI_HOST_MLO_TEARDOWN_STATUS_ONGOING,
  91. };
  92. /** struct wmi_mlo_teardown_cmpl_params - MLO setup teardown event params
  93. * @pdev_id: pdev id of radio on which this event is received
  94. * @status: Teardown status from enum wmi_mlo_teardown_status
  95. */
  96. struct wmi_mlo_teardown_cmpl_params {
  97. uint32_t pdev_id;
  98. enum wmi_mlo_teardown_status status;
  99. };
  100. #endif
  101. #endif