Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3246424pxk; Mon, 21 Sep 2020 08:47:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAbhF9U2s5RYJbEqnXoEc9PVmWRV/7T/KAOCsqBR/leNhhDaSBm1XMaJCOgJ/NIyg0Tt1h X-Received: by 2002:a05:6402:17b9:: with SMTP id j25mr254989edy.203.1600703232348; Mon, 21 Sep 2020 08:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600703232; cv=none; d=google.com; s=arc-20160816; b=Xe8yv9cRLXDM2brCVjlVBlHFqwvYNWhapSfMUBF0DNNEtfkc1v4DKn9Sk21w956xlq w4H0pcw6JAauhQHk/5HSpcXiAcw6GnCKCio2O21YGCC2bM8yn9e2N46hm5CSyUF89Aq0 SU0YIvTucftiNxSO+kd0vX9ZDVmvT53g/QauS68iqKPoOZdvlwV3p0lqEgpsdRbdTe2s i+eWusYpszH/6Uiau9uO0Hd9B+51YOyrmeBP3Zii79gRkd2XUab9x2RaSMx5a+8uj+8x YYoDqQa27GuZb5kH/9EQxHYrzT0urupztNNDtQFbKPRKlT5I7p6uLUOn+iwq7+8IoQjg a9xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=S70rH2hZ0k5ktmjPDxH4K3+WfVQ1DMepSPdVd/chVYg=; b=HAKyjLkCDJGQlwUSSVHKO9IijstdgsJbFG9N0Y6LiLhede5Ah4cEE/gScRk0EsD5gp j3lM/K4G5e6fhaI97CP21ymyVsWI23EHG04d11Tav2FmZW9qLK9PKtowKBUaxYmDt+4o f4Zfgmluy8K6Qu3nzDdb81cI8YfOg2lh9VedwJk/PRtTA2BBvNNVQIM/lVs01U3seO+t vs4r2g/49lYyvvJPwfeR7aiuOhxnxz2WWUDx8CVthMMVeNDVZZx6V342IlcM9AXa2nIj 1KGyDr6mZbxEyBKUctiVx9uWB6k0lmqhD5o+yZSmVBslNxb2RYk+x+89G5D1sGLKrwhO GtYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=oRyMur1f; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si8983352edj.307.2020.09.21.08.46.40; Mon, 21 Sep 2020 08:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=oRyMur1f; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbgIUPpw (ORCPT + 99 others); Mon, 21 Sep 2020 11:45:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726749AbgIUPpw (ORCPT ); Mon, 21 Sep 2020 11:45:52 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CECE4C061755 for ; Mon, 21 Sep 2020 08:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S70rH2hZ0k5ktmjPDxH4K3+WfVQ1DMepSPdVd/chVYg=; b=oRyMur1fHOTDdiDY6ll444Ziuy FmyGQCT39nkVatK13eBOBKrHkjRfkXlLL6PzTh+XCvw75Yn2AxfUzFIf/H2/cfQh+FDr6Jwfd0cGX bw6g/YtW6hExv4Nvc9d6003MKDeUeXNH4UzyawQMWQge7NWeVk3L8hZ0EeqdJJcyWntg=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kKO0g-0007Ef-Qm; Mon, 21 Sep 2020 17:45:46 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Georgi Valkov Subject: [PATCH] mac80211: fix regression in sta connection monitor Date: Mon, 21 Sep 2020 17:45:45 +0200 Message-Id: <20200921154545.91971-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When the nulldata frame was acked, the probe send count needs to be reset, otherwise it will keep increasing until the connection is considered dead, even though it fine. Fixes: 9abf4e49830d ("mac80211: optimize station connection monitor") Reported-by: Georgi Valkov Signed-off-by: Felix Fietkau --- net/mac80211/mlme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 50a9b9025725..7c04d8e30482 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2508,7 +2508,9 @@ void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata, !sdata->u.mgd.probe_send_count) return; - if (!ack) + if (ack) + sdata->u.mgd.probe_send_count = 0; + else sdata->u.mgd.nullfunc_failed = true; ieee80211_queue_work(&sdata->local->hw, &sdata->work); } -- 2.28.0