wlan_osif_priv.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (c) 2016-2017,2020 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. struct osif_scan_pdev;
  23. struct osif_tdls_vdev;
  24. /**
  25. * struct pdev_osif_priv - OS private structure
  26. * @wiphy: wiphy handle
  27. * @legacy_osif_priv: legacy osif private handle
  28. * @scan_priv: Scan related data used by cfg80211 scan
  29. * @nif: pdev net device
  30. */
  31. struct pdev_osif_priv {
  32. struct wiphy *wiphy;
  33. void *legacy_osif_priv;
  34. struct osif_scan_pdev *osif_scan;
  35. struct qdf_net_if *nif;
  36. };
  37. /**
  38. * struct osif_cm_command_info - osif connection manager command info
  39. * @last_source: Last command request source
  40. * @last_id: Cookie from connection manager
  41. * @cmd_id_lock: lock to update and read last command source
  42. * @legacy: legacy data structure. Big data etc for MCC
  43. */
  44. #ifdef FEATURE_CM_ENABLE
  45. struct osif_cm_command_info {
  46. enum wlan_cm_source last_source;
  47. wlan_cm_id last_id;
  48. struct qdf_spinlock cmd_id_lock;
  49. void *legacy;
  50. };
  51. #endif
  52. /**
  53. * struct vdev_osif_priv - OS private structure of vdev
  54. * @wdev: wireless device handle
  55. * @legacy_osif_priv: legacy osif private handle
  56. * @connect_info: osif connection manager command 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. #ifdef FEATURE_CM_ENABLE
  63. struct osif_cm_command_info last_cmd_info;
  64. #endif
  65. };
  66. #endif