Parcourir la source

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.
Xi Chen il y a 14 ans
Parent
commit
df41824501
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      wpa_supplicant/events.c

+ 2 - 0
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;