From: Dmitry Shmidt Date: Mon, 11 Apr 2011 22:58:40 +0000 (-0700) Subject: Set ap_scan to default in case of disassociation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad63e9e326763b86adc66a881fd3af0e1cb252b1;p=thirdparty%2Fhostap.git Set ap_scan to default in case of disassociation Signed-off-by: Dmitry Shmidt --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index aacf5b960..9b99b6ac8 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -160,6 +160,7 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s) return; wpa_supplicant_set_state(wpa_s, WPA_DISCONNECTED); + wpa_s->conf->ap_scan = DEFAULT_AP_SCAN; bssid_changed = !is_zero_ether_addr(wpa_s->bssid); os_memset(wpa_s->bssid, 0, ETH_ALEN); os_memset(wpa_s->pending_bssid, 0, ETH_ALEN); @@ -2115,7 +2116,7 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s, fast_reconnect_ssid = wpa_s->current_ssid; #endif /* CONFIG_NO_SCAN_PROCESSING */ } else if (wpa_s->wpa_state >= WPA_ASSOCIATING) - wpa_supplicant_req_scan(wpa_s, 0, 100000); + wpa_supplicant_req_scan(wpa_s, 0, 500000); else wpa_dbg(wpa_s, MSG_DEBUG, "Do not request new " "immediate scan");