Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp138667rdh; Mon, 18 Dec 2023 06:38:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHejKcEjUDAEXRHiQbxnJdrIX1EHj0k6rqxAUQpY2UJdxk/mttiCysiwxt0il1pXpkRDybs X-Received: by 2002:a05:622a:11c9:b0:425:4043:1da9 with SMTP id n9-20020a05622a11c900b0042540431da9mr24719775qtk.124.1702910282599; Mon, 18 Dec 2023 06:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702910282; cv=none; d=google.com; s=arc-20160816; b=xQDSQRo821adQ5R3mmJAQpODGtB9rGHLROX78AIgfiEB6LJlqj7zuSgrPTjE8QO3Ks dShn1lvw7+6OsAe2XCF7vBkjSXvRzfygmYei43I4NlsLqATVIZrBRWHmJ3XNq4ou1VSC Po1k53+9TKAbv640bLNU4q6Poz7bwSnDnusijDJ0INLvOffQaeKjofsMWGgQOw2dR+Yb A9JansQAzZ2xi6PlhzXN+lF11+UKfVlU4S/ynSw56GIhqg2yDt1VgUwge8L01Scs6xHZ 73r++uaniE6nLu4XCW0TnIZWrHZPr7VRr7YbiYVK1dPGN55EF7qzDMkaiPou2fZ8jvLU b4QA== 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=AVbpg6g5sTl9EWm/5/FJyu5zvMqtzxnjXlgvdAKUlh0=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=kGzktqjHLwMOE0ShDNk8nEC11J/xgvkn79E4fOdL4w9a9A96JAsRMw0qLttsooAG2m 57qq+Rc3iQ8IMM3yJ0YW7CUAYJLj2ebRmiseCA+iBCMjDIXEjJsAIFflNgu9zxobehau +e+J8wh47M2OBHtCK38Qdy9NaosVuGShZ8v2rj/Yt/1dYFGj78jCGbdLnnoZrCxmLvBv IZb5DBnD/Za/LZvQhVK3wQNwWgynM3bZwwUHTEAAUiQrwHHMvyis00t4xdh+Gf0ItRsh yRwzzO/vD+mMx17t9VUAABL1ulNnoLlJDqKz3c/rGguy5CFlmnVTiFM4EqiCzu8WjnfG rTLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y8lZ4mbN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless+bounces-922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-922-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 bv24-20020a05622a0a1800b00425433fec1esi26026989qtb.622.2023.12.18.06.38.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 06:38:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-922-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=Y8lZ4mbN; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless+bounces-922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-922-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 5B5CE1C23FFC for ; Mon, 18 Dec 2023 14:38:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1D2B101DB; Mon, 18 Dec 2023 14:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Y8lZ4mbN"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vfx4H69t" 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 9FE223A1B8 for ; Mon, 18 Dec 2023 14:37:12 +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=1702910228; 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=AVbpg6g5sTl9EWm/5/FJyu5zvMqtzxnjXlgvdAKUlh0=; b=Y8lZ4mbNBHVoHG5hhTTIgW4j2wXwOJmcb4x4mxq9V1YIrKwPNL6NleUTNRTA3WmbHMbKPz OkLTitBpQJ57GLv4Qj7GqIF0MSg8fTOL6+AGx27BJroXRkPKMk+pJM7XcwjEvM32VjQB84 V0mtDhdxbwVAlMFdC9pbjmCa5Y2XuJ/C4EGNJ32eCC8/QYjCLy8XNS5kliFQBkWnhcXMDs 821wsllUsHZtNQa0/oFr5tL5mhUPJsD+3zDn6h3JpF5uzz38Pz2AkjOljdlvXZzNCInC3+ 1bw3UCFQMOl6kwL41nqGL1W6TDq333s5+ET59oScAh/koXbHr1P/FG1z4CFXRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702910228; 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=AVbpg6g5sTl9EWm/5/FJyu5zvMqtzxnjXlgvdAKUlh0=; b=vfx4H69tLT7wX5GKEVqEVjRFs7MW+q3w50ndSYLTfAeCGe0Elk0Tvmls5vWAeKLfUhyh3q Pe+vYmLMGT+0U+Dg== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH 10/20] wifi: rtl8xxxu: support multiple interfaces in update_beacon_work_callback() Date: Mon, 18 Dec 2023 15:36:35 +0100 Message-Id: <20231218143645.433356-11-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 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 --- 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 827e715f0e585..6683ff0f4d8c7 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5710,7 +5710,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