Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp35430rwr; Wed, 19 Apr 2023 03:03:55 -0700 (PDT) X-Google-Smtp-Source: AKy350YtB9YBA7/8LwYiYuWizqEKCg2/2FQ3TznJrMZ8UI8dnnhQJToKU2ZJqCVB4lKZLwvqYfND X-Received: by 2002:a17:903:1210:b0:1a6:4a64:4d27 with SMTP id l16-20020a170903121000b001a64a644d27mr5497223plh.40.1681898634832; Wed, 19 Apr 2023 03:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681898634; cv=none; d=google.com; s=arc-20160816; b=EzK4UbM581BDxOcsF0+DEz3xMuMUQIu87SwhFxPmZYCJvdGEsnfLkiPbVDH2BWM337 BbuQoaL5pSXlaqAgX4STcffnmDGmSdgrRfo8T0Sq6AFF5lEwBXLY+8zT3QfMnsjsUtqu Hahod1O/jETNcB/HJphAIfLvd1abmlM2rajyEAz8Wpy/k8x5n1FWbpEJ7nZDhBboY9ae veQ7/SGpWUTYCgTFHFAvScNjzx09IerEaFglmkvVpbq9oiQkiEp440yabo4rMEnYx+La IWXYm11rRR5+3KlROHCUvu8XSZbEGT3t9MZASUyQsUUqW/GCqeXflDbuu5EqPXhKxhaw jcxQ== 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=A0gIrPs+ijZkyXP1O1tJbboOu7bibc0lzRsbRMQ+rtY=; b=V1hrvrAmlYEmlEn5qCf654NTpk6zerMwqomUqNPuepJ/vTv+uTYvQcrQSagkdHkLbd jLqHhMu47DyeEWB/ldVjxhp0uzTQDwBXeBu3Wscnryq+T6s/HLxY+5H3sJiOF6eeKisM 9rkl41Ck8C34kSjYZKa8tBDPtH5TJ4prqx/0uyg663bVxfuU8S5DauvhGUkYe6P4IMKD 8yF5ZwKysR04r2lpdZtOOlMB9g/cs6/njSPmPfGrTiOUhqh+q+QGZWK02Vv/v53SnLki TZRPn9nFzombniOA2UJNYpSsbTQ3tDeMluvmeTC1PHconLTXTXoMsebGHcQ3q1yGlu7T SXVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rcCYNsnV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=X2zRB0wD; 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 q18-20020a170902dad200b0019a59c52fd3si16907859plx.508.2023.04.19.03.03.37; Wed, 19 Apr 2023 03:03:54 -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=rcCYNsnV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=X2zRB0wD; 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 S232887AbjDSKCc (ORCPT + 64 others); Wed, 19 Apr 2023 06:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232756AbjDSKCR (ORCPT ); Wed, 19 Apr 2023 06:02:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD245276 for ; Wed, 19 Apr 2023 03:02:16 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681898532; 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=A0gIrPs+ijZkyXP1O1tJbboOu7bibc0lzRsbRMQ+rtY=; b=rcCYNsnVbqSjq7MNfTint8zGhjLOwk4qLZiP+Af6vl2YdNnN+LdWhTF7hMVEVGCpgzNq5Z p09GGoS9F3zs3e7x9/5Pu4OySNfmMu+xPMmUwmD0sHn2dk6AZdE/N/TyHFP8wQl/C05Gkl SmPExEKegDmHH0PR/jlyKNjeUXqjrFc7guF15/M8kOzG+9Mbh75x+qqvRfvoyWP9yx7cTg REvnZMhZywa6XXXeocCQ0uXNRTMRvqlByh/EWfKBOypphBFtwCPe6QozNKrYSpWWknaftU 5KgJxH52Nr7g03ElRQXf3mNU4C5pf62whb5LySLYdz3lYQ4AiQk9njLXx8Dz0w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681898532; 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=A0gIrPs+ijZkyXP1O1tJbboOu7bibc0lzRsbRMQ+rtY=; b=X2zRB0wDbdkL36aUICixOnIxL0ETSl8ZAthKP5OvMKDfDsmC+NT4B5LGkkiLQ7XG2TpSZD paIiUugDSEoiZoBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 07/18] wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect Date: Wed, 19 Apr 2023 12:01:34 +0200 Message-Id: <20230419100145.159191-8-martin.kaistra@linutronix.de> In-Reply-To: <20230419100145.159191-1-martin.kaistra@linutronix.de> References: <20230419100145.159191-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,URIBL_BLOCKED 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 de44e79dd186a..ede9f7e1c446c 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4544,6 +4544,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