driver_wext.h
Go to the documentation of this file.
00001 /*
00002  * WPA Supplicant - driver_wext exported functions
00003  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef DRIVER_WEXT_H
00016 #define DRIVER_WEXT_H
00017 
00018 #include <net/if.h>
00019 
00020 struct wpa_driver_wext_data {
00021         void *ctx;
00022         struct netlink_data *netlink;
00023         int ioctl_sock;
00024         int mlme_sock;
00025         char ifname[IFNAMSIZ + 1];
00026         int ifindex;
00027         int ifindex2;
00028         int if_removed;
00029         u8 *assoc_req_ies;
00030         size_t assoc_req_ies_len;
00031         u8 *assoc_resp_ies;
00032         size_t assoc_resp_ies_len;
00033         struct wpa_driver_capa capa;
00034         int has_capability;
00035         int we_version_compiled;
00036 
00037         /* for set_auth_alg fallback */
00038         int use_crypt;
00039         int auth_alg_fallback;
00040 
00041         int operstate;
00042 
00043         char mlmedev[IFNAMSIZ + 1];
00044 
00045         int scan_complete_events;
00046 
00047         int cfg80211; /* whether driver is using cfg80211 */
00048 };
00049 
00050 int wpa_driver_wext_get_bssid(void *priv, u8 *bssid);
00051 int wpa_driver_wext_set_bssid(void *priv, const u8 *bssid);
00052 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid);
00053 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len);
00054 int wpa_driver_wext_set_freq(void *priv, int freq);
00055 int wpa_driver_wext_set_mode(void *priv, int mode);
00056 int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg,
00057                             const u8 *addr, int key_idx,
00058                             int set_tx, const u8 *seq, size_t seq_len,
00059                             const u8 *key, size_t key_len);
00060 int wpa_driver_wext_scan(void *priv, struct wpa_driver_scan_params *params);
00061 struct wpa_scan_results * wpa_driver_wext_get_scan_results(void *priv);
00062 
00063 void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx);
00064 
00065 int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data *drv,
00066                                         const char *ifname);
00067 
00068 void * wpa_driver_wext_init(void *ctx, const char *ifname);
00069 void wpa_driver_wext_deinit(void *priv);
00070 
00071 int wpa_driver_wext_set_operstate(void *priv, int state);
00072 int wpa_driver_wext_get_version(struct wpa_driver_wext_data *drv);
00073 
00074 int wpa_driver_wext_associate(void *priv,
00075                               struct wpa_driver_associate_params *params);
00076 int wpa_driver_wext_get_capa(void *priv, struct wpa_driver_capa *capa);
00077 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv,
00078                                    int idx, u32 value);
00079 int wpa_driver_wext_cipher2wext(int cipher);
00080 int wpa_driver_wext_keymgmt2wext(int keymgmt);
00081 
00082 #endif /* DRIVER_WEXT_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:37