From df4182450195541a4aecbdb1f64a623ae1387d74 Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Wed, 16 Mar 2011 16:26:26 +0200 Subject: [PATCH] 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. --- wpa_supplicant/events.c | 2 ++ 1 file changed, 2 insertions(+) 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;