Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp354153rwr; Thu, 27 Apr 2023 02:10:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Bs5dn3tmdR/Ybab2Prp1hM/+d+PdZF2cSyo3drGoBAg2njIa8faovlmdnd5X+NlfwL80t X-Received: by 2002:a05:6a00:18a7:b0:63b:8b47:454f with SMTP id x39-20020a056a0018a700b0063b8b47454fmr1535357pfh.13.1682586649980; Thu, 27 Apr 2023 02:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682586649; cv=none; d=google.com; s=arc-20160816; b=zn4DMEJR3bwMKegg7kxqi+u6mISsXivwI4CexqQJeq+/rRKZ1WPQzg0bQCDosc41cl +751i97iBUUyIFKUz1G/LRLk/ZrC5x9I3kV+Lb1CFoD9aBqwsBGZzMo1C55Rmk9nfPE+ C77ycRkfAYhiHPmlDAE87UmmGWYKCahATWPCiOEPBR1KCalbWgpEnSt/RuG+o7xtsnBy LykNSA7qM/j8DjypUx0PgQ0qjDWUVCpL8hosEO31p9PziEc85LuSZyGJYXqMPut0NlG5 rutEndj0VpCoC/pZ5rg2E3VVWE0GpIg2yVgVSZHy7pp6VGvJ1b6qJUPTkv+9ue70S6ag W8Tg== 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 :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=WJGbS7uyH4otkd8lhm/W2v7x2xzZlp1cwtcX1pR5VgY=; b=hU6ssKvD9ny1POi76X/YpPslW+xaPbJNo5WMhU0k2xVX/vVM41rBBQdS5uklDxraD4 CwYKUGWuQHZBX5xrbPvfKR2KL1LBmN/0oYXV8EZxoIuT7PY3egdfW0znXdOO6cUqRMqr NQcRtxgn99+ARbaiJ54qr7am3Rs5rI8TNmcEKFJudPYX+BztNkMkJmTZabYsq9P/FDYE VhSgBFi6fuplIqgZ391nhnWIfNvSE1ybX7KVSbDjbBKD7bb+NdSMdXD10/Rw3GWKMaN3 qGMQedBVpfSBJyb7yAP68D8VCvDF5mgXxYPI7H/XlyWJQ/O4t4TemxXBJwuT6gn8fmMV mCdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Cxg9vtRG; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020aa79ed2000000b0063b7a4e1bbbsi18451023pfq.281.2023.04.27.02.10.38; Thu, 27 Apr 2023 02:10:49 -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=@linutronix.de header.s=2020 header.b=Cxg9vtRG; dkim=neutral (no key) header.i=@linutronix.de; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243252AbjD0JKA (ORCPT + 63 others); Thu, 27 Apr 2023 05:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243370AbjD0JJx (ORCPT ); Thu, 27 Apr 2023 05:09:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68F6C19AB for ; Thu, 27 Apr 2023 02:09:52 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682586585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WJGbS7uyH4otkd8lhm/W2v7x2xzZlp1cwtcX1pR5VgY=; b=Cxg9vtRGWWA26JBi/3uuktwVhlGbeDiQmmfBmyuueWi4EBvtyBUlaPMkdHR5mu6Xgj2o0V AWgUU8VpPDjFoFGaPL3W3DpF9NWUl0PWZZ3bejhNogWmkkJZbt0+lTpOBtKX2Sg0NCUOXf rGHa6Gmxoxc7jgp2KJ6T/3eWO2SNX/S6iyjSdniYq0j1wMfK8g2BwyMMw2SAYzYGaEqu0A +Z0iVXSqp8p4f4svWw1v0aD3Kg6FabVWXR8YTMSiUFb/opZ6c97W3d/bjUpnMuznPUJ5vp Al/rNVxFliCvwmqpWoLHKOJoZWOlZx5Zd0nL4VuzC/fwu7ojqdkCotbF6PbrCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682586585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WJGbS7uyH4otkd8lhm/W2v7x2xzZlp1cwtcX1pR5VgY=; b=pCGINjxijBv/dkpG/h7334qYOZYnIKaBPq/KD+MmaHrJterWSl+nuayFpxuOp+iJ23KP22 nRdEvMVAUlv1abDQ== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 07/18] wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect Date: Thu, 27 Apr 2023 11:09:11 +0200 Message-Id: <20230427090922.165088-8-martin.kaistra@linutronix.de> In-Reply-To: <20230427090922.165088-1-martin.kaistra@linutronix.de> References: <20230427090922.165088-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The report_connect function has had a macid parameter from the beginning, but it has not been used, because in STA mode, the value was always zero. As it can now have different values in AP mode, actually wire it up to the H2C command. Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index b8e5003c55e9e..10f2e18abb49a 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4619,6 +4619,8 @@ void rtl8xxxu_gen2_report_connect(struct rtl8xxxu_priv *priv, else h2c.media_status_rpt.parm &= ~BIT(0); + h2c.media_status_rpt.macid = macid; + rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.media_status_rpt)); } -- 2.30.2