SME: Do not process disassoc frame unless SME is used

This avoids an infinite loop with driver_test.c when using IBSS.
This commit is contained in:
Jouni Malinen 2009-12-04 21:44:13 +02:00
parent 3680a5dbbf
commit 0e379654b0

View File

@ -1384,7 +1384,8 @@ void wpa_supplicant_event(void *ctx, wpa_event_type event,
wpa_supplicant_event_assoc(wpa_s, data); wpa_supplicant_event_assoc(wpa_s, data);
break; break;
case EVENT_DISASSOC: case EVENT_DISASSOC:
sme_event_disassoc(wpa_s, data); if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
sme_event_disassoc(wpa_s, data);
/* fall through */ /* fall through */
case EVENT_DEAUTH: case EVENT_DEAUTH:
wpa_supplicant_event_disassoc(wpa_s); wpa_supplicant_event_disassoc(wpa_s);