wmi_unified_11be_tlv.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_TLV_H_
  17. #define _WMI_UNIFIED_11BE_TLV_H_
  18. #ifdef WLAN_FEATURE_11BE_MLO
  19. /**
  20. * vdev_create_mlo_params_size() - Get MLO params size in vdev create
  21. *
  22. * Return: size of MLO params in vdev create
  23. */
  24. size_t vdev_create_mlo_params_size(void);
  25. /**
  26. * vdev_create_add_mlo_params() - Add MLO params in vdev create cmd
  27. * @buf_ptr: pointer to vdev create buffer.
  28. * @param: ponter to vdev create request param
  29. *
  30. * Return: pointer to new offset of vdev create buffer
  31. */
  32. uint8_t *vdev_create_add_mlo_params(uint8_t *buf_ptr,
  33. struct vdev_create_params *param);
  34. #else
  35. static uint8_t *vdev_create_add_mlo_params(uint8_t *buf_ptr,
  36. struct vdev_create_params *param)
  37. {
  38. WMITLV_SET_HDR(buf_ptr, WMITLV_TAG_ARRAY_STRUC, 0);
  39. return buf_ptr + WMI_TLV_HDR_SIZE;
  40. }
  41. static size_t vdev_create_mlo_params_size(void)
  42. {
  43. return WMI_TLV_HDR_SIZE;
  44. }
  45. #endif /*WLAN_FEATURE_11BE_MLO*/
  46. #endif /*_WMI_UNIFIED_11BE_TLV_H_*/