wmi_unified_11be_param.h 3.2 KB

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