From nobody Thu Aug 21 14:22:26 2025 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 4c75BC3SKsz64yPy; Thu, 21 Aug 2025 14:22:27 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c75BB3kJ5z43D3; Thu, 21 Aug 2025 14:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755786146; 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=xM2aUZSweFdmGdYjJXyVbLwLpRhPrpoJllPa7EsvxwU=; b=sRpDIzr7PLQVOBfatszrm4aZzp5uXFTUeR591h0ClO0DhzKLavHLDYxUk3RgjSvrUpViSV OeaYNnH7gfydSDvb9DkBmp9b7X9WlrwhylYcnr1LUUUeGmJvUwUm6KaYDQN9FQyzViYn4a 7mi5MmOhsND7tCVP0WUptXhbJem9ZZo1gLoT7LaW7Q588bBhPU4baPwnZEQZG3gnQcCWTz FHFAB7MoiYYdP6qoQZO3PNu/sut1fiBXeyChzN1zXJdC4ZcN10zl5WZDfdeVzJ4RCD1yX+ VMqOHZUVRA9+yTws35q1zX0cT79iQ+cIz0RcWj3iu4aBCGux0EEbNwS7p9kdZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755786146; 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=xM2aUZSweFdmGdYjJXyVbLwLpRhPrpoJllPa7EsvxwU=; b=ntnll50cMbBzJABfK57sSDaLKjqeoJr9n4IyqjQQMBqGpBnclcT/tHTjswsVa4dX9EHfiD vlQBuF2VMgGkqWfE6XZxcocH5IxSdN2dB23Rj+YJZ7SZDNqjXnibigrE9sa8W6f/vzK+3t NrwF1vI+6M1h87RzFWeiR+AR76CURw+A40uYaecnIvOK7Ic5OIYhYec225U0CDGLsbPP1o B7kd+PY2DYbve9NM+oGDls+YQbRxVS3NCz61sEuQkL28C0JWPzoBoeF5iEH16uLEUv5WZa O32CF7E4jDRV7ziOcN8UQBcWAyDtOAROSCdQf7r1vVz/a+C0zu+lWDOCJdOomw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755786146; a=rsa-sha256; cv=none; b=F9R1f26ECqFxRA3OUmM0vDZFtiwGWWZw9GSog2PV1vwXvQ+LTKbpnHofMx1Q2cileZZN6V lqbM8qVtOuNyCxZKo6ElaNvEepRlIOT00XY2GthsCr3e6d0JqRYRScbeVZExs1MSjOAD+C 0SQF7BtnZgbN63sWHWa5Yso4glxtg/iIoD6xeanGq32pSBaK1S85vrZUpU758Sw1YceXP/ VPD2mS7LJCxIy0kc5V7HddsMQmFsxpvuCxDSqeY0PTnf0yyomEss1mZvNMPKoLPI8je3qr N7OATtcf0W+0HN99tpxCEGoXEbRBbvT/uoNGxmSMi8sTZ0p5F1y/kpbktVP6UQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4c75BB3Kcqz13YM; Thu, 21 Aug 2025 14:22:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 57LEMQ0t089993; Thu, 21 Aug 2025 14:22:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57LEMQGT089990; Thu, 21 Aug 2025 14:22:26 GMT (envelope-from git) Date: Thu, 21 Aug 2025 14:22:26 GMT Message-Id: <202508211422.57LEMQGT089990@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: 0dcce5bd70b0 - main - LinuxKPI: 802.11: add wiphy_locked_debugfs_read() 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: 0dcce5bd70b00430c6c4b447724e88551e0eab0d Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=0dcce5bd70b00430c6c4b447724e88551e0eab0d commit 0dcce5bd70b00430c6c4b447724e88551e0eab0d Author: Bjoern A. Zeeb AuthorDate: 2025-08-13 22:00:38 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-08-21 14:21:48 +0000 LinuxKPI: 802.11: add wiphy_locked_debugfs_read() A wifi driver update required wiphy_locked_debugfs_read(). Add a skeleton implementation just reminding us of the TODO() for now. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/net/cfg80211.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h index 18b34f0e90ec..89d83b59f8f9 100644 --- a/sys/compat/linuxkpi/common/include/net/cfg80211.h +++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -2064,6 +2065,18 @@ nl80211_chan_width_to_mhz(enum nl80211_chan_width width) } } +static __inline ssize_t +wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file, + char *buf, size_t bufsize, const char __user *userbuf, size_t count, + loff_t *ppos, + ssize_t (*handler)(struct wiphy *, struct file *, char *, size_t, void *), + void *data) +{ + TODO(); + return (-ENXIO); +} + + static __inline ssize_t wiphy_locked_debugfs_write(struct wiphy *wiphy, struct file *file, char *buf, size_t bufsize, const char __user *userbuf, size_t count,