Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp698836rdb; Fri, 22 Dec 2023 02:15:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8fTFsoQrdEu7jk9nm1DgLp4NIzokbf7P8wzKWr5AW4L4NT4tIOufozWoJ5sdtGNx4vge/ X-Received: by 2002:a17:902:d503:b0:1d3:f43a:a2d6 with SMTP id b3-20020a170902d50300b001d3f43aa2d6mr863234plg.122.1703240135742; Fri, 22 Dec 2023 02:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703240135; cv=none; d=google.com; s=arc-20160816; b=QYiMR9xTp3xwoiiWqJ8Vw3tRsMPPfwnpV7M7JC9belzOLIz7ulBbusw5q718YPqCjg qrkpqYd9ttQJ6Vn3VpKfjd+seeQlAlraDV6L4o/tSJo4opv3LNd3j6Oi5B+npKn3yWNj cTVNZx4wHa8BFIwwFxOW1fzO5iIiWFRaIbXxtcAqfjjoY1ui59tX07JvcElUN+t7301L 9TVB8zGvUO4bZSguwy/CASRizD39aHXNqaUeJG3ivkgB6B2vwEKTS022NP3EfkiMdMCT pOmYiPJLmZtvYCCB/cRPCL57IN3ZZegBZmVFbQ5OA7L90Fq3gu09h19aKyZO55kmFfK5 ye1g== 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=YYFdViIjlESDzhteIs2oPwA/vKJ2vfKkn8h4MvsolD4=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=fZouIYSQBpIkyAyfROINTTMs8lfA6fTQeM36Gfk6J19rERdWR4V3isJsMltXQolK6X 3exliZUoRZbnBZR/YB1wN97+V5QIg4wgQPvyvLpOwXQuyMPgfcA0ItqnxVijcpPpTZJ5 SLO6lqEG2Yzm3P4d4fYS+bs91b++4NSARbf1aDYz0Jeu+oonXwkleQ+TCTGImhNsbL+J 3kMNPUyq0Wo6gERpuZb5xzOW4T4pBZEzIwCbqCsvpoUIU4BPhIaITmwpf5xJp+2IG6f2 hca1ArxKi615nHzhupSrHaUAKHTufxVKHDFxwlR7XOqhnvU614HIwctZHgAIymjDIvDl hUAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P6KodoXu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1233-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b11-20020a170902ed0b00b001d410d36b14si1858295pld.31.2023.12.22.02.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:15:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1233-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P6KodoXu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1233-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1233-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 52D4F288459 for ; Fri, 22 Dec 2023 10:15:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E04E21803D; Fri, 22 Dec 2023 10:14:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="P6KodoXu"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rPTjKGap" 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 D46FA171C7 for ; Fri, 22 Dec 2023 10:14:51 +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=1703240088; 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=YYFdViIjlESDzhteIs2oPwA/vKJ2vfKkn8h4MvsolD4=; b=P6KodoXujd1biP+pP+6JDahTOv/Bcf4ThZO0r3KZ03e8SgWNU47SK6Vsj8PgWLYXo2vqig +QKNxNqO9OG4i17DfjaiMfg8VI7ODRJFXvqJxbn3+LuBjyXCp1yeTVXOA3yZrkgfCp2hlX dJF9NH+l9pbVyF+15KyKrzqAEEBQOMqVDqBDJXwJCql3UjGX6CwlblRPWOufqOW53XSNT9 K+ReEJG445DO3W+DewA8HVCv8u2UiqELViGZNzJbiyFNFB0jWubplF97sKdTZuiJ6hhK0k 7GGwZW0nDsshTWqq5tqr8MxajBzlqmikn4f35YrApSZxHU4G588E0DMORPV0gA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703240088; 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=YYFdViIjlESDzhteIs2oPwA/vKJ2vfKkn8h4MvsolD4=; b=rPTjKGapPWDk7VyN52qh6qYbd+3K4W9Uj26/Q2iB5e0N8uMwiDR/DK5OvOGShKkwyRGqC1 /3PSc1i+ht7R9CAw== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 11/21] wifi: rtl8xxxu: support multiple interfaces in update_beacon_work_callback() Date: Fri, 22 Dec 2023 11:14:32 +0100 Message-Id: <20231222101442.626837-12-martin.kaistra@linutronix.de> In-Reply-To: <20231222101442.626837-1-martin.kaistra@linutronix.de> References: <20231222101442.626837-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 As we only want to support AP mode/sending beacons on port 0, it is enough to replace priv->vif with priv->vifs[0]. Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 99fe567e0f75b..680dffb9657e1 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5712,7 +5712,7 @@ static void rtl8xxxu_update_beacon_work_callback(struct work_struct *work) struct rtl8xxxu_priv *priv = container_of(work, struct rtl8xxxu_priv, update_beacon_work); struct ieee80211_hw *hw = priv->hw; - struct ieee80211_vif *vif = priv->vif; + struct ieee80211_vif *vif = priv->vifs[0]; if (!vif) { WARN_ONCE(true, "no vif to update beacon\n"); -- 2.39.2