Received: by 10.223.164.202 with SMTP id h10csp189887wrb; Mon, 13 Nov 2017 05:01:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMZVaEPof65iOdopUTKUurPudmkjyKPrYgJ/3+isLlCA9fgUBnDVtamRauPgtwT+xEeARhGH X-Received: by 10.84.244.11 with SMTP id g11mr8901506pll.80.1510578114629; Mon, 13 Nov 2017 05:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510578114; cv=none; d=google.com; s=arc-20160816; b=MUS+PZMuqT/B9NheRjSc97gmyK3VswgKpGb3y+/ibZ7lRTICaBBgz6G4YhyjNa0Eg/ keshJ4dsVmFr/Bz2J0ronpoyh1A9mKKcboor0E+W6KwGImzXOEuXp7wJcjtV8nA+FsiV UUkwqTB1xhAhAa/fU0mzmJxg6s7U3HQtMIQPK759i9dMqyZVZsYGacrhy3h0+uUIap/p xVA5cFd9gyPWGBCTcQqBqSYy0uSPjZBacyZHzmsPBl9ZlCd0DOFL+45gQWAAcXd3JDdD Vg6YD8OOMfTZOtj5f00C8TLtqkUdK46OBIuKAE5KitBzUBkXKnHa9pBJjMzauxHGI1eE Me7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZPk+8L+V0paaCFG+KoJBSQWhZabyaWPk1saHvZ/H1n4=; b=N4EsbwD9yG7T5aB/inquYzsxwPXMqJc9M6hSx5A5jKTgtV0HoyzOz5uVotgygEQdqG 9U3P4FGEMM+8lNCED957MvmTX8K1TDDsUCbyz4A+wJ/roG/OIVA2Nu0PiVlm/lB7UGYG OA7osITgeDJqzh2t13MpPjku3UumUFYaNyTwXN7WD22pBptR/zo6sypXRTlcxE6GH5O0 xz8WIssL8UHEXUEvcmCnOMG6W+XWc867ka1zWRECGEwAfobLaYN+m+K0b6g7DUvWGrsL DNL4wH7Z3m6a+Ad6+HJaAZ6JdeJC/3gzyJ8zmya++H8KIppV9zGHMn1KkTzyTevBkTjC GCgQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t68si15445713pfe.228.2017.11.13.05.01.41; Mon, 13 Nov 2017 05:01:54 -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; 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 S1754523AbdKMNAy (ORCPT + 95 others); Mon, 13 Nov 2017 08:00:54 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50064 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754503AbdKMNAu (ORCPT ); Mon, 13 Nov 2017 08:00:50 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2B91CAA5; Mon, 13 Nov 2017 13:00:50 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stanislaw Gruszka , Kalle Valo , Sasha Levin Subject: [PATCH 4.9 33/87] rt2800usb: mark tx failure on timeout Date: Mon, 13 Nov 2017 13:55:50 +0100 Message-Id: <20171113125618.360949727@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stanislaw Gruszka [ Upstream commit 1701221696764b6861d0ee66850812a8900b9b9b ] If we do not get TX status in reasonable time, we most likely fail to send frame hence mark it as so. Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ralink/rt2x00/rt2800usb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/net/wireless/ralink/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800usb.c @@ -646,10 +646,9 @@ static void rt2800usb_txdone_nostatus(st !test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags)) break; - if (test_bit(ENTRY_DATA_IO_FAILED, &entry->flags)) + if (test_bit(ENTRY_DATA_IO_FAILED, &entry->flags) || + rt2800usb_entry_txstatus_timeout(entry)) rt2x00lib_txdone_noinfo(entry, TXDONE_FAILURE); - else if (rt2800usb_entry_txstatus_timeout(entry)) - rt2x00lib_txdone_noinfo(entry, TXDONE_UNKNOWN); else break; } From 1583955956955005488@xxx Mon Nov 13 13:01:54 +0000 2017 X-GM-THRID: 1583955956955005488 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread