Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp473292pxk; Thu, 1 Oct 2020 07:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaFUuV3kz9SsgWb7Qs1zKA0OedhLfRpmq7T4FkezqvF5hq8UIHpsG73oviDg/kWA8De+3g X-Received: by 2002:a50:8e1e:: with SMTP id 30mr2714696edw.354.1601561010989; Thu, 01 Oct 2020 07:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601561010; cv=none; d=google.com; s=arc-20160816; b=OQs5LHRWmVPKQ6+zQWrRGpJWSzqgcboKqBMHvo/EUNcFfrcZvNc2z4uhc9uK3+hg+A yBD2iAJBGVMaz8cghgxhT9f5+6nlAVEFVE2F/qPBAvMxtgfDDAPOpy3kzm8nIYR4DHsc 9CBFcycDOqLAsRN3VQq3/hiQdW1Ovk1w3WXK0rm8Y5HrbbZb5V2Vbr5Hm6C9UbP7ZHov 4sm5C2/Jva4YR/HjkEZxsaj+hhvqNyqGib3XV6bDfjk5yzGq/nsaOYujQcBvtC9dfdJu K/T2OQBrAe4VH8ih3aQr3opyTFx8nvnMWNtyl8DA/+/yyDUeG6asYw98jsxLDVuwsX7a IVnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=+zImgXO6wVCewzurwjE3evEcT/e+cxgjf2RYMw+RLcA=; b=UQgK/tHhfV8n5/7m/Z6F5c8TXZ3jhcx+/5jx9zb1OiJY5397EzMgw+m0AQ9Hhr4b09 4xRsbj5rZGm/0gCzP608J+QFhVBOOzTvkDSErysLtc96yVta/fqOv/nYzKHb2YkiL4Y1 Eub5zFlBuff6axWbSIztSe4FtwX70Ma1pR5TiSlnxV0tum3W8QUNWbxEcNqNtqCVuvXg ItpY95fZcc8nCp+0HL6YXmVdLAM8wtXc4sNBTjoABs3K8KS+Ifvbz5jrkR+f4Wpaf0Vb 3riabsN7X/1mNdAkGIPjY+1+CQSIJep+w5uKBWuYF9SLb7xhdV9D4M+W9f8YOzRDz0Cm i7wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@abv.bg header.s=smtp-out header.b=xB9aJtXi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=abv.bg Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn25si3227650edb.268.2020.10.01.07.02.54; Thu, 01 Oct 2020 07:03:30 -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=pass header.i=@abv.bg header.s=smtp-out header.b=xB9aJtXi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=abv.bg Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732413AbgJAN7l (ORCPT + 99 others); Thu, 1 Oct 2020 09:59:41 -0400 Received: from pop36.abv.bg ([194.153.145.227]:59578 "EHLO pop36.abv.bg" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732263AbgJAN7k (ORCPT ); Thu, 1 Oct 2020 09:59:40 -0400 Received: from smtp.abv.bg (localhost [127.0.0.1]) by pop36.abv.bg (Postfix) with ESMTP id 7807B18052AE; Thu, 1 Oct 2020 16:59:34 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abv.bg; s=smtp-out; t=1601560774; bh=+zImgXO6wVCewzurwjE3evEcT/e+cxgjf2RYMw+RLcA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=xB9aJtXiO9v/DMPt5ZL3bsLnXg6uhI7PmEwrh5XY5iNYqcYv0aRxZVC60L0u37Sqn uSAMf4WcL5tqLIoGfDzBwPfWZLYBvEdaD8lJv9SQUeAIRQm46xqBhVwMECUcM62L45 HgrqBBOs+fLj8eEiKCIRvGJ29Px38BadNNXude8g= X-HELO: [192.168.192.3] Authentication-Results: smtp.abv.bg; auth=pass (plain) smtp.auth=gvalkov@abv.bg Received: from Unknown (HELO [192.168.192.3]) (87.118.177.198) by smtp.abv.bg (qpsmtpd/0.96) with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted); Thu, 01 Oct 2020 16:59:34 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: [PATCH] mac80211: fix regression in sta connection monitor From: Georgi Valkov In-Reply-To: <099b1679-87c4-1ac5-978b-a1110db93f54@nbd.name> Date: Thu, 1 Oct 2020 16:59:30 +0300 Cc: linux-wireless@vger.kernel.org, johannes@sipsolutions.net, openwrt-devel@lists.openwrt.org Content-Transfer-Encoding: quoted-printable Message-Id: <9F798A1A-4CBA-47E9-9F2A-E407EDEBCD90@abv.bg> References: <20200921154545.91971-1-nbd@nbd.name> <7A099B27-5278-4D2A-91A1-6B795CB0E221@abv.bg> <099b1679-87c4-1ac5-978b-a1110db93f54@nbd.name> To: Felix Fietkau X-Mailer: Apple Mail (2.3608.120.23.2.4) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Felix! I can confirm that the original regression is now fully resolved in v3 = of your patch. Further testing showed that the second issue: group key handshake failed = (RSN) after 4 tries is unrelated. Apparently OpenWRT does not support = group rekeying when WDS is used, so it always fails and should be = disabled: option wpa_group_rekey =E2=80=980=E2=80=99. Please excuse me for taking your time with the unrelated issue. There = was no way for me to know that, since the disconnect remained, and it = may take up to 24 hours to detect. Thank you for your help! Georgi > On 2020-09-22, at 11:56 AM, Felix Fietkau wrote: >=20 > On 2020-09-22 09:28, Georgi Valkov wrote: >> Hi Felix! >>=20 >> 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. >=20 > - Felix >=20