Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp273002rdb; Thu, 21 Dec 2023 08:45:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmUh7RGyTlr8amiv5SoPisQNXLcNUvlXSabQT/77Y97JzaDn4ysMzhd51JRzWoqg86sD7R X-Received: by 2002:a17:906:e29a:b0:a26:97f5:85aa with SMTP id gg26-20020a170906e29a00b00a2697f585aamr31436ejb.149.1703177125309; Thu, 21 Dec 2023 08:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703177125; cv=none; d=google.com; s=arc-20160816; b=Zey6u3dVzreABb7G1bg/haJtsdtf2IBamZAl8VIT2z5nR/X65Aix++W5LIHe5qRXgZ HxisyMDlNxnMnynjQunABCCtDyJX4l2bxxIcUOr5cMpumvjRNd9McsFCMH4QVKCHkdph DbK+EEbTwA1R98rgAhhZPKKP2QFlbglNYliEQO6vvnUK1RxeZllHauLXwV07zHqA7YQL 7ejqp3SHaij33GPbgtQYMm2jsBlapXRTfP3JvVA/HgCxKtjdVELaw+HGtYaECiDjOKiz prIM8mdG06LiKlMIqmlqoLcD/aZBlyMIWZARw6vmhnLFF8FOzXQrrwP9uR1rwA6w5+nl epNg== 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=zRk4m+3M6izeZ0mA7nRGeJ3BoZePGHkX8ECIhqsMmgo=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=OLbQnFe6ZNGUyAbOcb+qHuXy3GgPoZUINTwJt8cgcp8zqKzIlKy65ElrKOx5HXUqnu 0CDOUDIp9rRmmK9/jssU2edilM+PmXuKwE38Uud0yCabkianPh64vsMS5EN+643iPvs7 fAapkQGvQpJ7BqkMuz+kNsHQQft0+ekSYnLuz2K7DEENxcEA4TDfWnvQzpQRm8nA1Ruq pRUI/vh38chli0Y48ulH5PbDNE9y8MSqdMdItlApj/vhXf99KjepZDjoLvnDBFe3+Kur q3cvbK7WgKktEexzLTLp5155WHnjnOMkEO8fMqkp6I9ijtqFs6WlzkejgoPunbT7x3Ls mpXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lFPs1k4E; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m21-20020a170906235500b00a2699070721si952584eja.519.2023.12.21.08.45.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:45:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lFPs1k4E; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1165-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1165-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 16FF81F25D89 for ; Thu, 21 Dec 2023 16:45:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0D3555E77; Thu, 21 Dec 2023 16:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lFPs1k4E"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="a3Yka52/" 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 4A2C7627FB for ; Thu, 21 Dec 2023 16:44:16 +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=1703177045; 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=zRk4m+3M6izeZ0mA7nRGeJ3BoZePGHkX8ECIhqsMmgo=; b=lFPs1k4E96J3MiSWo9gyHk7fk3u8Mt6fJpZ99FIhEfFjy4SW5TtaJwK2hmig31LU1iyYcE rDvaBHdVzf3I/6jcybnq7Z8cOrCvREE4LhfQ+X9ndODfhv2CK7Bkr/tsDjjkA9oX3T/TDY /rkjHkq58e1Jyv9Iad4DEzyuet05oAFbDLMtWwZLwj/6+M4CcGonBwjNdOINDLbZJe1W9y kU9kQbdMH5XD9JhybMBRwbx+6Zva+NDvgltwdyCkpXrYJ4XGvertcbRzkv0vhsTEzJynQA ketswRdOBLwtKmRIougDLCe/eB8ouTj8d/hvfLHLzh6WK0Xc47n5z2EgMOxWWg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703177045; 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=zRk4m+3M6izeZ0mA7nRGeJ3BoZePGHkX8ECIhqsMmgo=; b=a3Yka52/RESgpdPQ/a+dew5NTUCxfInLo6UcqTifML4cdtfKSuFw9AkD3DIHEEsp8waMsW j78HX68hwLleKjAQ== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 16/21] wifi: rtl8xxxu: support multiple interface in start_ap() Date: Thu, 21 Dec 2023 17:43:48 +0100 Message-Id: <20231221164353.603258-17-martin.kaistra@linutronix.de> In-Reply-To: <20231221164353.603258-1-martin.kaistra@linutronix.de> References: <20231221164353.603258-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 Reviewed-by: Ping-Ke Shih --- 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 aa88e66c64d67..5e4e6c006cc1f 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