]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Initialize new_connection = 1 to fix wpa_supplicant AP mode operstate
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 15 Dec 2009 11:17:56 +0000 (13:17 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 15 Dec 2009 11:17:56 +0000 (13:17 +0200)
When setting up an AP with wpa_supplicant, the initial connection was
not necessarily setting oper state from DORMANT to UP which would be
blocking normal data frames. Fix this by initializing new_connection
to 1 so that even the first change to COMPLETED state will end up
setting oper state.

wpa_supplicant/wpa_supplicant.c

index f20f68cd0c541ab175f1f6b8ab218d2d85879f9d..d798661388020f4f70c1d4f7930a66d8e80e0185 100644 (file)
@@ -1915,6 +1915,7 @@ static struct wpa_supplicant * wpa_supplicant_alloc(void)
        if (wpa_s == NULL)
                return NULL;
        wpa_s->scan_req = 1;
+       wpa_s->new_connection = 1;
 
        return wpa_s;
 }