~ubuntu-branches/ubuntu/utopic/wpasupplicant/utopic

« back to all changes in this revision

Viewing changes to .pc/30_cfg80211_association_optimisation.patch/src/drivers/driver_wext.h

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2010-02-27 11:30:53 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100227113053-axxieaw3hmuqbqls
Tags: 0.6.10-2
* Switch to source format 3.0 (quilt), drop quilt build dependency
  and remove '--with quilt' from dh command in debian/rules.
* Fix "FTBFS on kfreebsd-gnu" with addition of 21_kfreebsd.patch.
  Thanks to work by Stefan Lippers-Hollmann and Petr Salinger.
  (Closes: #480572)
* Disable experimental feature CONFIG_IEEE80211W (management frame
  protection) due to it not being supported by any driver but ath9k
  and it generating ioctl errors which cause much concern among users
  for little to no benefit.
* Add traling blank line to debian/NEWS to assist apt-listchanges as
  per lintian advice.
* Cherry pick 30_cfg80211_association_optimisation.patch from upstream
  git. Add cfg80211-specific optimization to avoid silly behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * WPA Supplicant - driver_wext exported functions
 
3
 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License version 2 as
 
7
 * published by the Free Software Foundation.
 
8
 *
 
9
 * Alternatively, this software may be distributed under the terms of BSD
 
10
 * license.
 
11
 *
 
12
 * See README and COPYING for more details.
 
13
 */
 
14
 
 
15
#ifndef DRIVER_WEXT_H
 
16
#define DRIVER_WEXT_H
 
17
 
 
18
#include <net/if.h>
 
19
 
 
20
struct wpa_driver_wext_data {
 
21
        void *ctx;
 
22
        int event_sock;
 
23
        int ioctl_sock;
 
24
        int mlme_sock;
 
25
        char ifname[IFNAMSIZ + 1];
 
26
        int ifindex;
 
27
        int ifindex2;
 
28
        int if_removed;
 
29
        u8 *assoc_req_ies;
 
30
        size_t assoc_req_ies_len;
 
31
        u8 *assoc_resp_ies;
 
32
        size_t assoc_resp_ies_len;
 
33
        struct wpa_driver_capa capa;
 
34
        int has_capability;
 
35
        int we_version_compiled;
 
36
 
 
37
        /* for set_auth_alg fallback */
 
38
        int use_crypt;
 
39
        int auth_alg_fallback;
 
40
 
 
41
        int operstate;
 
42
 
 
43
        char mlmedev[IFNAMSIZ + 1];
 
44
 
 
45
        int scan_complete_events;
 
46
};
 
47
 
 
48
int wpa_driver_wext_get_ifflags(struct wpa_driver_wext_data *drv, int *flags);
 
49
int wpa_driver_wext_set_ifflags(struct wpa_driver_wext_data *drv, int flags);
 
50
int wpa_driver_wext_get_bssid(void *priv, u8 *bssid);
 
51
int wpa_driver_wext_set_bssid(void *priv, const u8 *bssid);
 
52
int wpa_driver_wext_get_ssid(void *priv, u8 *ssid);
 
53
int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len);
 
54
int wpa_driver_wext_set_freq(void *priv, int freq);
 
55
int wpa_driver_wext_set_mode(void *priv, int mode);
 
56
int wpa_driver_wext_set_key(void *priv, wpa_alg alg,
 
57
                            const u8 *addr, int key_idx,
 
58
                            int set_tx, const u8 *seq, size_t seq_len,
 
59
                            const u8 *key, size_t key_len);
 
60
int wpa_driver_wext_scan(void *priv, const u8 *ssid, size_t ssid_len);
 
61
struct wpa_scan_results * wpa_driver_wext_get_scan_results(void *priv);
 
62
 
 
63
void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx);
 
64
 
 
65
int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data *drv,
 
66
                                        const char *ifname);
 
67
 
 
68
void * wpa_driver_wext_init(void *ctx, const char *ifname);
 
69
void wpa_driver_wext_deinit(void *priv);
 
70
 
 
71
int wpa_driver_wext_set_operstate(void *priv, int state);
 
72
int wpa_driver_wext_get_version(struct wpa_driver_wext_data *drv);
 
73
 
 
74
int wpa_driver_wext_associate(void *priv,
 
75
                              struct wpa_driver_associate_params *params);
 
76
int wpa_driver_wext_get_capa(void *priv, struct wpa_driver_capa *capa);
 
77
int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv,
 
78
                                   int idx, u32 value);
 
79
int wpa_driver_wext_cipher2wext(int cipher);
 
80
int wpa_driver_wext_keymgmt2wext(int keymgmt);
 
81
 
 
82
#endif /* DRIVER_WEXT_H */