From patchwork Fri Dec 22 10:14:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaistra X-Patchwork-Id: 13503142 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 A2C2A11719 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="EZCaYbJf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dhw+seXh" From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1703240086; 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; bh=5Rf6lDtBE6PJbzVd7lbW6EnseC+vJLY2DxmhoKNQwBk=; b=EZCaYbJfyhKPeLOllVYTL1YUgAySsn1qYGNbaR9E9UmLSTAg60F9MDcBYLsJ4L8aB0RVBf udP3S7y9eCiJHUpX2KKI1nUAtfnukf5DftSomtvMvdtTDjwWSMHqHSSwli0Dn2eXoZDU+i OaamSOywM/kPyb+qaiuU5QpMIR1aSMv/+ZQq1cuPyJ3dvBeS3rVc5bvV69jhPNv/Dfygz6 +/DQu5Gi13rCoJMl0tj5qw9unRlLBybe8eINjFTVCgu9lwQBHPzo+J+Y1BQGHgWyjCQKNZ /OQdSlLHKmZpTpwSAB3WkzUzdvPrqW6nh0Oe0NG3dIwQQ5KDqhpn2UhFWEr57A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1703240086; 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; bh=5Rf6lDtBE6PJbzVd7lbW6EnseC+vJLY2DxmhoKNQwBk=; b=dhw+seXhJgaZQ+bi6lXK7i5Ue+td4bDSqNwRht4CN/rA7yt8Ni5hNBVkrJ3/70WAzmdvZ0 PH7fx882CABTYZCw== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 00/21] wifi: rtl8xxxu: Add concurrent mode for 8188f Date: Fri, 22 Dec 2023 11:14:21 +0100 Message-Id: <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 This series adds the possibility to use two virtual interfaces on the same channel. Supported combinations are STA+STA and STA+AP. The conversion of the driver to support multiple interfaces is split into individual patches to hopefully make it easier to understand what is going on. Thanks, Martin changes from v2->v3: - collect reviewed-by tags - fix checkpatch warning for comment changes from v1->v2: - collect reviewed-by tags - coding style changess - ignore CFO for STA+STA - extend watchdog_callback to call refresh_rate_mask for both interfaces - remove port_num check for BEACON change notifications - add macids for STA mode - add number of sec cam entries to rtl8xxxu_fileops - add comment to switch_ports about using the function in the future v1: https://lore.kernel.org/linux-wireless/20231218143645.433356-1-martin.kaistra@linutronix.de/ v2: https://lore.kernel.org/linux-wireless/20231221164353.603258-1-martin.kaistra@linutronix.de/ Martin Kaistra (21): wifi: rtl8xxxu: remove assignment of priv->vif in rtl8xxxu_bss_info_changed() wifi: rtl8xxxu: prepare supporting two virtual interfaces wifi: rtl8xxxu: support setting linktype for both interfaces wifi: rtl8xxxu: 8188e: convert usage of priv->vif to priv->vifs[0] wifi: rtl8xxxu: support setting mac address register for both interfaces wifi: rtl8xxxu: extend wifi connected check to both interfaces wifi: rtl8xxxu: extend check for matching bssid to both interfaces wifi: rtl8xxxu: don't parse CFO, if both interfaces are connected in STA mode wifi: rtl8xxxu: support setting bssid register for multiple interfaces wifi: rtl8xxxu: support multiple interfaces in set_aifs() wifi: rtl8xxxu: support multiple interfaces in update_beacon_work_callback() wifi: rtl8xxxu: support multiple interfaces in configure_filter() wifi: rtl8xxxu: support multiple interfaces in watchdog_callback() wifi: rtl8xxxu: support multiple interfaces in {add,remove}_interface() wifi: rtl8xxxu: support multiple interfaces in bss_info_changed() wifi: rtl8xxxu: support multiple interface in start_ap() wifi: rtl8xxxu: add macids for STA mode wifi: rtl8xxxu: remove obsolete priv->vif wifi: rtl8xxxu: add hw crypto support for AP mode wifi: rtl8xxxu: make supporting AP mode only on port 0 transparent wifi: rtl8xxxu: declare concurrent mode support for 8188f .../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 18 +- .../realtek/rtl8xxxu/rtl8xxxu_8188e.c | 2 +- .../realtek/rtl8xxxu/rtl8xxxu_8188f.c | 2 + .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 380 ++++++++++++++---- 4 files changed, 311 insertions(+), 91 deletions(-)