driver_ndis.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * WPA Supplicant - Windows/NDIS driver interface
  3. * Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef DRIVER_NDIS_H
  9. #define DRIVER_NDIS_H
  10. #ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  11. struct ndis_events_data;
  12. struct ndis_events_data * ndis_events_init(HANDLE *read_pipe, HANDLE *event,
  13. const char *ifname,
  14. const char *desc);
  15. void ndis_events_deinit(struct ndis_events_data *events);
  16. #endif /* CONFIG_NDIS_EVENTS_INTEGRATED */
  17. struct ndis_pmkid_entry {
  18. struct ndis_pmkid_entry *next;
  19. u8 bssid[ETH_ALEN];
  20. u8 pmkid[16];
  21. };
  22. struct wpa_driver_ndis_data {
  23. void *ctx;
  24. char ifname[100]; /* GUID: {7EE3EFE5-C165-472F-986D-F6FBEDFE8C8D} */
  25. #ifdef _WIN32_WCE
  26. TCHAR *adapter_name;
  27. HANDLE event_queue; /* NDISUIO notifier MsgQueue */
  28. HANDLE connected_event; /* WpaSupplicantConnected event */
  29. #endif /* _WIN32_WCE */
  30. u8 own_addr[ETH_ALEN];
  31. #ifdef CONFIG_USE_NDISUIO
  32. HANDLE ndisuio;
  33. #else /* CONFIG_USE_NDISUIO */
  34. LPADAPTER adapter;
  35. #endif /* CONFIG_USE_NDISUIO */
  36. u8 bssid[ETH_ALEN];
  37. int has_capability;
  38. int no_of_pmkid;
  39. int radio_enabled;
  40. struct wpa_driver_capa capa;
  41. struct ndis_pmkid_entry *pmkid;
  42. char *adapter_desc;
  43. int wired;
  44. int native80211;
  45. int mode;
  46. int wzc_disabled;
  47. int oid_bssid_set;
  48. #ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  49. HANDLE events_pipe, event_avail;
  50. struct ndis_events_data *events;
  51. #endif /* CONFIG_NDIS_EVENTS_INTEGRATED */
  52. };
  53. #endif /* DRIVER_NDIS_H */