Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2230127rwl; Sun, 26 Mar 2023 18:52:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ZWoBjexRZKnzlKbTshHSHMt2x/0qmdQjd/9X2kNuuGIm2SESiqMsbiKKxqjLVt4Zd50PC8 X-Received: by 2002:a17:906:fb93:b0:92b:8fe7:344 with SMTP id lr19-20020a170906fb9300b0092b8fe70344mr10073771ejb.16.1679881971410; Sun, 26 Mar 2023 18:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679881971; cv=none; d=google.com; s=arc-20160816; b=KrHErJgkmG4yMvOYTGUOtW1ZIbh7cDmyBP9GhO5tVvINfnqRFKrPF/rUN7ePCbTv4l i3+NtNtUb2a7C8Q3SDmBknRvNxPUpzpp28ZABMH0gS51uIVNFsNIqSCAGOc8ZdiRMqLF L337jZVDsJ5LmZPgW7KTvuMMj/THAwQcfVNLyNg+Gmzl6W3diTkA6RXtRac7ev9lLDxc 1dMmRNWx5DJA9C49iddLbBINk1lP0MZQDlr2ZL4EDvEijd2zJR7qModyYfTQYVIUbsnh 0k0AkxCIRyLSjccI3JVVmBG9EWBVxeg/Oovw1bQxD3V0PS0ZVsIh4QQW9WGFQAb+IgaX TxoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=ksuWLNXstALCzgKtbGjzqa+rzkz6Mv3eI5vnxtAlNfc=; b=Fhzma9ifrHKVt88zwckG5BVemVIoNao7VyhZFZ+ZRIAmuZk7X6oJ3qn46/4VkwdSTY 3t2GGtiFhydNOX0ChPWfj3NoMtc4R2Qy3wgzo5KgoLhvSpawThUqj+9BJjj1J9QanaFL jPswpA50siORPlVDCuHFAP/l5SkZVwcaNOAavh4KzwyOIpcPGxfUtQ9rsYSYn2n3R37A Uy7pYOX+MiW3QiDSIcLaEOI7KzbwVNeEe3TWxiEEDjdcJBmJxUoqO6s4R6AHnyh480JQ qN2Ct+mWF3X5I4r8eJwQgOWAHJ7m0CIwPh9Fke9cjwyQKrmTzIeZfVdthQgraNI+roMk 4fiA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh10-20020a1709076e8a00b00939fc1918e2si20402692ejc.639.2023.03.26.18.52.36; Sun, 26 Mar 2023 18:52:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbjC0BtP convert rfc822-to-8bit (ORCPT + 59 others); Sun, 26 Mar 2023 21:49:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbjC0BtN (ORCPT ); Sun, 26 Mar 2023 21:49:13 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0F1355A8 for ; Sun, 26 Mar 2023 18:49:10 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32R1mhViB001065, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32R1mhViB001065 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 27 Mar 2023 09:48:43 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Mon, 27 Mar 2023 09:48:59 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 27 Mar 2023 09:48:59 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02]) by RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02%5]) with mapi id 15.01.2375.007; Mon, 27 Mar 2023 09:48:59 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [RFC PATCH 08/14] wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect Thread-Topic: [RFC PATCH 08/14] wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect Thread-Index: AQHZXOKQ/JqNXL+IBkee0nc+ZT04da8N4qRw Date: Mon, 27 Mar 2023 01:48:59 +0000 Message-ID: References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-9-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-9-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS06.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2023/3/26_=3F=3F_11:06:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 > -----Original Message----- > From: Martin Kaistra > Sent: Thursday, March 23, 2023 1:19 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ; Ping-Ke Shih > ; Bitterblue Smith ; Sebastian Andrzej Siewior > > Subject: [RFC PATCH 08/14] wifi: rtl8xxxu: Actually use macid in rtl8xxxu_gen2_report_connect > > 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 b5cb15e472f1c..4209880d724be 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -4557,6 +4557,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