2 * WPA Supplicant - driver_wext exported functions
3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
20 struct wpa_driver_wext_data
{
25 char ifname
[IFNAMSIZ
+ 1];
30 size_t assoc_req_ies_len
;
32 size_t assoc_resp_ies_len
;
33 struct wpa_driver_capa capa
;
35 int we_version_compiled
;
37 /* for set_auth_alg fallback */
39 int auth_alg_fallback
;
43 char mlmedev
[IFNAMSIZ
+ 1];
45 int scan_complete_events
;
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
);
63 void wpa_driver_wext_scan_timeout(void *eloop_ctx
, void *timeout_ctx
);
65 int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data
*drv
,
68 void * wpa_driver_wext_init(void *ctx
, const char *ifname
);
69 void wpa_driver_wext_deinit(void *priv
);
71 int wpa_driver_wext_set_operstate(void *priv
, int state
);
72 int wpa_driver_wext_get_version(struct wpa_driver_wext_data
*drv
);
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
,
79 int wpa_driver_wext_cipher2wext(int cipher
);
80 int wpa_driver_wext_keymgmt2wext(int keymgmt
);
82 #endif /* DRIVER_WEXT_H */