Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp272974rdb; Thu, 21 Dec 2023 08:45:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBsTrEJb8nt+IcnKmYK2rtIsaetme83tjTMlCOlUo127oy8qc8ehxicR1cDQAQO3bMZScV X-Received: by 2002:a05:6a20:8e20:b0:191:60f3:3a50 with SMTP id y32-20020a056a208e2000b0019160f33a50mr1410559pzj.77.1703177122662; Thu, 21 Dec 2023 08:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703177122; cv=none; d=google.com; s=arc-20160816; b=n+QlCi9b0LbOgOv9muY4yYuRWy5pDngqbsQu8TYGt4wTIbk70DGJ1tchpjBSK/J1k0 7zy6kNdlKUVyHxDkWPjFhnvcwmYHX1IpZAASJ79IJ9cimQ1wMOUqlLt8m7RbzGSXLQVi K3p6vJ6zn31I+jEnAJxJUWSMtZM8XxCmu7eoVCKnb0mfmzRm2LEGMyEk/FupHQjdhPIc KYpYkCq4KGne1lF2lRcKtrbbxUsNpjAkRa+w/mzjtTvtajPFrDLJWqD6b2Bqg87ZXuC9 3XpcHGcirl1nIeX4No+AWNapNe9XnlTSBQokSE/AAUQSb5vW+MqdmYgkzIHO7+uyL7E6 CwGQ== 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=Z8KJMiIPzq0rJj7++KPwxEDIyl6GLvtdC1YJBAY4IsVokLZZwz/LU5wIT5pIKvxcOU CNY9eQ4obZDJVWh5hhr9zHiUR2fN8UX4ECUUY/auL0NoS87F9DDlOCTdDuEGXwNoG59x IDPB3z7oAEMcDRkEqB0yfPMRjt6HC3RDDoSeqHf6eR7EHYSqRH9DjHZtiyAhybVgIz9/ 6NInvHtFsUQwXpYHAJX4mlvFvju7YGV4GaWKQXafrmLojrwl4bh450Tnqe803HMZtIHJ 2jdwNRVqzOeGH2Bru0gU4iL82fX9AzHCrUUmreIeYMSiLzp1SZw9mYn/YEHMRRlJCLX1 cGSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="GBQkv/u5"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+2kNyYHN; spf=pass (google.com: domain of linux-wireless+bounces-1164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1164-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 24-20020a630c58000000b005c65aafd65fsi1873485pgm.93.2023.12.21.08.45.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1164-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="GBQkv/u5"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+2kNyYHN; spf=pass (google.com: domain of linux-wireless+bounces-1164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1164-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 24BF1286936 for ; Thu, 21 Dec 2023 16:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64E06634F0; 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="GBQkv/u5"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+2kNyYHN" 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 BCCFC55E73 for ; Thu, 21 Dec 2023 16:44:14 +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=1703177044; 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=GBQkv/u5Fn7wo7K49zrWlYeqMTwbju4qSr+Pezfb/Rig+DgJN4u4EQx++vlmZ7//W2NejX Rg8ZCj3/StfDZ4CeacER01B2xqap9Zpa4ysZ1fVmRlWsU1SLND5T18LHrIIEd5uN53M+CX 1Pb1FDr9FbFEqtWrymDp7aKMW9nvC8ugJe439+iL5IcuklzeP7xGKpjwD55hEP00L+Jvo6 4PqhF4PaH1cxBzUAovA8S63NHDXJIPiNZG6Cfg6SoJH/r7FHh7bjpv0lo5c/owEC5PGs32 dyFQO4wHcc511J34zd40kjzSwlZVab6ODHCWQAWdlMzduyKUTr+NPfNZwQKp9w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703177044; 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=+2kNyYHNEd74iWBlT/dJcYyiSbOJtXAhTQuCa416R3zqBw54P6Vbjf6u02xXcEhXn9Pgzi naVZX/GpZVnkDaAg== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 11/21] wifi: rtl8xxxu: support multiple interfaces in update_beacon_work_callback() Date: Thu, 21 Dec 2023 17:43:43 +0100 Message-Id: <20231221164353.603258-12-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 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