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.
This commit is contained in:
Xi Chen 2011-03-16 16:26:26 +02:00 committed by Jouni Malinen
parent ee7ab173c7
commit df41824501

View file

@ -1637,6 +1637,8 @@ static void wpa_supplicant_event_ibss_rsn_start(struct wpa_supplicant *wpa_s,
union wpa_event_data *data) union wpa_event_data *data)
{ {
struct wpa_ssid *ssid; struct wpa_ssid *ssid;
if (wpa_s->wpa_state < WPA_ASSOCIATED)
return;
if (data == NULL) if (data == NULL)
return; return;
ssid = wpa_s->current_ssid; ssid = wpa_s->current_ssid;