]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
IBSS RSN: Do not start if not yet connected to IBSS
authorXi Chen <Xi.Chen2@Atheros.com>
Wed, 16 Mar 2011 14:26:26 +0000 (16:26 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 16 Mar 2011 14:26:26 +0000 (16:26 +0200)
This is used to avoid starting IBSS RSN processing with a peer before
the IBSS connection itself has been completed.

wpa_supplicant/events.c

index 1704e06704dd25434ee5b9ba100697ff5648ba99..5792eb59189f5f8f1daca63a09e1066f6ba3479b 100644 (file)
@@ -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;