]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow EAPOL frames from pre-authenticating station to be processed
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 8 Oct 2010 12:49:12 +0000 (15:49 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 27 Oct 2010 08:34:29 +0000 (11:34 +0300)
src/ap/ieee802_1x.c

index a93581678c2efa3286d80683b9e508df7c4293c4..1c9ee7baf78b08dd7259dd835c893e4bc6a2adf0 100644 (file)
@@ -681,9 +681,9 @@ void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
        wpa_printf(MSG_DEBUG, "IEEE 802.1X: %lu bytes from " MACSTR,
                   (unsigned long) len, MAC2STR(sa));
        sta = ap_get_sta(hapd, sa);
-       if (!sta || !(sta->flags & WLAN_STA_ASSOC)) {
+       if (!sta || !(sta->flags & (WLAN_STA_ASSOC | WLAN_STA_PREAUTH))) {
                wpa_printf(MSG_DEBUG, "IEEE 802.1X data frame from not "
-                          "associated STA");
+                          "associated/Pre-authenticating STA");
                return;
        }