Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp698537rdb; Fri, 22 Dec 2023 02:15:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEm9coahzDGlqNul8pHiR2A6kGfQhAd23Z4P8o7teNTRxMHBwgUZtlc4ybJlB7QAD7kXHyR X-Received: by 2002:a05:6214:234d:b0:67f:4607:a624 with SMTP id hu13-20020a056214234d00b0067f4607a624mr1371705qvb.34.1703240102135; Fri, 22 Dec 2023 02:15:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703240102; cv=none; d=google.com; s=arc-20160816; b=alA1C/waEVEL2ZUtwHTxA6+Tc037dvejEbA2lw2Um9eHhJb3/X6HUl6LOrwAMrnRh+ Pj9y6rLlyH/cNJGD6IfCRFmYC5FVIdjDpKWLvQSLROUh6Y/LBuR50r8UbtYki4dT/l/f DBlF+4p9Ma9XDHj+ddHJCjrU9X5hEoU7hsdhBC2Zva7QIXN/1ptgWzvDl8oAlIDJlzE7 UpXxiuFGhX8kr6isoJaF4nZ5fFSMzU4kKi118Ds9ep6FloIIIRAQa0JtOqBh6qwcg4lp Ict/wzbYA9mHpzDAHfAa3+hFFdy8tZIJC6DI9W927hnXt2z4QhqMLsqVz2CTMQMrw+kt lTeQ== 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=jIa/RyCnLKztyrjj7ax4xHxgxoBJhpVyjnpcjcJc2WUEMCcqbBCLOXiz/wgplROMb8 9/GrDDm09XwJxnOLAwN03oA2LOabwhX8m7RCbj+2+yLJrcFmJ5H2wQmvNGT6Ia7DWTgw 9FAQG72zT9lxh4ghjxSzwoJg1Y6mAH1qcEOcNcJqHl/H7P8sdJ0zeADVwJuDEwJACi6d m8TVtKugPchXe8DBbVPk4Be8Lomn+iLhxgUAJk5zh9tQN6WtI0AC0fIjo1O4Z6MYq0e6 c7/xEJDqtmh1LMfWmmJLQORYlOW70AVVRJnPMW5XJbk2FJvCMtsVixuBWaon7NwVQ1cj XkAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PYkicMDK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1224-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 t2-20020a0ce2c2000000b0067f60f66a13si2486539qvl.581.2023.12.22.02.15.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:15:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1224-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=PYkicMDK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1224-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 557511C25260 for ; Fri, 22 Dec 2023 10:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75FEE12E7E; Fri, 22 Dec 2023 10:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PYkicMDK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="91dTps6o" 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 2865311718 for ; Fri, 22 Dec 2023 10:14:48 +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=1703240087; 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=PYkicMDKurraPaf4k2TV8pIMdoYKk93gghKxl8jGjL9x406F8sBJAyRkvjs9Yla9MuA1ca qHTw69Xj/oY6RtJ2oQEORP+u+hhePDrIjZDXwSUL0M6atxWz0JQmr8PnbSfryG7OhVm5uj WciVJvtkylEdkj6L39i/igNpufzDIGnlLxxfxYa0c99NUCi7mu6mLnxG9mbaSy55wIAzQK ziGJDeFKdg82z6FWFdWHOpwfN+NdnbqH57gZ200GRgPogSZU0q+XijpmhYJdrLv385eRTB Jvrdsr9BSQC7hH7pPTsxBGWm3v0BnVMJ3XmbgswGzLl6C7QFdWhOFmbkYXDu3Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703240087; 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=91dTps6oqJadQAFG+Tn+NaP1OSzcMH9k9Y7bHN6EDoYJnCUM6TWMW5ZeNS2gcncHGycRgt P9wboWwRQam0t1BA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 04/21] wifi: rtl8xxxu: 8188e: convert usage of priv->vif to priv->vifs[0] Date: Fri, 22 Dec 2023 11:14:25 +0100 Message-Id: <20231222101442.626837-5-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 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