From patchwork Tue Mar 12 00:47:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 226729 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id BCCE52C029B for ; Tue, 12 Mar 2013 11:47:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id AF0F09C19E; Mon, 11 Mar 2013 20:47:54 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aUUKs2fsfGwf; Mon, 11 Mar 2013 20:47:54 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 4A7939C241; Mon, 11 Mar 2013 20:47:50 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 9D5999C241 for ; Mon, 11 Mar 2013 20:47:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ulvGH24lWkQG for ; Mon, 11 Mar 2013 20:47:43 -0400 (EDT) Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id BB5E59C19E for ; Mon, 11 Mar 2013 20:47:43 -0400 (EDT) Received: by nf-2.local (Postfix, from userid 501) id 2302B2A7EBA4; Tue, 12 Mar 2013 01:47:41 +0100 (CET) From: Felix Fietkau To: hostap@lists.shmoo.com Subject: [PATCH] hostap: fix client reassociation after disconnect due to ACK failure Date: Tue, 12 Mar 2013 01:47:41 +0100 Message-Id: <1363049261-57285-1-git-send-email-nbd@openwrt.org> X-Mailer: git-send-email 1.8.0.2 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Clear WLAN_STA_ASSOC_REQ_OK, otherwise no Class 3 frame will be sent to the disconnected STA in response to data frames. Signed-hostap: Felix Fietkau --- src/ap/sta_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index 8ada121..cbafb47 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -576,7 +576,7 @@ void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, { wpa_printf(MSG_DEBUG, "%s: disassociate STA " MACSTR, hapd->conf->iface, MAC2STR(sta->addr)); - sta->flags &= ~WLAN_STA_ASSOC; + sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_ASSOC_REQ_OK); ap_sta_set_authorized(hapd, sta, 0); sta->timeout_next = STA_DEAUTH; wpa_printf(MSG_DEBUG, "%s: reschedule ap_handle_timer timeout "