wlan_osif_priv.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #ifndef _WLAN_OSIF_PRIV_H_
  19. #define _WLAN_OSIF_PRIV_H_
  20. struct osif_scan_pdev;
  21. struct osif_tdls_vdev;
  22. /**
  23. * struct pdev_osif_priv - OS private structure
  24. * @wiphy: wiphy handle
  25. * @legacy_osif_priv: legacy osif private handle
  26. * @scan_priv: Scan related data used by cfg80211 scan
  27. */
  28. struct pdev_osif_priv {
  29. struct wiphy *wiphy;
  30. void *legacy_osif_priv;
  31. struct osif_scan_pdev *osif_scan;
  32. };
  33. /**
  34. * struct vdev_osif_priv - OS private structure of vdev
  35. * @wdev: wireless device handle
  36. * @legacy_osif_priv: legacy osif private handle
  37. */
  38. struct vdev_osif_priv {
  39. struct wireless_dev *wdev;
  40. void *legacy_osif_priv;
  41. struct osif_tdls_vdev *osif_tdls;
  42. };
  43. #endif