Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2679231imj; Mon, 11 Feb 2019 06:56:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKWqPGkRXwPk2jQa4tOPWs8VdM4E9KuP4tF5Ous5V0XK3F6WbBU/qdc5KS7LyWPzGB60sf X-Received: by 2002:a62:560f:: with SMTP id k15mr3376985pfb.231.1549896969138; Mon, 11 Feb 2019 06:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549896969; cv=none; d=google.com; s=arc-20160816; b=mG+YeelpkeHxxccKuRSU7/FSDHg0CRBXBGJPIuWmEPCeRCwbmtQXi3t59kTbSRPkUk 3dP8UBLIteAn3ID0qNRUZ7QYzPHdnBAs5cJLKvHBL0ZPgluNwzv1SYA4Id1+qyEufCTV VzeyHYI33pOONwUxPoNVUsPSxWtw/htBHEznf531ClK3mgZPlHW91RdOy+xefTUdFhzm K5o/1Lc3A9CH9vVDpTbABb9YxChB0dj+b0hVAoEopTV7HycCdbRSsdffjWSLkqiIQfAy E3eFrLIVFLQDFNXTBB0Hc/eV9nXDzB9I61jd/7KA2TR8qMvYMDh28Ur+iVjQm8+IA2NQ V5bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SKvdI3eWVgVIhDvT15xb4tsmHuV8YjrCqSABvx9N4Yo=; b=RFEKoRUJTKT/7FlVyFKa97pbCzfi20Y3hGAOFF567vkAOPovWrNukmNyEHZeTXfhmj gxXXiGEfN8HCW9sPAMjObDjimjkBf/4RaISOz8xcRoD8sl2v/zYNEIIOR6yKnZUS34xR iZJARDMMgyLWqBZer+KF4L0qVUcCgYhFkF540dVN4ZZ4Gv1JcuBr4Tj6/1VCRVkEpn29 YQVKGzlHKPlA+q7ACJ1fyY+T4T2Io6bwfpS1XZuM0E1dY1vyDTeGZMsvh8T0Dp+jO7Y2 9wMtBuIwUpumg1eSmUGw001paPK2kMuAIXXboCnHT0us4V6Nj+ra9tOm8dvlEHwXAaZe n+YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IGXXjeeT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si9216974pgv.426.2019.02.11.06.55.53; Mon, 11 Feb 2019 06:56:09 -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=@kernel.org header.s=default header.b=IGXXjeeT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387649AbfBKOyz (ORCPT + 99 others); Mon, 11 Feb 2019 09:54:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:41698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388488AbfBKOyt (ORCPT ); Mon, 11 Feb 2019 09:54:49 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3994222AE; Mon, 11 Feb 2019 14:54:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549896889; bh=aV6mMMVY8yZQWlUQi1qjtTffDxPNTus7q+HHg3BYZIE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IGXXjeeTSeRYxvy1abRN+puexKGDRwYHZ7WZlo6GfbTjndu3twkrCALZBhsd4xE4W GgUG+hxqXMpLl+cCmdD8GHcp4gYGvZSYVNyLQbocdCekYTFA40djqvg1VE92qfOwEP gh6xYetSOSm3VsD6cFlCSGGufiqzfmJ8wuPTtnB0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Koen Vandeputte , Lorenzo Bianconi , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 007/205] ath9k: dynack: use authentication messages for late ack Date: Mon, 11 Feb 2019 15:16:45 +0100 Message-Id: <20190211141827.640823098@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-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); -- 2.19.1