From: Jouni Malinen Date: Tue, 15 Dec 2009 11:17:56 +0000 (+0200) Subject: Initialize new_connection = 1 to fix wpa_supplicant AP mode operstate X-Git-Tag: hostap_0_7_1~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c302f20740fade2547b0e315d22fc14b93ec86d3;p=thirdparty%2Fhostap.git Initialize new_connection = 1 to fix wpa_supplicant AP mode operstate 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. --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index f20f68cd0..d79866138 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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; }