Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp272412rdb; Thu, 21 Dec 2023 08:44:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjXT5UdgA2XyvbFFB4cwYUI8p1J6RHkaC/GTjbNu58mE8eaFjV4mT08+jbWi7SFTgj/chC X-Received: by 2002:a05:6808:ec7:b0:3b8:b063:6bba with SMTP id q7-20020a0568080ec700b003b8b0636bbamr24210065oiv.105.1703177058893; Thu, 21 Dec 2023 08:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703177058; cv=none; d=google.com; s=arc-20160816; b=xtxo5aSgrsU3RBH0jelCGpyHA3W84ZYfy5LYPVoVAt4Fy+WMoimWCa4DsG3+klVxrQ 1fcHnFkkwRYddm8qAh+quEM9ZzV0KeqFVFinK7UnD/V8X6SRhC81bF0vQwRzmOPplSVm f0bNxC1E2WD8S/FtpR/50HWCzeiE3AryUoPoEUdVIyYPOqSFgiVSoyrSQru3Qday8n2P fiSVi5NMqTlMJeYF0P/m4eZY7xJ1CVqrVMPEgcH+e9Wj9zxch3QP9FlFndnn6E5jB7Cc DVrKJeTeRR358mF18VjegCdMWHZ4V1XfKzQgolUusnLgvJtNj6CKf0lUmd2crAqbSvjW 8yyw== 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=AD/UWDpvb64eNsq/DlT0s9OFs2phvtiEvsApnsLFqZU=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=sLrbQS5oqZYy1cIIITvU0OULYuyR2SY3eUHsLVJioX2MHdn4r+EehvDN62MspVxB6+ OxfH/7kAWw0fyFhUYcFf1w/P+GhyXASazvb0a/vILdTLqxlQTFugCJ9g/bhRkqKb3WLm 61W9aYZAhVChvIqYXlZZLVQ9D36EZrHvrTlt1y83Csjeggi0IFVA7pw7NS1HP+3yvvZe OtTJ3enAISIaseIzSkI5lXrNIKI0G4EHxdPDT1gMOCgL4YqCgJFAJvPFrZgI+klfcMI9 cbxlUejakkmj7UmpDkatp473vZzex6BREIroDdEW+MYbbRR7PldSPGvqRC0y6IKeuDAH +wdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GPHJAXyk; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SX7TD1ak; spf=pass (google.com: domain of linux-wireless+bounces-1151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1151-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. [147.75.199.223]) by mx.google.com with ESMTPS id va23-20020a05620a3f9700b0077d7d836d92si2801545qkn.149.2023.12.21.08.44.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 08:44:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GPHJAXyk; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=SX7TD1ak; spf=pass (google.com: domain of linux-wireless+bounces-1151-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1151-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 84F041C24524 for ; Thu, 21 Dec 2023 16:44:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63FD15820C; Thu, 21 Dec 2023 16:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GPHJAXyk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SX7TD1ak" 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 05E8E58207 for ; Thu, 21 Dec 2023 16:44:10 +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=1703177043; 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=AD/UWDpvb64eNsq/DlT0s9OFs2phvtiEvsApnsLFqZU=; b=GPHJAXykTGqE7nYotEpY1X5CSsPHKHMtDKwY+OypBQxuJFRcCNuHEExT8f1xabWdF3aPbz Gpp9E464Rdkpf9siLL7mPCjtlguDU34uGk3UBWquNWvXVIZCZ9KGVSM50iBO/A1B0tek3N M0iOnt35Ai9ndtcQsFIhSwjbifQxQn7KgEr7m6su17hHXUaG+IgsuDnegqbThVFyTLX0X2 jGRrDYoMPSetCjBrIymmg0GAwSwmDTVP5HdBk3pMyyCo21Kor9lwmNbMHyPvA92wBhEooy n0mcNJZVXDTVRbcs9zVhd9/YKyt1LDlOFEPU5qka8qITrYANs9+fLroLd0rLEQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703177043; 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=AD/UWDpvb64eNsq/DlT0s9OFs2phvtiEvsApnsLFqZU=; b=SX7TD1akZMoMy5h73TiqUUBZhzUnoIu8zReqg+LEOuEzhNNxKXQ+/exH7ByGAC8CFkyTSl cf4wGJEYrwdWodBg== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 04/21] wifi: rtl8xxxu: 8188e: convert usage of priv->vif to priv->vifs[0] Date: Thu, 21 Dec 2023 17:43:36 +0100 Message-Id: <20231221164353.603258-5-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 The driver currently does not support AP or concurrent mode for 8188e, so just use priv->vifs[0] instead of priv->vif for now. Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c index 6d0f975f891b7..cbeac9386ae51 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c @@ -1699,7 +1699,7 @@ void rtl8188e_handle_ra_tx_report2(struct rtl8xxxu_priv *priv, struct sk_buff *s /* We only use macid 0, so only the first item is relevant. * AP mode will use more of them if it's ever implemented. */ - if (!priv->vif || priv->vif->type == NL80211_IFTYPE_STATION) + if (!priv->vifs[0] || priv->vifs[0]->type == NL80211_IFTYPE_STATION) items = 1; for (macid = 0; macid < items; macid++) { -- 2.39.2