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: 12602299 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 37DB6C433F5 for ; Thu, 4 Nov 2021 01:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F2E161053 for ; Thu, 4 Nov 2021 01:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231508AbhKDBIa (ORCPT ); Wed, 3 Nov 2021 21:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231455AbhKDBI3 (ORCPT ); Wed, 3 Nov 2021 21:08:29 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E3BAC061205 for ; Wed, 3 Nov 2021 18:05:52 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id t11so4448155plq.11 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=NpRvn1aDnUmMph1L8j2t80F3PF3UmgOSe7+/QPfZe6Wz0t8dLbogiJKdGZO94WTJUf hOQwChVkKpjWcelFZbLfd+WeFL5wSNRKQperGYhD8opkBjV2XPqD//w6FpBYDBAZmJFs tDDNacBQByJopMey4EHt3NID62LEuc9szdZaZgNylA8RwBIXqlv9+KlApTlswS4cfDiZ D7cWNqTevEG9jEnbEV3+CWtj1QPua3bCLKWG1erp2XWZeGFKq8aUygsXtl6CuGgWcn43 3mIWt5YaN/8K5ujSCUs2i5UQy/n1O3+6iXaaAlZN2WAB7Hn3ir8ZlKxspjAAvRWC09S1 O17g== X-Gm-Message-State: AOAM533lVs/4sDPw5N30L4X0YKlfGkFDeuxizVt1xqQnLrNToXVS5Mqk BNnc2/+ucdGNCBGF/GchRRheew== 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-arm-msm@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(-)