From: Xi Chen Date: Wed, 16 Mar 2011 14:26:26 +0000 (+0200) Subject: IBSS RSN: Do not start if not yet connected to IBSS X-Git-Tag: hostap-1-bp~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df4182450195541a4aecbdb1f64a623ae1387d74;p=thirdparty%2Fhostap.git IBSS RSN: Do not start if not yet connected to IBSS This is used to avoid starting IBSS RSN processing with a peer before the IBSS connection itself has been completed. --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 1704e0670..5792eb591 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1637,6 +1637,8 @@ static void wpa_supplicant_event_ibss_rsn_start(struct wpa_supplicant *wpa_s, union wpa_event_data *data) { struct wpa_ssid *ssid; + if (wpa_s->wpa_state < WPA_ASSOCIATED) + return; if (data == NULL) return; ssid = wpa_s->current_ssid;