From nobody Wed Feb 16 03:59:06 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7DB3C19A3CDF; Wed, 16 Feb 2022 03:59:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jz42f358Vz3Jgy; Wed, 16 Feb 2022 03:59:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644983946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7SY0aTO7zGcnquqnKwYMIpVGHBmCfoTcOuXBr6lgYLc=; b=eyQ2xD1p5I5AKz6Anjf8TZRnY/NXuzCDPdhESgZRdeMKu9Ah8jpz44hfhWzTulfsfERXQQ ZDjwZ7f8RSNXpuKfYobRxgpO1B07DVvuQMtzfTgh9uZDzU1JLs/h7j7dJ5restbE73lUzJ vE23sQbwODMNemguKlcY6RPaNvLwhgmWKf8r+84yAGWrFoLAMMYb3GPaQu12vxdPCHIqyo vVpXpTJ1Pj4VCn6c0M/GyrydD16UrmNxL+QbCXdbDc/6VIFQCSZc0bfZs4M14pbsxG0I72 PK/U3yggA/KJ3PsWH2Lt2bbkPGtGIrgtRBmgQrJV5+7fyzZahTJUNQaGxlnDeQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 46FAF744E; Wed, 16 Feb 2022 03:59:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21G3x60S025976; Wed, 16 Feb 2022 03:59:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21G3x69u025975; Wed, 16 Feb 2022 03:59:06 GMT (envelope-from git) Date: Wed, 16 Feb 2022 03:59:06 GMT Message-Id: <202202160359.21G3x69u025975@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 61a68e50d436 - main - LinuxKPI: 802.11 enahnce linuxkpi_ieee80211_iterate_interfaces() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61a68e50d436333396ffd2e1d6a4b5d2875f8118 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644983946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7SY0aTO7zGcnquqnKwYMIpVGHBmCfoTcOuXBr6lgYLc=; b=GykL+8TOQwDGi8pQVIbRF5JbtAqZi3Ol9sC45M9OE6W9bxK0siYpOphGnRDyfkGP9XJj4P TL+bYiCIaAW1ZdggazTJv56aLf0S4P2yjKNgRq1jIt8qxnm5v4V9biXQBUA1v2SRw1TRhI I/EV18/tR9tQIpWR0bnosl44LRHQJNOc9oMPccK62jQlYapQ0U7xECQgvBV8eYYffIUH2E HmVZuuyO7aDr7iWG6cO/ef2feBK07y6YFNW++ISrV8pRewYKqoMnhHx6eBIi0sJJNu7dzS EWoPwgxcflWC5IEzn8/vbimbSijMi2JoppFzZiV3bUYQHSyLHJGrhIUHy6zuww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644983946; a=rsa-sha256; cv=none; b=OG86Qo0Q0/k6P4M9G7zGhtl9vXGqreTLaW0q9nhHy3mHnYNc/SzsTi+KW5ZHTD6TtTWE9h YhJUyclBMKHmpAOo8on+S2r/b2rl+v7GoZyxkyj+l3F7GmVs3HwE8OplyNtSduy/4MPS8V 4Dgip5mWWPYy6SGKrLZRK0WN+pdDP/mv38FvG+skvXHRBjqH+ERgsvoQIiUHnZIwa7X1YM I023a95p+4OlXpqJwuHgdYSVigRIr2PLPPLKSkTGkBDXZwAIV6r3x469wLBdxmvMzmuHQ2 w9q8uzjTJQS/7xsGVmX7AlFN4Qod/731agtQOmLAnoPgbjDyF1r6vGG85DkBWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=61a68e50d436333396ffd2e1d6a4b5d2875f8118 commit 61a68e50d436333396ffd2e1d6a4b5d2875f8118 Author: Bjoern A. Zeeb AuthorDate: 2022-02-16 03:56:54 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-16 03:56:54 +0000 LinuxKPI: 802.11 enahnce linuxkpi_ieee80211_iterate_interfaces() Add support for IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER in linuxkpi_ieee80211_iterate_interfaces() needed by a driver. MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 5267cbf385c0..6e5bf19d0aa1 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -2988,12 +2988,13 @@ linuxkpi_ieee80211_iterate_interfaces(struct ieee80211_hw *hw, struct lkpi_hw *lhw; struct lkpi_vif *lvif; struct ieee80211_vif *vif; - bool active, atomic; + bool active, atomic, nin_drv; lhw = HW_TO_LHW(hw); if (flags & ~(IEEE80211_IFACE_ITER_NORMAL| IEEE80211_IFACE_ITER_RESUME_ALL| + IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER| IEEE80211_IFACE_ITER__ACTIVE|IEEE80211_IFACE_ITER__ATOMIC)) { ic_printf(lhw->ic, "XXX TODO %s flags(%#x) not yet supported.\n", __func__, flags); @@ -3001,6 +3002,7 @@ linuxkpi_ieee80211_iterate_interfaces(struct ieee80211_hw *hw, active = (flags & IEEE80211_IFACE_ITER__ACTIVE) != 0; atomic = (flags & IEEE80211_IFACE_ITER__ATOMIC) != 0; + nin_drv = (flags & IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER) != 0; if (atomic) LKPI_80211_LHW_LOCK(lhw); @@ -3019,6 +3021,13 @@ linuxkpi_ieee80211_iterate_interfaces(struct ieee80211_hw *hw, (flags & IEEE80211_IFACE_ITER_RESUME_ALL) != 0) continue; + /* + * If we shall skip interfaces not added to the driver do so + * if we haven't yet. + */ + if (nin_drv && !lvif->added_to_drv) + continue; + /* * Run the iterator function if we are either not asking * asking for active only or if the VAP is "running".