Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp804594imu; Tue, 11 Dec 2018 07:51:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UTRqrk6kynWxLa5YEBPElcD3hsSTnlqHV6yHFpTDwhlJrK9+qv9xkk91a1QBqsEpZ+Qmhk X-Received: by 2002:a17:902:5a5:: with SMTP id f34mr16590462plf.161.1544543506801; Tue, 11 Dec 2018 07:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543506; cv=none; d=google.com; s=arc-20160816; b=rIcnSizeTDUlomeElIYTbpyVNdQZL9sY0Ie8S9hbORecp0h9j7+jEEtuOpMgj6D3TV /wzpF4Ww/S/bNE2iTB/Bu/nTuyML/xNXutjmGkl9e5iz9kMKYWMbGGx5Aoiipgfo+npG qmvuJc2e0xXmOPzlPtu7Li3DcNP+5POW4cx5b+7dnC8DA42ocVMQU9YkBwXFHcxUhwnO V498vBNkcbuouJBGil13v9m6f9UjMPbri0nwwbQrq6AfiE5j8it9Ru2ifvdB3aBCy6ry FDRYSck0MXtnVhduAKcn4oFW3GCFKnIBf2gAPV273r9r4nnWtIHSZguZGprWVFkXIPQT 5fjA== 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=IqZg8E8WMc4rDqnGEa+fgskdgaq6RmEuxxBnW04Lafo=; b=eaxzHOUMAddFXmc2dZ9B92TKKWdTcelFIqJdcNsJwrvsHDMRplh5BZP0aGSBGq1NBF zeQNqSj3oqqHqJ9R5kKjoN3siDAcTJcrnUcq7aiuD2dJhuNnAsW/LCiNgQBh2jo4PCeW UeN1yJxX5DoLgFpf+3NkhafSkA992SVOsJS6FWv4jONU6sCvAyFmD2nutOEW7+kBFHTo iHhWLd1GUm6YRCje7caJCgGauxXoUNWk87N4MemajYKtgUUS0cRDuQjHTEkAwIt53DVs nBWqUM0ACnGPlGBUsMI/I3L8Svopr4Z94hOzzWDUMQLWBIhy2Q3rr/nOkGsbsUD9pHuG 0hpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="XwM3I72/"; 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 1si10582056plp.114.2018.12.11.07.51.32; Tue, 11 Dec 2018 07:51:46 -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="XwM3I72/"; 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 S1728863AbeLKPsl (ORCPT + 99 others); Tue, 11 Dec 2018 10:48:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:37014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728846AbeLKPsj (ORCPT ); Tue, 11 Dec 2018 10:48:39 -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 8E65D20989; Tue, 11 Dec 2018 15:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543319; bh=f60XhGnVUxrXVMGRhmpElIbbF7i6TQwHKpgMBXSR8Yk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XwM3I72/R8gg7BsMB8e9A+RvKSHxt+fY/8LVYMImhwmPawFidoepHh33U1vjhpHrP Q51h9OCWf4M+oklBaIsei1vYP/joqHw+44Ad48lJGgBCFPeaWoPwf5E2abj/vGMhU7 lDkSMFyj/r50tAMUvpWUNAS26ZJDOc1g7ROnHdgg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Johannes Berg Subject: [PATCH 4.4 89/91] mac80211: ignore tx status for PS stations in ieee80211_tx_status_ext Date: Tue, 11 Dec 2018 16:41:48 +0100 Message-Id: <20181211151614.178747372@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Fietkau commit a317e65face482371de30246b6494feb093ff7f9 upstream. Make it behave like regular ieee80211_tx_status calls, except for the lack of filtered frame processing. This fixes spurious low-ack triggered disconnections with powersave clients connected to an AP. Fixes: f027c2aca0cf4 ("mac80211: add ieee80211_tx_status_noskb") Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/status.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -648,6 +648,8 @@ void ieee80211_tx_status_noskb(struct ie /* Track when last TDLS packet was ACKed */ if (test_sta_flag(sta, WLAN_STA_TDLS_PEER_AUTH)) sta->status_stats.last_tdls_pkt_time = jiffies; + } else if (test_sta_flag(sta, WLAN_STA_PS_STA)) { + return; } else { ieee80211_lost_packet(sta, info); }