aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_roboswitch.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-07 20:05:43 (GMT)
committerJouni Malinen <j@w1.fi>2009-03-07 20:05:43 (GMT)
commit4ef1e644eb7f2a1b2b36e7785387d4ffdfc50e15 (patch)
treee65116869e83637894c104b8e734c19186ef0b2c /src/drivers/driver_roboswitch.c
parented843aaa33f701a3ae6db7889f9d28a671f7a134 (diff)
downloadhostap-4ef1e644eb7f2a1b2b36e7785387d4ffdfc50e15.zip
hostap-4ef1e644eb7f2a1b2b36e7785387d4ffdfc50e15.tar.gz
hostap-4ef1e644eb7f2a1b2b36e7785387d4ffdfc50e15.tar.bz2
Determiner whether driver is wired at runtime based on capabilities
Do not use just the driver name for this since driver_ndis.c supports both wired and wireless NDIS drivers and needs to indicate the driver type after initialization.
Diffstat (limited to 'src/drivers/driver_roboswitch.c')
-rw-r--r--src/drivers/driver_roboswitch.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/driver_roboswitch.c b/src/drivers/driver_roboswitch.c
index 4394ddb..77fc80e 100644
--- a/src/drivers/driver_roboswitch.c
+++ b/src/drivers/driver_roboswitch.c
@@ -172,6 +172,15 @@ static int wpa_driver_roboswitch_get_bssid(void *priv, u8 *bssid)
}
+static int wpa_driver_roboswitch_get_capa(void *priv,
+ struct wpa_driver_capa *capa)
+{
+ os_memset(capa, 0, sizeof(*capa));
+ capa->flags = WPA_DRIVER_FLAGS_WIRED;
+ return 0;
+}
+
+
static const char * wpa_driver_roboswitch_get_ifname(void *priv)
{
struct wpa_driver_roboswitch_data *drv = priv;
@@ -438,6 +447,7 @@ const struct wpa_driver_ops wpa_driver_roboswitch_ops = {
.desc = "wpa_supplicant roboswitch driver",
.get_ssid = wpa_driver_roboswitch_get_ssid,
.get_bssid = wpa_driver_roboswitch_get_bssid,
+ .get_capa = wpa_driver_roboswitch_get_capa,
.init = wpa_driver_roboswitch_init,
.deinit = wpa_driver_roboswitch_deinit,
.get_ifname = wpa_driver_roboswitch_get_ifname,