Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57CAFC4332F for ; Wed, 3 Nov 2021 17:01:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43634610EA for ; Wed, 3 Nov 2021 17:01:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233057AbhKCRD6 (ORCPT ); Wed, 3 Nov 2021 13:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhKCRDy (ORCPT ); Wed, 3 Nov 2021 13:03:54 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE11C061208 for ; Wed, 3 Nov 2021 10:01:18 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id v20so2898421plo.7 for ; Wed, 03 Nov 2021 10:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squareup.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DMBzmvBB22CaA8yfJuHBpGm7OJc6owoxQJi2DnYHmDQ=; b=Ygi8fQv59gfgwqZ8UAEbGTKMby89lkZW988rBOfZPoIbVnZrgIeKjxkyDSlq1HzhBN lH+tWlN7poas7qmmVToiuC9U/ghuwWOd7IGDHgh06BUEkmiRkZiF2Z3B6Lqe2RNRf+L2 DJrkKz3aQIPsCWgD8bpA7rMHAo6MX3cE4OTbM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DMBzmvBB22CaA8yfJuHBpGm7OJc6owoxQJi2DnYHmDQ=; b=Tvl1ZavIaFxcfRhzaIiGAa0+vjYl+UkO7eRkmGcgWBhu6yJVZjD54d72ICK5VAGOxn 7vQfCjaR8DmMTvE1DD2mWpe6PWv8bNpBdmdycFJladxYnDN94MCeVIOSHHVypiEOeddf 4beQ8gY4quzSBvOB4pYtyZYmHg3BDASjhGRMKZ64D4mJCFo6vehL3BUI+ZikjGcTjOtu C9VkUE2FXxYciICDyAtat928NUdYFB0dGjIoZWFciIWf3nbtKavMAYR9wnpdGwOkWGQd rOL1nm6SFsLxtsZE0AJE2YYV7J1AKXYdXVSWfAJs8Lzq7F+AAXRFZkVNejcAZGgKd+bp JcuQ== X-Gm-Message-State: AOAM533CdvLisYMAXsyI83vlD5Sl/3829CPvVul3AqMzO4NReqQqxqKZ ivDQutHyL39T9bm8qjlpjaTqdBNdGlveaQ== X-Google-Smtp-Source: ABdhPJwFWw4jYft9LGXVGSTlOQj3Q3VNW9elUyrIOaU7e8FcQ0hcRQ2cZmJ6zFkP5jNPOpEJqcpSEg== X-Received: by 2002:a17:902:6bc5:b0:13f:f585:4087 with SMTP id m5-20020a1709026bc500b0013ff5854087mr39922356plt.32.1635958876669; Wed, 03 Nov 2021 10:01:16 -0700 (PDT) Received: from benl-m5lvdt.local ([2600:6c50:4d00:d401:d8a:3314:9c20:7eff]) by smtp.gmail.com with ESMTPSA id p17sm233807pgj.93.2021.11.03.10.01.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Nov 2021 10:01:16 -0700 (PDT) Subject: Re: [PATCH v2 2/2] wcn36xx: fix RX BD rate mapping for 5GHz legacy rates To: Loic Poulain Cc: Kalle Valo , Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, "David S. Miller" , Jakub Kicinski , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211103155543.1037604-1-benl@squareup.com> <20211103155543.1037604-3-benl@squareup.com> From: Benjamin Li Message-ID: <5a74137a-97ee-711d-97a2-105b0dd92cee@squareup.com> Date: Wed, 3 Nov 2021 10:01:13 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/3/21 10:08 AM, Loic Poulain wrote: > Hi Ben, > > It looks fine, but can you replace it with a 'status.rate_idx >= 4'. > I get sporadic 5Ghz frames reported with rate_idx=0 (firmware miss?), > leading to warnings because status.rate_idx is -4(unsigned) in that > case. So better to report a wrong rate than a corrupted one. > Thanks for confirming that. Will send v3 that just falls-through on rate_idx < 4, no warn or log. Ben > > > Regards, > Loic >