Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp698517rdb; Fri, 22 Dec 2023 02:14:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuk7K6rjMlwGYDhrN1onBEDrUymxKI1XVzNF7LxnLpQZSRyVSjBiI0QN2Sk4bKrz+XSvXU X-Received: by 2002:ac8:4e42:0:b0:427:a665:e4d6 with SMTP id e2-20020ac84e42000000b00427a665e4d6mr1213380qtw.26.1703240098943; Fri, 22 Dec 2023 02:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703240098; cv=none; d=google.com; s=arc-20160816; b=nvRBDgbrQTU78HQByAbtHp4YNswm4yoZ+4iZzXjPB5eqWkp88SuWnodxDn3borGHQp WRWyicI8Nx/0b5F1OF2rwJnB3kFkzsLSZ0MFB+qYec8hXZEmLfTdZR9S0HUXKS4r6Mlc cY3W+n66hpnlOGTMiSKDJGI+hpUKRWeP3liDM0Sc1d0R2EZpmZwM9r9U5KGP7YCGWO67 5zf8QLeKOkrlFACvglmrvo5SCDwJrCRixS75dbi1BNRaap8pyjin8eDaQFaVCTo0rwPB T9H0z+wiUT6h2ZSzaGApURPdSYh0jJKEQ+RDw771EkToNFqAYZ/IRVfcsb2g0oD1cgLp W0Kg== 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:message-id:date:subject:cc:to :dkim-signature:dkim-signature:from; bh=5Rf6lDtBE6PJbzVd7lbW6EnseC+vJLY2DxmhoKNQwBk=; fh=KsoNWtazjfstHns8t6UZ1pulwZL69aEO39vRs0LPvyo=; b=LD+BFvLPeLScHvo3ZsyVOyIWv/VbWC2PZGb8+EiFCaCiifmRjhr+vN0cAuDRmsd76a rMhFS9P6TcSsuhBhutIpu4lmNQ95VdqSznn86JxGvfQWjRSb278vXH86Id/ajU0WRBFc b7dK0ixFSEHUu8rUHLTySJeELIsTH7fXRrdMqY6Fi2dwAbJ4raJCd4j9vbC3ctWpQvBD 5rqXMmfroKFBnRrlHW4IpyWXT6qaMZLWlvmRNGL2yCagy6gKk6curjoCQRFlIguxRWUL T4qS+n+50E7cRNQsK8mCqPHOjSzmziLWzw6swyg8V1CAtyIKSS7krfI7km0m/qYM5IY5 4nww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EZCaYbJf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1221-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 f22-20020ac859d6000000b004277a3fb7f8si4216566qtf.113.2023.12.22.02.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1221-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=EZCaYbJf; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-wireless+bounces-1221-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1221-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 CA7751C211A3 for ; Fri, 22 Dec 2023 10:14:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1343411722; 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="EZCaYbJf"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dhw+seXh" 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 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 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 Content-Transfer-Encoding: 8bit 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(-) -- 2.39.2