Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1982888rwe; Fri, 2 Sep 2022 06:59:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR7iKR3uABiq+efWqFOmwMgyJyz25Xz+nO8jKFl4G+4xAwxQ55DSf2m1t1MIAU2Ts7IHMtpo X-Received: by 2002:a17:907:968a:b0:741:70a5:88f1 with SMTP id hd10-20020a170907968a00b0074170a588f1mr18012551ejc.258.1662127184518; Fri, 02 Sep 2022 06:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662127184; cv=none; d=google.com; s=arc-20160816; b=uMVmJbYEQTwe2KA6gNsXd1D2pl4PuerkMnhGMmQSPVzEXB1EQpNtGVO6kEikapptm7 Y29M9emS+ybQkSVnc4j8haE4LdG/t7TH+ob7JL0E/jX/RdaXlLslxsVQiBqRN+m8nnBf i7uOabZYJNzmXHdY7oK4DfZEvPo0CT0cPVQSIDzvPeRgEEmNrap/1vUIOpHXLbUJrzBX VJPT/6WqCIf1oDLizR4G136JopxXEMN388DWluxLSbwk0loYwrhnJABQyGzH/t5QVPBZ iJDlzvayKtUkBQ/k/sAc0F+km/NvLWELcQpkJZKgTroi0VHhM8JR1VNCjFgGNJfa0imJ fcpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=787lA2AX4qiLw/kcyzU+KU3x1ygBbIR5cMew2XSZP2Q=; b=uGLrSFZ1au/0zVVEl0j+ngKBg4EaQFUJ0d5+4MYtCUNNlCqWJKEiZQ1aorp3I3w9aR 7kSTrJrm5nzZQ4XG0F+Kz08qvGO7wsYxNEbctxbEKjcidd2d9qM14u+FHw4/I+zrxFuf Qq0Vtm15h/xxk8FmvlsFLe41vy+QuxhvdEDQ87bgwWxkPj7ZhzSp7ofMhOoH0qkIi4+V 8sk+kH5PAMJ3GjbJ0mqSqScs8dVBHwJTSJ6lSVfibP8eAasfxXYHjvClq7MgZcX6BDwi c6bAueIRZ6OX0k3ukH2dATEiK7pPJNgwkig+f9qhe4RFutWlnwTDTAoBOIRvM0kXLGny R5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CIHawhZj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa26-20020a1709076d1a00b007429c6f2908si2014930ejc.128.2022.09.02.06.59.28; Fri, 02 Sep 2022 06:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@gmail.com header.s=20210112 header.b=CIHawhZj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238459AbiIBNxd (ORCPT + 64 others); Fri, 2 Sep 2022 09:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237081AbiIBNxO (ORCPT ); Fri, 2 Sep 2022 09:53:14 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3778413A7E9 for ; Fri, 2 Sep 2022 06:27:34 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id bp20so1837810wrb.9 for ; Fri, 02 Sep 2022 06:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date; bh=787lA2AX4qiLw/kcyzU+KU3x1ygBbIR5cMew2XSZP2Q=; b=CIHawhZj0FJoOvKPpvjUUCR5fCXrVMQJqInVde3yoWUEer8Dd7JaRi2KkPiNniHmod SlTtz+oM8MZYx/F45S7rOSad4XJJ2kI6JDnFGYKLJpMp9YiQRZF4srkpIZh/m0RKue3G hzQ+w/tUSOwcJW5Y8XCchEKWkvKkT+pY6xAHV0H/ePQIw38fQpr8Aa/VD+wZF82nYXKa THGppFuS0+qKTO8pzneU2EfoUYhtY6ZbWicMlFw7NcRYTZGOdIEvH02g36GBdw41zr1L MBtfxeGKbX0PF2pFjBfzJZCvOGxnd9qb+UbjliiOiMVh5AaJaSry743ZC5y/jKB6RBa0 v+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date; bh=787lA2AX4qiLw/kcyzU+KU3x1ygBbIR5cMew2XSZP2Q=; b=nOjALgSWTQtC6+xCowiRS4XH+rXrMe0REL8voMxi2sMyWT9S1LS6VbfQLt7jPS1O2R 0ujeRyotKKl0WTeiIKjJlDWS+9EoV3guJG1hV9umj5K50yRBKjjh+tBWw0rDy0hCR31X HMtxt8f1ZByWkz1B1n2ibnN1MITiGcSz+XXliG95TienSx8P5i9k/n0tMUlzpFIRejAM 3N1udwceZ0RqFPW/ba5rleNC++stigh0sUofFH70ALNPhduNxmfMknNTgW52Bz/0USZB u56Qmex7pEdxnmtzJrl4+Mhl1JkU4Pu7id0TxpbiavZWdcc0Z6xAKUEjZ0RMwbRLJ8Jo ni8A== X-Gm-Message-State: ACgBeo1w0jwp/GFKp5Z2cSj0CmXJ96FFGm5hNXoj7Lt5/HdyvtkccMIC EGSPzFqx6cwHWoJP2YnhxkI7n5zzZD4Vqw== X-Received: by 2002:a5d:678c:0:b0:226:de76:be99 with SMTP id v12-20020a5d678c000000b00226de76be99mr11970185wru.428.1662124531770; Fri, 02 Sep 2022 06:15:31 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.23]) by smtp.gmail.com with ESMTPSA id w4-20020adfd4c4000000b0021badf3cb26sm1869518wrk.63.2022.09.02.06.15.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Sep 2022 06:15:31 -0700 (PDT) Message-ID: Date: Fri, 2 Sep 2022 16:15:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: linux-wireless@vger.kernel.org Cc: Jes.Sorensen@gmail.com From: Bitterblue Smith Subject: [PATCH] wifi: rtl8xxxu: Remove copy-paste leftover in gen2_update_rate_mask Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org 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 --- 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 b4e09da1c683..acd55681a3d3 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4440,15 +4440,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.37.2