Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6420872rwl; Wed, 22 Mar 2023 10:20:42 -0700 (PDT) X-Google-Smtp-Source: AK7set+VNN1f5qi7xZLYYo1hmNND/7LQcTf3xO2UKiB9lVUfVAEPck74l9Tpg5ehP4I+hzQaMy8j X-Received: by 2002:aa7:d74d:0:b0:4fd:2290:976d with SMTP id a13-20020aa7d74d000000b004fd2290976dmr7310552eds.37.1679505642345; Wed, 22 Mar 2023 10:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505642; cv=none; d=google.com; s=arc-20160816; b=SR10bxw3SrMXjK5sqYrsAxCT4mNVkFGKHHNbUCZrfPkYxlo8I0e7/OsxYAUV1vQXoT AC/TuPtDFG69G6WJlL10AF8oXWuTt7pmpXLj0J1i74Ceb58530fUwBfnf7FkEcxzVPt9 KUqLercVxFvrt7jV/P3GlRob8Y2rnMffm1fBAECxeE8HJd7ow8jOphB1SX3teTEJcXKD /wlkGEM0eFO56KggkuBzPYPUz9xhH2VZN5lk88y81Q1tN+gVTkXpRpl9LBoXI2Y6VKQ1 KR24htUidC3guuQbDvaGEW+XR4QBTMA65tGj48J1VReSGUA0NHJevV1feUsmb/rzEBAX T2wQ== 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=HvH43liTSFhtoqxAQJqzzltuuGnd03E0R/xvDDhLjFU=; b=BzMyUZZTCj825RzCh1+dfzOPI1TSDVJuHMqG6vMcvry/R9prHlRwURbBZfdfpAV/WJ snBUT2GS/guDx+oDu7TSGeECafwTXqIdwIJT24Ebr9qGnJtL6W3/7brQpzlE/MRYL+Vj Q4/m3ws4taPFzPAF+FiPbSPuRmxiKh9onoqLBkk0ynqMEh5JgRkC79d9p7tGjcatD6kP dseRs13WFLo3LacOQ86hHJngGrNsFunojBYUKB+H91BCtAcHFJATPZDwJ3cCarliu6KL i6DLVAQf4ztXCyV8qGTNEInK6/myPXFROQzw9WpQJNRvkyUIXBMprtWCICBM4I2vuMkU Oo7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=coEyn6dW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QocSV4JC; 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 v17-20020aa7dbd1000000b00501c4e398fasi8444367edt.142.2023.03.22.10.20.27; Wed, 22 Mar 2023 10:20:42 -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=coEyn6dW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QocSV4JC; 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 S230454AbjCVRUI (ORCPT + 60 others); Wed, 22 Mar 2023 13:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230449AbjCVRTu (ORCPT ); Wed, 22 Mar 2023 13:19:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9648D64B3E for ; Wed, 22 Mar 2023 10:19:32 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505552; 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=HvH43liTSFhtoqxAQJqzzltuuGnd03E0R/xvDDhLjFU=; b=coEyn6dWgH9cftZJZ3sSE+LxjdXOvixrZeTU853M0TzCqp0fFwu91BLlZg8TgMVCTQUt+i JuoIXM5WVQc6z7KBrvzRvA9spyQXy2XbkZXha1a7i0/vExv/ZJ7K4OfecmEJ8FlMO+e7nS eolvObLxeO2rxiMQdzeQib3wlfXjGCpX8PfyM4BtsZgDFH5IbcyH2XoLl1UGJgaF639Kss 2cIUbn6whygr0RmCnQgIDWJGFl97zWc6/LkJOB+n4781fSAM51FdVV3jPUNzh9o/MZ+qkE w8zWrvFeggwfLLZKDmh+xQI4tTU76s6eIdBRX7/FtOHwnBipREE3SWiFkobpiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505552; 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=HvH43liTSFhtoqxAQJqzzltuuGnd03E0R/xvDDhLjFU=; b=QocSV4JCu6QtVGb7E82zLZ0YTtOI1dQpTC8R/kIRDL1XdPxV5YdHLaSohNHSKbjehevElU RsKu0fO8s8kZH4AQ== 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 Date: Wed, 22 Mar 2023 18:18:59 +0100 Message-Id: <20230322171905.492855-9-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-1-martin.kaistra@linutronix.de> References: <20230322171905.492855-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 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 --- 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