Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp907754rwi; Wed, 19 Oct 2022 04:36:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6I7055Lls3GEBSXVAkfjfy6sf7zVJC5QL2XQTOTeEtQiwhfqmy95TKyrB4369M348gzh9q X-Received: by 2002:a17:902:bc86:b0:186:5d80:f62f with SMTP id bb6-20020a170902bc8600b001865d80f62fmr227004plb.28.1666179379767; Wed, 19 Oct 2022 04:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666179379; cv=none; d=google.com; s=arc-20160816; b=zdteRThh8rqoAjyWwa/Z5hSHPI5kkTc+ou7BByHgVVPqWaMmDqpWmfrzg9iIdsJ7et qZSohenFOqqJ2tofHq464CgZhjBWTNeaRIfyZdlUVe02ICMK2p8AQTgS+tL5VN5l/PsK IKgQACSXmPESH+vdnhCelYBYKUJJqnPZoatpSE0ekc2sozAaf3ioNo7fCfVQQW/Q5I59 rdERdA+e83dpVzIHhyERn/dfJ+n49kxwkN0MSuuIPTmbslRVS62XBbvoC9TNVd0p7SYi udsJPnS11X+wl7t0ZDLbWAw//hb5m2fkjZbbz54Y1ebHuZ2LZofDCCq3LR4bwbVIDaZu g2mw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i3PZAHvWp257PE7Cwr7Tv1+CvxsIuvyHdWkTPC0Kmfk=; b=N/JN6eYo1JpKjsKdh/rmPgVINYluPKr+Qm8c2ATDbi6rzYK3rIe8hSbXySjowOymqD XmiJuzYcoeIp49LkZghv56ud/fLSblCtMcDq5wPJ6RyeMotO3BOTB/DIvbiZ8Ed2V+51 9A0/yarQx1uBEHKqFaJUvRa4WFROIWUvEB/Id7fJKin42Bd6+9nFuuMbPf9+N0k/6/Ee 8TAnlqDslPY9IR1G9PJCyRYcfzj/NQiFroe9Y2OGI1DvqkrO3U0js+KPeIG8nmlI+koe 3Q8Wh2dmGjffjK7kSpE8hFU3bhXrz765TFE7eO9IwvCHJKPbMGxcVslw7XiEREK4mzpz oCUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xGJdSBgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 u1-20020a170902b28100b001865d29164esi196108plr.212.2022.10.19.04.36.08; Wed, 19 Oct 2022 04:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=xGJdSBgP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232600AbiJSKpL (ORCPT + 99 others); Wed, 19 Oct 2022 06:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232031AbiJSKne (ORCPT ); Wed, 19 Oct 2022 06:43:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7248EACF44; Wed, 19 Oct 2022 03:20:05 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6EB0BB82336; Wed, 19 Oct 2022 08:51:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B09C433D6; Wed, 19 Oct 2022 08:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169514; bh=r7arRSQHyneX+YQtZan5pfZMFZYfLBwooiTK+ip3S0A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xGJdSBgPoapChdlaZ8OiRORfL8CqPDhzs4ev8VJy4Fh0k6v8NvtGkKQZaBjxjy+vq Gf7QfqCdmRtzVMUu7/VWdbkFC1MIwKaWHz+um2sCJbqce3WmZhQFJf47ptfhS5eTTI YIQdsrBfI1UgDsyddSKaa1/PoyMhoVjyc6RSnrnE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bitterblue Smith , Kalle Valo , Sasha Levin Subject: [PATCH 6.0 272/862] wifi: rtl8xxxu: gen2: Fix mistake in path B IQ calibration Date: Wed, 19 Oct 2022 10:25:59 +0200 Message-Id: <20221019083302.050234305@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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 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-kernel@vger.kernel.org From: Bitterblue Smith [ Upstream commit e963a19c64ac0d2f8785d36a27391abd91ac77aa ] Found by comparing with the vendor driver. Currently this affects only the RTL8192EU, which is the only gen2 chip with 2 TX paths supported by this driver. It's unclear what kind of effect the mistake had in practice, since I don't have any RTL8192EU devices to test it. Fixes: e1547c535ede ("rtl8xxxu: First stab at adding IQK calibration for 8723bu parts") Signed-off-by: Bitterblue Smith Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/30a59f3a-cfa9-8379-7af0-78a8f4c77cfd@gmail.com Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 02b7bc57d217..7a1ea4a59569 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -2929,12 +2929,12 @@ bool rtl8xxxu_gen2_simularity_compare(struct rtl8xxxu_priv *priv, } if (!(simubitmap & 0x30) && priv->tx_paths > 1) { - /* path B RX OK */ + /* path B TX OK */ for (i = 4; i < 6; i++) result[3][i] = result[c1][i]; } - if (!(simubitmap & 0x30) && priv->tx_paths > 1) { + if (!(simubitmap & 0xc0) && priv->tx_paths > 1) { /* path B RX OK */ for (i = 6; i < 8; i++) result[3][i] = result[c1][i]; -- 2.35.1