wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
driver_wext.h
Go to the documentation of this file.
1 
5 #ifndef DRIVER_WEXT_H
6 #define DRIVER_WEXT_H
7 
8 #include <net/if.h>
9 
11  void *ctx;
12  struct netlink_data *netlink;
13  int ioctl_sock;
14  int mlme_sock;
15  char ifname[IFNAMSIZ + 1];
16  char phyname[32];
17  int ifindex;
18  int ifindex2;
19  int if_removed;
20  int if_disabled;
21  struct rfkill_data *rfkill;
22  u8 *assoc_req_ies;
23  size_t assoc_req_ies_len;
24  u8 *assoc_resp_ies;
25  size_t assoc_resp_ies_len;
26  struct wpa_driver_capa capa;
27  int has_capability;
28  int we_version_compiled;
29 
30  /* for set_auth_alg fallback */
31  int use_crypt;
32  int auth_alg_fallback;
33 
34  int operstate;
35 
36  char mlmedev[IFNAMSIZ + 1];
37 
38  int scan_complete_events;
39 
40  int cfg80211; /* whether driver is using cfg80211 */
41 
42  u8 max_level;
43 };
44 
45 int wpa_driver_wext_get_bssid(void *priv, u8 *bssid);
46 int wpa_driver_wext_set_bssid(void *priv, const u8 *bssid);
47 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid);
48 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len);
49 int wpa_driver_wext_set_freq(void *priv, int freq);
50 int wpa_driver_wext_set_mode(void *priv, int mode);
51 int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg,
52  const u8 *addr, int key_idx,
53  int set_tx, const u8 *seq, size_t seq_len,
54  const u8 *key, size_t key_len);
55 int wpa_driver_wext_scan(void *priv, struct wpa_driver_scan_params *params);
57 
58 void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx);
59 
60 int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data *drv,
61  const char *ifname);
62 
63 void * wpa_driver_wext_init(void *ctx, const char *ifname);
64 void wpa_driver_wext_deinit(void *priv);
65 
66 int wpa_driver_wext_set_operstate(void *priv, int state);
67 int wpa_driver_wext_get_version(struct wpa_driver_wext_data *drv);
68 
69 int wpa_driver_wext_associate(void *priv,
70  struct wpa_driver_associate_params *params);
71 int wpa_driver_wext_get_capa(void *priv, struct wpa_driver_capa *capa);
72 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv,
73  int idx, u32 value);
74 int wpa_driver_wext_cipher2wext(int cipher);
75 int wpa_driver_wext_keymgmt2wext(int keymgmt);
76 
77 #endif /* DRIVER_WEXT_H */
void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx)
Scan timeout to report scan completion.
Definition: driver_wext.c:1074
int wpa_driver_wext_get_ssid(void *priv, u8 *ssid)
Get SSID, SIOCGIWESSID.
Definition: driver_wext.c:122
int wpa_driver_wext_set_freq(void *priv, int freq)
Set frequency/channel, SIOCSIWFREQ.
Definition: driver_wext.c:208
int wpa_driver_wext_set_bssid(void *priv, const u8 *bssid)
Set BSSID, SIOCSIWAP.
Definition: driver_wext.c:93
struct wpa_scan_results * wpa_driver_wext_get_scan_results(void *priv)
Fetch the latest scan results.
Definition: driver_wext.c:1502
int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len)
Set SSID, SIOCSIWESSID.
Definition: driver_wext.c:161
Scan parameters Data for struct wpa_driver_ops::scan2().
Definition: driver.h:306
void * wpa_driver_wext_init(void *ctx, const char *ifname)
Initialize WE driver interface.
Definition: driver_wext.c:795
Association parameters Data for struct wpa_driver_ops::associate().
Definition: driver.h:578
int wpa_driver_wext_get_bssid(void *priv, u8 *bssid)
Get BSSID, SIOCGIWAP.
Definition: driver_wext.c:68
void wpa_driver_wext_deinit(void *priv)
Deinitialize WE driver interface.
Definition: driver_wext.c:1034
Scan results.
Definition: driver.h:277
int wpa_driver_wext_scan(void *priv, struct wpa_driver_scan_params *params)
Request the driver to initiate scan.
Definition: driver_wext.c:1087
Driver capability information.
Definition: driver.h:1196
int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len)
Configure encryption key.
Definition: driver_wext.c:1834
int wpa_driver_wext_set_mode(void *priv, int mode)
Set wireless mode (infra/adhoc), SIOCSIWMODE.
Definition: driver_wext.c:2268
Definition: rfkill.c:42
Definition: driver_wext.h:10