wlan_cfg80211_coap.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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: declares driver functions interfacing with linux kernel
  18. */
  19. #ifndef _WLAN_CFG80211_COAP_H_
  20. #define _WLAN_CFG80211_COAP_H_
  21. #include <wlan_objmgr_vdev_obj.h>
  22. #ifdef WLAN_FEATURE_COAP
  23. /**
  24. * wlan_cfg80211_coap_offload() - configure CoAP offloading
  25. * @wiphy: pointer to wireless wiphy structure.
  26. * @vdev: VDEV Object pointer
  27. * @data: pointer to netlink TLV buffer
  28. * @data_len: the length of @data in bytes
  29. *
  30. * Return: An error code or 0 on success.
  31. */
  32. int
  33. wlan_cfg80211_coap_offload(struct wiphy *wiphy, struct wlan_objmgr_vdev *vdev,
  34. const void *data, int data_len);
  35. #endif
  36. #endif