utils_mlo.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. /*
  17. * DOC: contains MLO manager containing util public api's
  18. */
  19. #ifndef _WLAN_UTILS_MLO_H_
  20. #define _WLAN_UTILS_MLO_H_
  21. #include "wlan_mlo_mgr_public_structs.h"
  22. #include <wlan_cm_ucfg_api.h>
  23. #include <wlan_objmgr_vdev_obj.h>
  24. #ifdef WLAN_FEATURE_11BE_MLO
  25. #define FC0_IEEE_MGMT_FRM 0x10
  26. #define FC1_IEEE_MGMT_FRM 0x00
  27. /**
  28. * util_gen_link_assoc_rsp - Generate link association response
  29. *
  30. * @frame: association response frame ptr
  31. * @len: length of assoc rsp frame
  32. * @link_addr: link mac addr
  33. * @new_ie: Generated Link assoc rsp
  34. *
  35. * Return: true if vdev is a link vdev, false otherwise
  36. */
  37. QDF_STATUS
  38. util_gen_link_assoc_rsp(uint8_t *frame, qdf_size_t len,
  39. struct qdf_mac_addr link_addr, uint8_t *new_ie);
  40. #else
  41. static inline QDF_STATUS
  42. util_gen_link_assoc_rsp(uint8_t *frame, qdf_size_t len,
  43. struct qdf_mac_addr link_addr, uint8_t *new_ie)
  44. {
  45. return QDF_STATUS_E_NOSUPPORT;
  46. }
  47. #endif
  48. #endif