#include "includes.h"
#include <sys/ioctl.h>
#include <net/if_arp.h>
#include "wireless_copy.h"
#include "common.h"
#include "driver.h"
#include "l2_packet.h"
#include "eloop.h"
#include "wpa_supplicant.h"
#include "priv_netlink.h"
#include "driver_wext.h"
#include "wpa.h"
Include dependency graph for driver_wext.c:
Go to the source code of this file.
Functions | |
int | wpa_driver_wext_get_bssid (void *priv, u8 *bssid) |
Get BSSID, SIOCGIWAP. | |
int | wpa_driver_wext_set_bssid (void *priv, const u8 *bssid) |
Set BSSID, SIOCSIWAP. | |
int | wpa_driver_wext_get_ssid (void *priv, u8 *ssid) |
Get SSID, SIOCGIWESSID. | |
int | wpa_driver_wext_set_ssid (void *priv, const u8 *ssid, size_t ssid_len) |
Set SSID, SIOCSIWESSID. | |
int | wpa_driver_wext_set_freq (void *priv, int freq) |
Set frequency/channel, SIOCSIWFREQ. | |
int | wpa_driver_wext_get_ifflags (struct wpa_driver_wext_data *drv, int *flags) |
Get interface flags (SIOCGIFFLAGS). | |
int | wpa_driver_wext_set_ifflags (struct wpa_driver_wext_data *drv, int flags) |
Set interface flags (SIOCSIFFLAGS). | |
void * | wpa_driver_wext_init (void *ctx, const char *ifname) |
Initialize WE driver interface. | |
void | wpa_driver_wext_deinit (void *priv) |
Deinitialize WE driver interface. | |
void | wpa_driver_wext_scan_timeout (void *eloop_ctx, void *timeout_ctx) |
Scan timeout to report scan completion. | |
int | wpa_driver_wext_scan (void *priv, const u8 *ssid, size_t ssid_len) |
Request the driver to initiate scan. | |
int | wpa_driver_wext_get_scan_results (void *priv, struct wpa_scan_result *results, size_t max_size) |
Fetch the latest scan results. | |
int | wpa_driver_wext_set_key (void *priv, 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. | |
int | wpa_driver_wext_set_mode (void *priv, int mode) |
Set wireless mode (infra/adhoc), SIOCSIWMODE. | |
int | wpa_driver_wext_alternative_ifindex (struct wpa_driver_wext_data *drv, const char *ifname) |
int | wpa_driver_wext_set_operstate (void *priv, int state) |
int | wpa_driver_wext_get_version (struct wpa_driver_wext_data *drv) |
Variables | |
const struct wpa_driver_ops | wpa_driver_wext_ops |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
This file implements a driver interface for the Linux Wireless Extensions. When used with WE-18 or newer, this interface can be used as-is with number of drivers. In addition to this, some of the common functions in this file can be used by other driver interface implementations that use generic WE ioctls, but require private ioctls for some of the functionality.
Definition in file driver_wext.c.
|
Deinitialize WE driver interface.
Definition at line 952 of file driver_wext.c. Here is the call graph for this function: |
|
Get BSSID, SIOCGIWAP.
Definition at line 164 of file driver_wext.c. |
|
Get interface flags (SIOCGIFFLAGS).
Definition at line 819 of file driver_wext.c. |
|
Fetch the latest scan results.
Definition at line 1109 of file driver_wext.c. Here is the call graph for this function: |
|
Get SSID, SIOCGIWESSID.
Definition at line 220 of file driver_wext.c. |
|
Initialize WE driver interface.
Definition at line 862 of file driver_wext.c. Here is the call graph for this function: |
|
Request the driver to initiate scan.
Definition at line 1017 of file driver_wext.c. Here is the call graph for this function: |
|
Scan timeout to report scan completion.
Definition at line 1000 of file driver_wext.c. Here is the call graph for this function: |
|
Set BSSID, SIOCSIWAP.
Definition at line 190 of file driver_wext.c. |
|
Set frequency/channel, SIOCSIWFREQ.
Definition at line 306 of file driver_wext.c. |
|
Set interface flags (SIOCSIFFLAGS).
Definition at line 848 of file driver_wext.c. |
|
Configure encryption key.
Definition at line 1571 of file driver_wext.c. Here is the call graph for this function: |
|
Set wireless mode (infra/adhoc), SIOCSIWMODE.
Definition at line 1909 of file driver_wext.c. |
|
Set SSID, SIOCSIWESSID.
Definition at line 259 of file driver_wext.c. |