Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp138820rdh; Mon, 18 Dec 2023 06:38:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmRX1t10Ie/YuZdNZ6JTxc8SBLl4cFMZMHnZydccJny0PXrlwFGcm/xf3o4G4fb8463qSI X-Received: by 2002:a05:6102:f12:b0:464:9467:4fa6 with SMTP id v18-20020a0561020f1200b0046494674fa6mr11749409vss.16.1702910297712; Mon, 18 Dec 2023 06:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702910297; cv=none; d=google.com; s=arc-20160816; b=NRDsOktJCfE9HJcMBsnL91bn42O/rlID42Ny+9MKHHMwt30Aocu0KKZq9xQbowiIb8 cltBZ3P3hotwOvSiH18wvnX/mQqbXAeozkyn65Z5qp4THHcOxOFV99H5hnptd/h/U8XO Bz3wERh4S+rAONnoxyPdVsqmifuoYfbuiVLJz08dn66VBK/Te/KeohewpQ2zxDc2m6VE 6tUwEgr5pADuiom5gB44qTZ3JzIoXORskkI3X9LEExPdXhFrJ+9d0mbok2t/48iaEiWR tM13X+l+DUDYmD+8n5urzrIHapnTRrIQPISMfT2TYz7+XTT+BiEkBDS//Jh/B63vyTig KU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:dkim-signature:dkim-signature:from; bh=ekGZde80ryPvRrygxKOP62jjy+O59aTejVkHWJWxnAE=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=Esc6WM8mKbbStDWb+7dnx+5m1pMH5B8YlibygpGDqOtGIFvHtOM7qYZkLSjGdlSwY4 cG9oqv+W9Nor3rojm4c9uZEzDykKwpUGQgjC08S8y9m037AUCsXBn8sYlGZiqAt1xGi7 cXxkEELKiFo9CwsWu+vXHnZu1aP/waTDqS8UTCNVHoyvtm/AJLHNNCrm+Q0+fyBfrmE3 N12fmPsO1JTYFtwxquqxRjIbxMd+12Ixl/xFlIHy98o3c4ugx9JtqH/n3Dst1OCgaKlC yUqYPUVhPbtUA5uxavrvibHBEF+NOCDhthJ3eRpGHv+vou3jGLqBy566KZfwUgiuTlwp 3htw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BU841PcR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless+bounces-925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a15-20020a67eb0f000000b00466937f8e90si278985vso.638.2023.12.18.06.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:38:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BU841PcR; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless+bounces-925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 73DDC1C2441C for ; Mon, 18 Dec 2023 14:38:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9639342A8E; Mon, 18 Dec 2023 14:37:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BU841PcR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DGZZft/c" X-Original-To: linux-wireless@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 556EC37881 for ; Mon, 18 Dec 2023 14:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702910229; 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=ekGZde80ryPvRrygxKOP62jjy+O59aTejVkHWJWxnAE=; b=BU841PcRXAkmbQhZTYvR3Hd3lsPsvZnfUH8YVDBP8yjWHSGtff6XcRT2jdS/UqTDxnq4Iu VMqNoXpVMhorZh9c6dE1I2230NixFfWf6yAGz37DPvlFXh7IWRixuuD6ZfHqxA2AA5VtyQ QchXSibZyHVXI4tCjWnVz1BjCpbSn2Nrk67W4GNchMU/UKfv/T/LVqVhih4k6VHzTjZuq8 /sUK7ZzAsiOApnVr7D+EaFuqgUtomZk+ytiydAcJXyjVoPAhWOIY9eA0hddRrrk7hGjgox cSheDKtfaWRAhZg2kQGuJk/UzQS10fWqI9677CUx9324thcGbyX1Iq6KSnhLbg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702910229; 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=ekGZde80ryPvRrygxKOP62jjy+O59aTejVkHWJWxnAE=; b=DGZZft/cZWjDI287XyJlefC57LmIXF66UhqbW3MCQI3En4SOxd/LXPdTZoP/t/c+Azo4Jd bXsWMrl5LsBBc3BQ== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH 15/20] wifi: rtl8xxxu: support multiple interface in start_ap() Date: Mon, 18 Dec 2023 15:36:40 +0100 Message-Id: <20231218143645.433356-16-martin.kaistra@linutronix.de> In-Reply-To: <20231218143645.433356-1-martin.kaistra@linutronix.de> References: <20231218143645.433356-1-martin.kaistra@linutronix.de> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Call set_bssid() with the correct port_num now. Signed-off-by: Martin Kaistra --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index f929b01615d00..3851fc90339e0 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5111,11 +5111,12 @@ rtl8xxxu_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, static int rtl8xxxu_start_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *link_conf) { + struct rtl8xxxu_vif *rtlvif = (struct rtl8xxxu_vif *)vif->drv_priv; struct rtl8xxxu_priv *priv = hw->priv; struct device *dev = &priv->udev->dev; dev_dbg(dev, "Start AP mode\n"); - rtl8xxxu_set_bssid(priv, vif->bss_conf.bssid, 0); + rtl8xxxu_set_bssid(priv, vif->bss_conf.bssid, rtlvif->port_num); rtl8xxxu_write16(priv, REG_BCN_INTERVAL, vif->bss_conf.beacon_int); priv->fops->report_connect(priv, RTL8XXXU_BC_MC_MACID, 0, true); -- 2.39.2