wlan_spectral_tgt_api.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. *
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. #ifndef _WLAN_SPECTRAL_TGT_API_H_
  20. #define _WLAN_SPECTRAL_TGT_API_H_
  21. #include <wlan_objmgr_cmn.h>
  22. #include <qdf_types.h>
  23. /**
  24. * tgt_send_phydata() - Send Spectral PHY data over netlink
  25. * @pdev: Pointer to pdev
  26. * @sock: Netlink socket to use
  27. * @nbuf: Network buffer containing PHY data to send
  28. *
  29. * Return: 0 on success, negative value on failure
  30. */
  31. int tgt_send_phydata(struct wlan_objmgr_pdev *pdev,
  32. struct sock *sock, qdf_nbuf_t nbuf);
  33. /**
  34. * tgt_get_target_handle() - Get handle to target_if internal Spectral data
  35. * @pdev: Pointer to pdev
  36. *
  37. * Return: Handle to target_if internal Spectral data on success, NULL on
  38. * failure
  39. */
  40. void *tgt_get_target_handle(struct wlan_objmgr_pdev *pdev);
  41. #endif /* _WLAN_SPECTRAL_TGT_API_H_*/