From patchwork Thu Nov 4 01:05:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Li X-Patchwork-Id: 12602293 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 3CC99C433FE for ; Thu, 4 Nov 2021 01:05:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2351D611AE for ; Thu, 4 Nov 2021 01:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231526AbhKDBIa (ORCPT ); Wed, 3 Nov 2021 21:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbhKDBI3 (ORCPT ); Wed, 3 Nov 2021 21:08:29 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8B9C06127A for ; Wed, 3 Nov 2021 18:05:52 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id r5so4535011pls.1 for ; Wed, 03 Nov 2021 18:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squareup.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F7IntgBRqXmThHfeu8v3VfsyQz57chbxKAkcYHeyT70=; b=DC4kh7qqTVyouDvVXwTXkHPdVKF6JxiMXTwigL5IFB8peVA0DGwVqBDgNUQL8dqqxP xYKE+nl2876LdESELxAM+m7J8FDKEXXvTSgJUQq/4+FHNpitGEXzoXQNSxSxMeegzUOC Fh9RLzSFEQ9giDzOKXCyZqedrFGWPaWebKX0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F7IntgBRqXmThHfeu8v3VfsyQz57chbxKAkcYHeyT70=; b=5pFGV1kFLQNblWBL9M6TrbKtF+IIgih0tbkOoaLLb29bdK3xdGHw69UxSuKVRELcmw ZRk4ijPmn4QenRlWUlqNVA3l0pyIQnEWFVKnzzoWeWrc71ZcagkTSK/dr/z0h86EgFnO 0exZWmZQFbvH3I92HjzWtOdEGQ8g9e7jVLMfhyeUfGQtnZD704TquaYk2/x1kriDOcjD pX3eFkeoE5wQJf++Uy2teNR3mHT956ArltBcGuBIQ9g9m1JC1XDSpSQzH2Agz4fHzbvO muiVdedPol7B3DH94PtWdngNQRypXd/nFWC6RJzhtr26wwRvTXSiMfxylvhlw5BpnpIi t4AA== X-Gm-Message-State: AOAM5309Lxhh4FrrzuT+q/B3MD/wXviZE+mwKFXTokw02EnTvmtPQe3T DBa8nT1DZ7Cr8gMm/CWKokCP8Q== X-Google-Smtp-Source: ABdhPJwIDnMlPDwfl4MjKZ60puhKpQJbMdve+2zJWlJPT8+RQio8OoxhvgtxuJXzTcieT0ljmUubfw== X-Received: by 2002:a17:902:f209:b0:141:99d1:7cef with SMTP id m9-20020a170902f20900b0014199d17cefmr40318754plc.70.1635987951935; Wed, 03 Nov 2021 18:05:51 -0700 (PDT) Received: from localhost ([2600:6c50:4d00:d401:aa7a:1484:c7d0:ae82]) by smtp.gmail.com with ESMTPSA id f11sm3749026pfe.3.2021.11.03.18.05.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Nov 2021 18:05:51 -0700 (PDT) From: Benjamin Li To: Kalle Valo Cc: Bryan O'Donoghue , Loic Poulain , linux-arm-msm@vger.kernel.org, Benjamin Li , "David S. Miller" , Jakub Kicinski , wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] wcn36xx: populate band before determining rate on RX Date: Wed, 3 Nov 2021 18:05:46 -0700 Message-Id: <20211104010548.1107405-1-benl@squareup.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org v3: Tweak commit message of patch 1 (probe response -> beacon/probe response). Check for rate_idx >= 4 in patch 2, per Bryan's observation and Loic's confirmation that FW sometimes sends rate_idx = 0 for 5GHz legacy rate frames. No warn per feedback from Kalle, since this a confirmed FW bug & logging could be spammy. v2: Fix unused variable warning. Benjamin Li (2): wcn36xx: populate band before determining rate on RX wcn36xx: fix RX BD rate mapping for 5GHz legacy rates drivers/net/wireless/ath/wcn36xx/txrx.c | 41 ++++++++++++------------- 1 file changed, 20 insertions(+), 21 deletions(-)