~ubuntu-branches/ubuntu/intrepid/wpasupplicant/intrepid

« back to all changes in this revision

Viewing changes to driver_ndis.h

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2006-06-27 20:29:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060627202933-hy1vnckrb4bz62rd
Tags: 0.5.4-1
* New upstream release.
* WPA_CRTL_DIR environment variable is now exported to action scripts, we
  will use it to print a status report after a CONNECTED event.
* Make logfile contents easier to read by adding a break between each ACTION
  event.
* Recommend dhcp3-client, it handles consecutive wpa_action events with more
  grace than dhcp-client by not starting multiple dhclient processes on the
  same interface.
* Don't remove wpa_action logfile on 'stop'.
* Enhance wpa_action(8) to better explain the concept of a LOGICAL
  interface.
* Install wpa_passphrase to /bin. (Closes: #373948)
* Manpages have been slightly enhanced, and now briefly explain wpa_cli
  action environment variables and wpa_supplicant -C and -g options.
  (Closes: #372615)
* Rename wpa_cli daemon pidfile to wpa_action.IFACE.pid for wpa-roam.
* Further env variable testing cleanups to ifupdown.sh.
* Global rename of WPA_COMMON_CTRL_IFACE to WPA_CTRL_DIR, as this is used
  for the same purposes upstream.
* No longer penalise users for not having ctrl_interface explicitly
  contained within their wpa_supplicant.conf. (Closes: #375599)
* Move WPA_ACTION_SCRIPT sanity checking into init_wpa_supplicant() to avoid
  ifupdown.sh exiting when bringing down an interface when ifup previously
  failed due to a missing or non-executable action script.
* Add numerous code comments to ifupdown.sh.
* Move WPA_CLI_OPTIONS and WPA_SUP_OPTIONS into their respective init()
  functions.
* wpa_action now logs 'stop' events to file, updated manpage.
* Split wpa_action logging into two parts, event and environment. Only
  wpa_cli events will echo env var's.
* wpa_action exits with retval of ifdown command on 'stop' event.
* Add workaround for sendsigs (initscripts) terminating wpa_supplicant
  processes before networking is shutdown gracefully. An init script
  wpa-ifupdown is called at sequence number 15 in runlevels 0 and 6 to bring
  down all interfaces that were started via ifupdown.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * WPA Supplicant - Windows/NDIS driver interface
3
 
 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
 
3
 * Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi>
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License version 2 as
15
15
#ifndef DRIVER_NDIS_H
16
16
#define DRIVER_NDIS_H
17
17
 
 
18
#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
 
19
struct ndis_events_data;
 
20
struct ndis_events_data * ndis_events_init(HANDLE *read_pipe, HANDLE *event);
 
21
void ndis_events_deinit(struct ndis_events_data *events);
 
22
#endif /* CONFIG_NDIS_EVENTS_INTEGRATED */
 
23
 
18
24
struct ndis_pmkid_entry {
19
25
        struct ndis_pmkid_entry *next;
20
26
        u8 bssid[ETH_ALEN];
23
29
 
24
30
struct wpa_driver_ndis_data {
25
31
        void *ctx;
26
 
        char ifname[100];
 
32
        char ifname[100]; /* GUID: {7EE3EFE5-C165-472F-986D-F6FBEDFE8C8D} */
27
33
        u8 own_addr[ETH_ALEN];
 
34
#ifdef CONFIG_USE_NDISUIO
 
35
        HANDLE ndisuio;
 
36
#else /* CONFIG_USE_NDISUIO */
28
37
        LPADAPTER adapter;
 
38
#endif /* CONFIG_USE_NDISUIO */
29
39
        u8 bssid[ETH_ALEN];
30
40
 
31
41
        int has_capability;
33
43
        int radio_enabled;
34
44
        struct wpa_driver_capa capa;
35
45
        struct ndis_pmkid_entry *pmkid;
36
 
        int event_sock;
37
46
        char *adapter_desc;
38
47
        int wired;
 
48
        int mode;
 
49
        int wzc_disabled;
 
50
        int oid_bssid_set;
 
51
#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
 
52
        HANDLE events_pipe, event_avail;
 
53
        struct ndis_events_data *events;
 
54
#else /* CONFIG_NDIS_EVENTS_INTEGRATED */
 
55
        int event_sock;
 
56
#endif /* CONFIG_NDIS_EVENTS_INTEGRATED */
39
57
};
40
58
 
41
59
#endif /* DRIVER_NDIS_H */