aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wext.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-10-21 16:11:07 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-21 16:11:07 (GMT)
commitbd43938102a610939a528b34b04d6943469dd1e7 (patch)
treeaa5e807f12abe414e4ec35d02a46a65ecbe4b79f /src/drivers/driver_wext.c
parent724950836f7c4499a226d3b6a81c7d26f66a0a3f (diff)
downloadhostap-bd43938102a610939a528b34b04d6943469dd1e7.zip
hostap-bd43938102a610939a528b34b04d6943469dd1e7.tar.gz
hostap-bd43938102a610939a528b34b04d6943469dd1e7.tar.bz2
wext: Do not set SSID on disconnect on Android
Some drivers seem to try to associate using the random SSID, so do not use this hack on Android.
Diffstat (limited to 'src/drivers/driver_wext.c')
-rw-r--r--src/drivers/driver_wext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index 6f58175..7c383f3 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -1824,8 +1824,10 @@ static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv)
{
struct iwreq iwr;
const u8 null_bssid[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 };
+#ifndef ANDROID
u8 ssid[32];
int i;
+#endif /* ANDROID */
/*
* Only force-disconnect when the card is in infrastructure mode,
@@ -1846,6 +1848,7 @@ static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv)
"selection on disconnect");
}
+#ifndef ANDROID
if (drv->cfg80211) {
/*
* cfg80211 supports SIOCSIWMLME commands, so there is
@@ -1871,6 +1874,7 @@ static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv)
wpa_printf(MSG_DEBUG, "WEXT: Failed to set bogus "
"SSID to disconnect");
}
+#endif /* ANDROID */
}
}