Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3771243pxk; Tue, 22 Sep 2020 01:59:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwcMBx2KEWZUkFqCgNn7CjAdQt2v3xQ0cuTRgHrCK2ANo8v4INyU3EddmRvY2VWPFpI+X2 X-Received: by 2002:a17:907:72cc:: with SMTP id du12mr3633422ejc.150.1600765177580; Tue, 22 Sep 2020 01:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600765177; cv=none; d=google.com; s=arc-20160816; b=aLympSJ7iVTPomfliNFwH3rBYRiJStnLW0VoDcs+w6+4vAowhnkRfeC/GiWvch/anJ +SyH7JouvUqfZA5VcKShtgPUiYAk60sEBx6jau/Ak25H91bKZZt/n59M+ffdqSYhpjfH v7q2f5E5k5tRs/o3tLehtWMVjjohS5PI5LWIbn+mEKt31kjH0dsdIiQLZ6cvwM40zGok +O0RMJvR1iisjG7LHspvX0/p++4AVmm6wCc56dRtYh56fQf9YtmqU7FM+CivvEtT5cLF rzc4pQZj59wNEoGphMkTEUEY4u8au5GYj2ey37ckkQWA56+04g0Pl6wTa1J5LpnaNchb WEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=kESNWF1ZBvp7P9WcL2yM/4SksmAQ+lF3sr0+wy7IryE=; b=VrXPLTZi6vufZl1RRO49ZNPngiRfmfMyHfPNWqrIgZpkzdB9/opnEPDc8xqZ8Y4tJl BvVHc3CpJKhBYWRTUowmaU9gAiPpBM4jOtYdt4Hk5yOITHZxAiIWVG0jLd5DKFK+Obk8 AkMRpkwIf9wDvpRM1ldYi/Fg1T/u21vTawFZo/gRZv3PSUQV1Mh7PROsO0sZkNukeybQ gcu+Y/pJKRgSDGRqIKZEFu7CRRDu6yj6pYwal0fo1dQ6uxheEI/dJGf9YhybvfL9z1hg O9k77MxXfgL2kiZR+GtYj/+lxZ5HP3n6GoEwoosR079jCUDfhO3ZWataU+lz9J7daTJs QQsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=R4YMkzq5; 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 k25si10140130edq.156.2020.09.22.01.59.04; Tue, 22 Sep 2020 01:59:37 -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=R4YMkzq5; 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 S1726486AbgIVI4R (ORCPT + 99 others); Tue, 22 Sep 2020 04:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgIVI4R (ORCPT ); Tue, 22 Sep 2020 04:56:17 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C42D6C061755 for ; Tue, 22 Sep 2020 01:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:Subject:From:References:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kESNWF1ZBvp7P9WcL2yM/4SksmAQ+lF3sr0+wy7IryE=; b=R4YMkzq5SKdew6eFd1lfdCoUHf T9e4iiYsHW3PDihwVBYzkuAOr3GVlPBxPy+7IfEZXFCUO3ilcOSVmucoFo/5HnDlJDzJN9hB1hd3F 3o/YHoiwgnvwkdEJnpXJ1vwv1jVjGZgSj8/rhJMXKwChOwTgutjGhEWBmRMf4ef63adk=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kKe5t-0000Fg-Kb; Tue, 22 Sep 2020 10:56:13 +0200 To: Georgi Valkov Cc: linux-wireless@vger.kernel.org, johannes@sipsolutions.net, openwrt-devel@lists.openwrt.org References: <20200921154545.91971-1-nbd@nbd.name> <7A099B27-5278-4D2A-91A1-6B795CB0E221@abv.bg> From: Felix Fietkau Subject: Re: [PATCH] mac80211: fix regression in sta connection monitor Message-ID: <099b1679-87c4-1ac5-978b-a1110db93f54@nbd.name> Date: Tue, 22 Sep 2020 10:56:13 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <7A099B27-5278-4D2A-91A1-6B795CB0E221@abv.bg> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-22 09:28, Georgi Valkov wrote: > Hi Felix! > > In the original code before the regression, as well as in the fix I > proposed, probe_send_count was always reset if ack is true, while in > your fix it will not be reset when non-null frames are received. The > connection failed again after 10 hours and the STA remained offline for > two minutes instead of two seconds. I should also note that I spent > multiple days testing the fix I proposed and I had no disconnects. > Please revise your fix again! Thanks for the info. Handling non-null frames in that function is incomplete, because it does not cover the 802.3 tx status path. I'll make v2 patch that checks the timestamp of the last ACK in ieee80211_sta_work instead. - Felix