From patchwork Mon Aug 5 19:23:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 818059 Received: from nbd.name (nbd.name [46.4.11.11]) (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 DCC39364AB for ; Mon, 5 Aug 2024 19:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722885819; cv=none; b=cLGPbz1IeT7I6fQbXeQoHRmSmGQsf/DBsC4I1DBN76OzRAu22gxzBoTu+YfMoRZBo9qT+MV59xnrEu7FaEY5QJZMU3IhsneDuWgKemJVoratkjfcuQ5YBgLXiQFj1jtRAejvi5ULhqgGEcYSGPdIqV+ckzDeNTVRTuDhYbVX0Ys= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722885819; c=relaxed/simple; bh=gQ43/Idc26J/RSCvUhwd+UCpAf9IxdDpJUnZJuAMC7o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cHaImOpqeTWCuJspUmrjnijJrO7zu3c+ilkEBRbOH9lbFP/o8lJfObvj3NcM1aFVOPRhjJTiTn13D+JrxVnK2swlgPD0dh7k16jIegNgF+rDf7zlK45n0SdQ8jMIsqTNPmR4vp2rGWhC9EdWzbTEWs03jw1PSsG6fJhfMRgskWI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=JE4t/HK9; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="JE4t/HK9" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JUXZnlGwHtcRul1l7rlbyzRCBDJ9h+era+3YyOYp6DQ=; b=JE4t/HK9meEYbsiG28TknepUql 6VALIKG+cmp95oN431jgoupqZTNTHK7+99+yAgJuvYT3hnx/gKwQcc6yvrAnY8BmaSs8g1SWXLeSs h9gbu8m9VEHui8Cu5U0DOqoj3g6+1iWyY87Y/IDKRm9VlyP+eE6SATLGQwEQaydaRkc0=; Received: from p54ae9b72.dip0.t-ipconnect.de ([84.174.155.114] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.96) (envelope-from ) id 1sb3It-00EHlS-2Y; Mon, 05 Aug 2024 21:23:35 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [RFC 0/6] wifi: cfg80211/mac80211: improve support for multiple radios Date: Mon, 5 Aug 2024 21:23:28 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This series adds support for restricting vifs to a set of radios. The allowed radios mask is used to restrict scanning, off-channel activity. This is also used for per-radio start/stop ops, monitor state and filter flags. It can also limit per-monitor-vif rx to specific radios. Felix Fietkau (6): wifi: cfg80211/mac80211: add option for vif allowed radios wifi: mac80211: remove status->ampdu_delimiter_crc wifi: mac80211: notify driver about per-radio monitor enabled state wifi: mac80211: support per-radio driver start/stop calls wifi: mac80211: support per-radio filter flags wifi: mac80211: check vif radio_mask for monitor mode rx include/net/cfg80211.h | 14 +++- include/net/mac80211.h | 33 +++++-- include/uapi/linux/nl80211.h | 5 +- net/mac80211/cfg.c | 7 ++- net/mac80211/chan.c | 13 ++- net/mac80211/driver-ops.h | 50 +++++++++++- net/mac80211/ieee80211_i.h | 29 +++++-- net/mac80211/iface.c | 159 +++++++++++++++++++++++++++--------- net/mac80211/main.c | 72 ++++++++++++---- net/mac80211/mesh.c | 33 +++++-- net/mac80211/rx.c | 65 +++++++-------- net/mac80211/scan.c | 10 +- net/mac80211/trace.h | 38 +++++++++- net/wireless/nl80211.c | 46 +++++++++- net/wireless/scan.c | 10 +- net/wireless/util.c | 29 +++++++- 16 files changed, 494 insertions(+), 119 deletions(-) base-commit: 30335bbc777aa14ccf5ea329296f59bb30d0180f