Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2742506imj; Mon, 11 Feb 2019 07:49:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRsor2Mwiv5rj2NpBPshd6j0RqBV+CrDRfNsUlplXc3hVvX43pWWs76Id+QY7GvenvbLuJ X-Received: by 2002:aa7:819a:: with SMTP id g26mr28655295pfi.187.1549900183641; Mon, 11 Feb 2019 07:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900183; cv=none; d=google.com; s=arc-20160816; b=rSLClv8X7eDtu5eTKs0QOs5DZCRHZ2lmnoxHzaZqG+tgTrysyAP3PzOkr7o8PVVuIV NM5AKsqQkBiL4Mvxj5x25SXp7wmBdC6JwjS5yGvfPVCpNb8nizVj2D7OeciUhZiEig0/ p3954chd4UV0QxRa6ltFUwNDWoUoRy+bTu2iwukfG1BiMq6KR6O2L5C0H7IYewk0l+Wj /cSUhBikf4RmQZKQN3IJiksVYbMy0T7HCOvm/Xc5JDQ2qw2b7sd6sU2JTC+0cNuNFcZC il+WoQBO3gvRZcOAd7FIZiHBdT998iFVP+WopDL5qERU1MizOVu0ua0YQ3kDA27HLwke Nh5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=aU5MNBGnX152eDQmWMpQK2TdiKRA+CVWKKM69YyusYs=; b=JyxV/EkKqkvRQ9/Vp3iBZq/BNWG8uNusy8dWQN+HC8p9AKje6mbgaIZzyh6Fc9XA/w 6Ni9VGE7w2xH+HFKt86NqaJneereYhHFGXAGH1iLUMou0EOB+wo5d+mVkwdDEGSldZ1t pFs2+rHBOpF+Ijk2/t9icR7Gc5b+bDnrt51m+C3D2jp2wcZt0Rjzn/KeUMw+oEhXQxS0 NT/6lZjhPTbZVyALUDZAgUwnOqskR5JoupuuwMcnFK6mI1TGFA4TXuq6I/7H9LrzsXUc UPNbhdLLNURmql5PR5jiVDtnbOumGY6MfnABb9ABDWFPdi2rxH1yzCYd4waeCVGt5ef+ g6uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ncentric-com.20150623.gappssmtp.com header.s=20150623 header.b="wWbj/JvR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ncentric.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si9285368pgv.523.2019.02.11.07.49.27; Mon, 11 Feb 2019 07:49:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ncentric-com.20150623.gappssmtp.com header.s=20150623 header.b="wWbj/JvR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ncentric.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732745AbfBKPsf (ORCPT + 99 others); Mon, 11 Feb 2019 10:48:35 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44450 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732112AbfBKPse (ORCPT ); Mon, 11 Feb 2019 10:48:34 -0500 Received: by mail-ed1-f65.google.com with SMTP id y56so9243668edd.11 for ; Mon, 11 Feb 2019 07:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ncentric-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aU5MNBGnX152eDQmWMpQK2TdiKRA+CVWKKM69YyusYs=; b=wWbj/JvRDG0CdZ5ySV9rk2EBoLGCSBEcHg9W4y9vwPfTrV+rg6pTh1VGpoH7mONebD uwleVhIPuPHU48kmclLNjSbfzfJrd8Nub6B8tPXy4+lC2ciryffn2FSH8WEkaoBWIV2N 6VwVl2XNETLVj6GoybSrm8AjJg29qxLINpdIEYYoliY9i92Ib42cVHeGWjZQyJCD1ZMW gqmjVIjNUcVri89HG0r/DNuxkoAovUVz5qFRdghBZy7Aw7M/XW788K1IWt+uwYBOQ21F qpqXDyr7rDujCNiqLx60ZrUqOZUs6tDhvh70i904sUjb05rYwXUOfqB8GbH7xOn9w6Ov r+kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aU5MNBGnX152eDQmWMpQK2TdiKRA+CVWKKM69YyusYs=; b=A+7osk79JsG4OSDkCpYFCAzX7UqXlOAybzPn9pdkOfYZAG5AH55nqELTzPxYhFsAtU 1RRwV3Gl+XiozrmcZh1kFgLqftaaq2iYJaCZQV9ds87gPgVmy2xQco5pAM4Jj95Pwxf3 PMbUT2uZBb63qnkkMI+4lLxkhfLB/F8ojffo6Zq8J8t4naOGpbjugimMldJOe5FCbi1k b38W2HhMT4iuDEbRniX7gG3E8GZvSHxJBXO7jes29Cwx248xhgWeuTm8ryDJWjSDqCpv WhvFSGQ7HviLxy/Wtxxd71ovVM3FHpMsfXp13l3s3hQf5Q1DkwClRDTwWpr8hFCFcvKv br3w== X-Gm-Message-State: AHQUAubzGBJ09jr/UI46EpjUArgBIqTTdtebZ7IENyJ+7NpLyir6CL9K VCpDZU2Ifj+wA0XVjB1VoaI6HA== X-Received: by 2002:a50:bc12:: with SMTP id j18mr29715269edh.50.1549900111725; Mon, 11 Feb 2019 07:48:31 -0800 (PST) Received: from [192.168.3.176] (d515300d8.static.telenet.be. [81.83.0.216]) by smtp.gmail.com with ESMTPSA id ge15sm2427938ejb.35.2019.02.11.07.48.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 07:48:31 -0800 (PST) Subject: Re: [PATCH 4.20 018/352] ath9k: dynack: use authentication messages for late ack To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Lorenzo Bianconi , Kalle Valo , Sasha Levin References: <20190211141846.543045703@linuxfoundation.org> <20190211141847.541071852@linuxfoundation.org> From: Koen Vandeputte Message-ID: Date: Mon, 11 Feb 2019 16:48:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190211141847.541071852@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.02.19 15:14, Greg Kroah-Hartman wrote: > 4.20-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > [ Upstream commit 3831a2a0010c72e3956020cbf1057a1701a2e469 ] > > In order to properly support dynack in ad-hoc mode running > wpa_supplicant, take into account authentication frames for > 'late ack' detection. This patch has been tested on devices > mounted on offshore high-voltage stations connected through > ~24Km link > > Reported-by: Koen Vandeputte > Tested-by: Koen Vandeputte > Signed-off-by: Lorenzo Bianconi > Signed-off-by: Kalle Valo > Signed-off-by: Sasha Levin > --- > drivers/net/wireless/ath/ath9k/dynack.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath9k/dynack.c b/drivers/net/wireless/ath/ath9k/dynack.c > index 7334c9b09e82..cc0dc966c512 100644 > --- a/drivers/net/wireless/ath/ath9k/dynack.c > +++ b/drivers/net/wireless/ath/ath9k/dynack.c > @@ -187,7 +187,8 @@ void ath_dynack_sample_tx_ts(struct ath_hw *ah, struct sk_buff *skb, > /* late ACK */ > if (ts->ts_status & ATH9K_TXERR_XRETRY) { > if (ieee80211_is_assoc_req(hdr->frame_control) || > - ieee80211_is_assoc_resp(hdr->frame_control)) { > + ieee80211_is_assoc_resp(hdr->frame_control) || > + ieee80211_is_auth(hdr->frame_control)) { > ath_dbg(common, DYNACK, "late ack\n"); > ath9k_hw_setslottime(ah, (LATEACK_TO - 3) / 2); > ath9k_hw_set_ack_timeout(ah, LATEACK_TO); Dear Greg, No idea if this is the proper location to report this or if I should inform stable@vger.. , but: This backport alone is useless without backporting following 2 commits below also, unless the 2 wifi devices using dynack start off at very close distance. Their commits messages indicate them as improvements, but they should be considered as fixes. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.0-rc6&id=0c60c490830a1a756c80f8de8d33d9c6359d4a36 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.0-rc6&id=9d3d65a91f027b8a9af5e63752d9b78cb10eb92d It's safe to add them to all stables involved (4.20, 4.19, 4.14, 4.9) Thanks, Koen