Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3073603pxb; Mon, 4 Apr 2022 07:12:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTH3t+wkCcV6K1tgG31o+2FTIBJyr8SIUaBkkzWwB65erJ/2IQ67YqN0ejlOnElk0dxVAa X-Received: by 2002:a17:907:da7:b0:6df:9ff4:10c7 with SMTP id go39-20020a1709070da700b006df9ff410c7mr260143ejc.106.1649081535971; Mon, 04 Apr 2022 07:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649081535; cv=none; d=google.com; s=arc-20160816; b=jx88kJ+dX2fkWdRz0YC+I3ByD+OQplZ+zpVhoXVuT4pKPlHXWpEXV4ijh8p0h5mrcy sLpETyKtEAH/cZ/hhVZLeXhVi0ca81cT4jEcW95o9ogHBL0R60yrRFxKYBFH7sk09Yk8 SF4IYiZpG01tq7iFVVA3DG/otXIXVLRJzmcNca/KU9Yt2mefHPqyi6wKMbC2Qsq6+fqk lz5Kk7fjbK7VFlAIvgT9rTCnnJ6CNB2wrIfnrqxA9HLr1Zp3wOBdmhhRZJvGnsvAU5F5 yhBbGYPIRHSclfUHOHv1efM/LibUnGrn2w4rdibTxUb/drK7ayowZrbi//qfpC1LwGAS FUwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=JLRjCDmPtykIAO7RIiUF9P3rhqud8dokcQ0PDiot76c=; b=rWLxLMEsPJNjfLLyBMvUO2KEWfwXqKRDQrto/1+6kHqoU+BFRcnaxMLLhSjQals8aM iAg5XDNxX68SfCA146bJH6wHPE8+MBt9AvYweaVkKXS6Uou+YW1z0WQagEBH45hi1Ml3 Hsv04KeQZASrR5LLIuHZ/x/PLoMj3jSlUr1NkcPrk/FBTTiupZNs/BEgMtFRIlO7xBn8 G5x6c/y/rPLyE5RzF5JEXiPyakgpNcw4lFdZMiu0+jct8/onHLOR9JFaE10ps44OR70/ EkMeRb0uhy42Xdhghi2aCQbImwaJ+3UhN4R2Lpv7YFhl01vEp7uNzru2E/yzl9luhzVD S9DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=kTXyJBdp; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja4-20020a170907988400b006e7f5b3e5b8si1596229ejc.459.2022.04.04.07.11.52; Mon, 04 Apr 2022 07:12:15 -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=@toke.dk header.s=20161023 header.b=kTXyJBdp; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347425AbiDCNZI (ORCPT + 68 others); Sun, 3 Apr 2022 09:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbiDCNZH (ORCPT ); Sun, 3 Apr 2022 09:25:07 -0400 Received: from mail.toke.dk (mail.toke.dk [IPv6:2a0c:4d80:42:2001::664]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA2F2FFF0; Sun, 3 Apr 2022 06:23:12 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1648992189; bh=vxP9q518XE3KdAztl9//KGX9bUTP+1n779ioHEPSOHc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kTXyJBdpSrLqD2Jq+JcFdR04mE5KkGWlUPpwy8lKKYGmk60+oYBCeWWqWSL9Gg3tZ hT5svZvRPSA5eJ3r0k2noh+NTBD6yvUzKify+jCbz0Mkxfyy+ciSZhAmySuYYW4kfc vkzqzX38Q3FPsV8VhGN858L3T/UC7bkJ5bT0isJYEOgYvMlmhzH5J5eWTGA1WwxGFR pIMf70rYTcfd04DZJkg49U/nSRzLKSHAyXcGHzwXB5fAsDW/KkkMRIl2fVKJIg25aG iB/el4mu9uBfE+SpFaVE853rsEOsKD6d/TKGoRn+99XlGhd0XHogF/GTQWfG9Z3po4 slZsTo/feS42g== To: Kalle Valo Cc: Johannes Berg , linux-wireless@vger.kernel.org, stable@vger.kernel.org, Peter Seiderer Subject: Re: [PATCH v5.18] ath9k: Save rate counts before clearing tx status area In-Reply-To: <874k3btm41.fsf@kernel.org> References: <20220402122752.2347797-1-toke@toke.dk> <87lewnfwyg.fsf@toke.dk> <874k3btm41.fsf@kernel.org> Date: Sun, 03 Apr 2022 15:23:08 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87a6d2fghv.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Kalle Valo writes: > Toke H=C3=B8iland-J=C3=B8rgensen writes: > >> Johannes Berg writes: >> >>> On Sat, 2022-04-02 at 14:27 +0200, Toke H=C3=B8iland-J=C3=B8rgensen wro= te: >>>>=20 >>>> @@ -2591,12 +2602,6 @@ static void ath_tx_rc_status(struct ath_softc *= sc, struct ath_buf *bf, >>>> hw->max_rate_tries; >>>> } >>>>=20=20 >>>> - for (i =3D tx_rateindex + 1; i < hw->max_rates; i++) { >>> >>> might want to drop that blank line too :) >>> >>>> - tx_info->status.rates[i].count =3D 0; >>>> - tx_info->status.rates[i].idx =3D -1; >>>> - } >>>> - >>>> - tx_info->status.rates[tx_rateindex].count =3D ts->ts_longretry + 1; >>>> } >>> >>> since there's nothing else. >> >> Hmm, fair point; Kalle, I don't suppose I could trouble you for a fixup >> when committing? :) > > Sorry, editing the diff is more difficult for me. It would be easier if > you could submit v2. Alright, no worries, can do. Seems we may need more changes anyway, so will wait for the results of Peter's tests before submitting v2... -Toke