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.
This commit is contained in:
parent
724950836f
commit
bd43938102
1 changed files with 4 additions and 0 deletions
|
@ -1824,8 +1824,10 @@ static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv)
|
||||||
{
|
{
|
||||||
struct iwreq iwr;
|
struct iwreq iwr;
|
||||||
const u8 null_bssid[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 };
|
const u8 null_bssid[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 };
|
||||||
|
#ifndef ANDROID
|
||||||
u8 ssid[32];
|
u8 ssid[32];
|
||||||
int i;
|
int i;
|
||||||
|
#endif /* ANDROID */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Only force-disconnect when the card is in infrastructure mode,
|
* 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");
|
"selection on disconnect");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef ANDROID
|
||||||
if (drv->cfg80211) {
|
if (drv->cfg80211) {
|
||||||
/*
|
/*
|
||||||
* cfg80211 supports SIOCSIWMLME commands, so there is
|
* 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 "
|
wpa_printf(MSG_DEBUG, "WEXT: Failed to set bogus "
|
||||||
"SSID to disconnect");
|
"SSID to disconnect");
|
||||||
}
|
}
|
||||||
|
#endif /* ANDROID */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue