Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp869511rwi; Wed, 19 Oct 2022 04:07:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZKrinGLb+IXIuCBmqhapl//mdB77Ce6guC3S4nrfD2cY+CWWFLm0H5FjY/5b1uk0yX946 X-Received: by 2002:a17:907:2d06:b0:78d:50db:130e with SMTP id gs6-20020a1709072d0600b0078d50db130emr6236196ejc.371.1666177637985; Wed, 19 Oct 2022 04:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177637; cv=none; d=google.com; s=arc-20160816; b=EbbQMSbRMArdxzwWVebUPC7Cf9VRisjgT+sd9iz0RvbNIS6Y9yOOgSxibsFgQLJ1U8 RVnflI7VDE2HHDgl6nHXKss4E1tOZHD4fm0QpmjcjxZqqpwC0RPySIkRPGnCddXlamf8 Ut+6XJ4TRLuFg77G4U+ig8cKehDdB7z8qb6tUoAMW3W0WdeNUj5pwgEEJIiEKt94BF9q 6n5H1PmuSoDe2k+YztqRrY/UifTeoEJw+YrtEBs0xI81o7YflJ17mHqcCRqY3EZZOzxM naaIB0QMVokCSXSIUFLwAoQyFHRxjR9shD5ALSsB8lKcuryusFkrrevlg8GQdQJXdRXb 3/ug== 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=BaU0Yu41eevi2I61jsKH9zPZFQ+gJZ2P3okFNMeA6zo=; b=oUYqNWaUb5drjFWRdUIRjbcPzJ26pjw1/rkCW6e6g7Ezlu0s4xNonGKD56Xh5SPrFU ZshkPcSfSp1xH764F6SLwFWyU+//GioxddChcGmLJvfQ7ha20VynaMhBmRKr3nlsZuZX 5cKkSrr+810D4xYM3oRJ38gxKxnGfobK33m1iT/b+BnccEMxrHew8o12LtYuP9iTJrBd W5q9cyV+g9mIuECcK/AtVZfmbO1nVxwGQL+1T3/HnLYQsxz4ywMUTWoVJlRDsVpo/OJx e/wy4NkSkxtjsEBYTvg7ak2l3djiOtv7OSCDOo1nXaadnb5B2oDEE2UnL5WbD1S6YA9Z hsgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zR0Tt6N3; 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 y23-20020a1709064b1700b00781ef26422bsi12416825eju.363.2022.10.19.04.06.13; Wed, 19 Oct 2022 04:07:17 -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=zR0Tt6N3; 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 S233158AbiJSJR5 (ORCPT + 99 others); Wed, 19 Oct 2022 05:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232984AbiJSJM6 (ORCPT ); Wed, 19 Oct 2022 05:12:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02F78C97D9; Wed, 19 Oct 2022 02:03:13 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9052E617DF; Wed, 19 Oct 2022 08:51:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 970FEC433C1; Wed, 19 Oct 2022 08:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169516; bh=Vhqc/iSSYlAG2gq4WdkPUvCQWXXp99Pauwt3oN6zyPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zR0Tt6N3Ep4KHyvI1fvvl2EvmcMa8V8KDgxScm6DMwHugTpeAL+5pCBhb8aZtpmw7 kkbaMAqpapIEqqvKXp5+h2lgfWzofNDUhSxCW5hMmpyt8YnIPS5Utv0QsdtpTyWedY mtcc/VCWk3ZZUi2oOzTn1eR1eW4gIDyTOKqXkDOU= 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 273/862] wifi: rtl8xxxu: Remove copy-paste leftover in gen2_update_rate_mask Date: Wed, 19 Oct 2022 10:26:00 +0200 Message-Id: <20221019083302.098577605@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 d5350756c03cdf18696295c6b11d7acc4dbf825c ] It looks like a leftover from copying rtl8xxxu_update_rate_mask, which is used with the gen1 chips. It wasn't causing any problems for my RTL8188FU test device, but it's clearly a mistake, so remove it. Fixes: f653e69009c6 ("rtl8xxxu: Implement basic 8723b specific update_rate_mask() function") Signed-off-by: Bitterblue Smith Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/d5544fe8-9798-28f1-54bd-6839a1974b10@gmail.com Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 7a1ea4a59569..41d46c54444f 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4353,15 +4353,14 @@ void rtl8xxxu_gen2_update_rate_mask(struct rtl8xxxu_priv *priv, h2c.b_macid_cfg.ramask2 = (ramask >> 16) & 0xff; h2c.b_macid_cfg.ramask3 = (ramask >> 24) & 0xff; - h2c.ramask.arg = 0x80; h2c.b_macid_cfg.data1 = rateid; if (sgi) h2c.b_macid_cfg.data1 |= BIT(7); h2c.b_macid_cfg.data2 = bw; - dev_dbg(&priv->udev->dev, "%s: rate mask %08x, arg %02x, size %zi\n", - __func__, ramask, h2c.ramask.arg, sizeof(h2c.b_macid_cfg)); + dev_dbg(&priv->udev->dev, "%s: rate mask %08x, rateid %02x, sgi %d, size %zi\n", + __func__, ramask, rateid, sgi, sizeof(h2c.b_macid_cfg)); rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.b_macid_cfg)); } -- 2.35.1