drv->assoc_req_ies = NULL;
os_free(drv->assoc_resp_ies);
drv->assoc_resp_ies = NULL;
+#ifdef ANDROID
+ if (!drv->skip_disconnect) {
+ drv->skip_disconnect = 1;
+#endif /* ANDROID */
wpa_supplicant_event(drv->ctx, EVENT_DISASSOC,
NULL);
+#ifdef ANDROID
+ }
+#endif /* ANDROID */
} else {
+#ifdef ANDROID
+ drv->skip_disconnect = 0;
+#endif /* ANDROID */
wpa_driver_wext_event_assoc_ies(drv);
wpa_supplicant_event(drv->ctx, EVENT_ASSOC,
NULL);
#ifdef ANDROID
drv->errors = 0;
drv->driver_is_started = TRUE;
+ drv->skip_disconnect = 0;
drv->bgscan_enabled = 0;
#endif /* ANDROID */
wpa_printf(MSG_DEBUG, "%s", __FUNCTION__);
+#ifdef ANDROID
+ drv->skip_disconnect = 0;
+#endif /* ANDROID */
+
if (drv->cfg80211) {
/*
* Stop cfg80211 from trying to associate before we are done