Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3622077imu; Mon, 28 Jan 2019 08:00:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN5V+H/pQ0YIBsfj44ntQYn/nmG6YajTVqP2dWi9yzT860SVm8C+Ss07s9n6T7zjqVwZwnnd X-Received: by 2002:a62:1e45:: with SMTP id e66mr22220529pfe.152.1548691255653; Mon, 28 Jan 2019 08:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691255; cv=none; d=google.com; s=arc-20160816; b=TgJHYZDJ4D2Zm8mU/xGesywtfQQeFeNw2/y52bTX0aQEczkjZSTGs7XtgfaP518Yje RuwvgtYqChk3UrwZQxqDKrW2mRZ78DVVdL8YQo9muhlAifUYZnzwfR6A1AtD0T3NTKUI 63ww+JarA7J7nDWGqJQ1k3v4YSbgE+KASb31f8SJQdFUvKw2Ct6f7slXqItUCLFlbofT Whu4Td8mPLOJ91jSGiAyPrOcU5Lb/sks2zOz0DF7THj3TboFgkBH2CHR8g7wSU8Er1nB IOd5VgxxFsfjTIPT3pI+6rR3euDwOQPg84LAA5csy2VCNKsLPU+fro1d/Sy5CLmImQy0 9T5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2+sqxFBP765XQ1GdSfBYNgg6g5RPJMk3MZaYyglOLDI=; b=aUOJONwMjcYwQt/Fyi7EoOxb6Ll3ZN749KkMLsQ8jvXrh7+hrBbi/PQpo/O/AL9EXT OwMh0XEYJcUXvdiKFUkCBi53v9i/jluYXjGgbC0TvydUp9+Ou0qrPEI5gXIOWwtt4t16 0rZqqM9F0Ib1gHOa23F5wWjjwFGDzVusRijUzunMVE6qMz2ZaGI4/u3NrOoHOFLuX+ha Al/sdBQ0P+PgY/t+s6/0v0rvGKNt+h94Nrr4vofpU8s7+mSs+CHsJ8EQYzPir2vo6G+5 6g0LdqFU/2ZiZzOuotvLjeh3Ii3wuHC/3OUWiUjIxQHqXk3kev+5vQEOXz9iIct06+VE oKOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DdaTCtV+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si443595pgu.19.2019.01.28.08.00.40; Mon, 28 Jan 2019 08:00:55 -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=DdaTCtV+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730715AbfA1QAJ (ORCPT + 99 others); Mon, 28 Jan 2019 11:00:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:45380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730690AbfA1QAF (ORCPT ); Mon, 28 Jan 2019 11:00:05 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CFE352175B; Mon, 28 Jan 2019 16:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691204; bh=h4bYPE8tgq+3qOo8AIQCvjIJi5Lm5fppydrzclmr9eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DdaTCtV+FraoI1JA+RgvBJF55wcAgyEptg8Y0INud83ZlMsCLo+VLHesECvEjr5cY sAVe46qjaVcCGwJPoabUHQ+iD9S0a8ipQW/Z1EPemcF/CfQcLwYnolfV3GPyhnFCY1 aIDBurBdfJGo7qnkG83VG3e8Q5LS0wfcXGz1X/RA= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lorenzo Bianconi , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 014/258] ath9k: dynack: use authentication messages for 'late' ack Date: Mon, 28 Jan 2019 10:55:20 -0500 Message-Id: <20190128155924.51521-14-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi [ 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