Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3057405pxb; Mon, 4 Apr 2022 06:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9AIGlZXCeioeah6bwMDo5XJ5dB9/pLTqWQ/XBN9BKgNuSb1SzB3OnGYGnk/+5cMaaz/GJ X-Received: by 2002:a17:907:7f0b:b0:6e0:a336:a3f5 with SMTP id qf11-20020a1709077f0b00b006e0a336a3f5mr79446ejc.541.1649080349825; Mon, 04 Apr 2022 06:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649080349; cv=none; d=google.com; s=arc-20160816; b=YQuZP+CYG0AlRWsQR8M5oUjpuzasV7S5UAuBPcOWBogiMBusTnui2ef04F1M8TM0Px zOHA7XC8L5e1q0Rk8TBFWSHJGfqs3z8dUs5qCj8c1jppZUUYsQppVh/VOcQ50FC6ej4H fNWqrFTp2i4Df9+0rtzRyCrtIHLfX1yRBczlaaPj6mYOfzq4svmss27qlOxOumELwr2u VkUb5ty3PJObECJcLcTVF3ZZ+Lvry3inXcwSBdZ/Ea7yyOwtcqRDtCr8JzWC5AuGs5Zp IGYM56ntPoUvSehTxbi5BhtsED0/+tOjCoIAv/F5s/zJO8g7B/+fFUeAMsDbjcPIr8dB vJuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iaYfv9Eh9UZiCvMCxMxyLC2dcfFsHUcvCTt4HAvPLMM=; b=p1jCx1dDCEiNp+wOKctSs3hVMAo/yjpp7PQYLS55stEHQ0IDj4ihA9+Bew/4rp5m4b xJGzvyO3MfNICL8yiOKpJolBiGG4HatCbLsJrIvxiCSGdJAnEYmRVzR0DWMdxTjYZ5fn d3VbkF9ezMzhm0Suyh0QLlwJ0BzXX/Xd6wX7YqpVQKHsC9fjEXIqLC3sHJ+VfmTtW/WN 4B02WuRkLUy/TyhDWf/7pHcP9iGSzAJ4AbFDw9DV+JonObpuD3S6AMp8uKrfQddwx9Ro vL430klOUrDwuZxEPAVyvkx+ZrxFTuI9C9qY8XJwVcyr4ugbfffX/qm1C+kKVBStkfGE L9xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R7YtDbcq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv2-20020a170906f10200b006e0a12da667si6951238ejb.34.2022.04.04.06.52.10; Mon, 04 Apr 2022 06:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R7YtDbcq; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350262AbiDBMmX (ORCPT + 68 others); Sat, 2 Apr 2022 08:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240612AbiDBMmW (ORCPT ); Sat, 2 Apr 2022 08:42:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7335C2980F; Sat, 2 Apr 2022 05:40:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E64A613F7; Sat, 2 Apr 2022 12:40:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E32B4C340EC; Sat, 2 Apr 2022 12:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648903230; bh=ZE6ONiSMZO3GKZYOyFXS0R0urqYXEv40Y2pzxw+8kw0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R7YtDbcqRq878I/4TSp+oRcVtvTW9Pe4fRJTgNNmKEi1hvVOaSIUT0oHRyt/YEuvI 749Ll6wwMHJbXEGwmaMseDdu8UY9UiXPv05Mg9K4A9VJbsnWwE9wP7hLJSrh3tEmvB Yrgu9udC6jwv9QUHXBSFwzTcd9ObH4biPOt+drc0= Date: Sat, 2 Apr 2022 14:40:27 +0200 From: Greg KH To: Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: Kalle Valo , linux-wireless@vger.kernel.org, Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , stable@vger.kernel.org, Peter Seiderer Subject: Re: [PATCH v5.18] ath9k: Save rate counts before clearing tx status area Message-ID: References: <20220402122752.2347797-1-toke@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220402122752.2347797-1-toke@toke.dk> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, Apr 02, 2022 at 02:27:51PM +0200, Toke H?iland-J?rgensen wrote: > From: Toke H?iland-J?rgensen > > The ieee80211_tx_info_clear_status() helper also clears the rate counts, so > we should restore them after clearing. However, we can get rid of the > existing clearing of the counts of invalid rates. Rearrange the code a bit > so the order fits the indexes, and so the setting of the count to > hw->max_rate_tries on underrun is not immediately overridden. > > Cc: stable@vger.kernel.org > Reported-by: Peter Seiderer > Fixes: 037250f0a45c ("ath9k: Properly clear TX status area before reporting to mac80211") > Signed-off-by: Toke H?iland-J?rgensen > --- > drivers/net/wireless/ath/ath9k/xmit.c | 25 +++++++++++++++---------- > 1 file changed, 15 insertions(+), 10 deletions(-) What is the git commit id of this change in Linus's tree?