00001
00016 #ifndef DRIVER_WEXT_H
00017 #define DRIVER_WEXT_H
00018
00019 struct wpa_driver_wext_data;
00020
00021 int wpa_driver_wext_get_ifflags(struct wpa_driver_wext_data *drv, int *flags);
00022 int wpa_driver_wext_set_ifflags(struct wpa_driver_wext_data *drv, int flags);
00023 int wpa_driver_wext_get_bssid(void *priv, u8 *bssid);
00024 int wpa_driver_wext_set_bssid(void *priv, const u8 *bssid);
00025 int wpa_driver_wext_get_ssid(void *priv, u8 *ssid);
00026 int wpa_driver_wext_set_ssid(void *priv, const u8 *ssid, size_t ssid_len);
00027 int wpa_driver_wext_set_freq(void *priv, int freq);
00028 int wpa_driver_wext_set_mode(void *priv, int mode);
00029 int wpa_driver_wext_set_key(void *priv, wpa_alg alg,
00030 const u8 *addr, int key_idx,
00031 int set_tx, const u8 *seq, size_t seq_len,
00032 const u8 *key, size_t key_len);
00033 int wpa_driver_wext_scan(void *priv, const u8 *ssid, size_t ssid_len);
00034 int wpa_driver_wext_get_scan_results(void *priv,
00035 struct wpa_scan_result *results,
00036 size_t max_size);
00037
00038 void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx);
00039
00040 int wpa_driver_wext_alternative_ifindex(struct wpa_driver_wext_data *drv,
00041 const char *ifname);
00042
00043 void * wpa_driver_wext_init(void *ctx, const char *ifname);
00044 void wpa_driver_wext_deinit(void *priv);
00045
00046 int wpa_driver_wext_set_operstate(void *priv, int state);
00047 int wpa_driver_wext_get_version(struct wpa_driver_wext_data *drv);
00048
00049 #endif
00050