wlan_osif_priv.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2016-2017,2020-2021 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. #include "qdf_net_if.h"
  21. #include "wlan_cm_public_struct.h"
  22. #include <qca_vendor.h>
  23. struct osif_scan_pdev;
  24. struct osif_tdls_vdev;
  25. /**
  26. * struct pdev_osif_priv - OS private structure
  27. * @wiphy: wiphy handle
  28. * @legacy_osif_priv: legacy osif private handle
  29. * @scan_priv: Scan related data used by cfg80211 scan
  30. * @nif: pdev net device
  31. */
  32. struct pdev_osif_priv {
  33. struct wiphy *wiphy;
  34. void *legacy_osif_priv;
  35. struct osif_scan_pdev *osif_scan;
  36. struct qdf_net_if *nif;
  37. };
  38. /**
  39. * struct osif_cm_info - osif connection manager info
  40. * @last_source: Last command request source
  41. * @last_id: Last command from connection manager
  42. * @cmd_id_lock: lock to update and read last command source
  43. * @ext_priv: legacy data pointer.
  44. */
  45. struct osif_cm_info {
  46. enum wlan_cm_source last_source;
  47. wlan_cm_id last_id;
  48. struct qdf_spinlock cmd_id_lock;
  49. void *ext_priv;
  50. };
  51. /**
  52. * struct vdev_osif_priv - OS private structure of vdev
  53. * @wdev: wireless device handle
  54. * @legacy_osif_priv: legacy osif private handle
  55. * @osif_tdls: osif tdls info
  56. * @cm_info: osif connection manager info
  57. */
  58. struct vdev_osif_priv {
  59. struct wireless_dev *wdev;
  60. void *legacy_osif_priv;
  61. struct osif_tdls_vdev *osif_tdls;
  62. struct osif_cm_info cm_info;
  63. };
  64. #endif