git: cc8d17e4366c - stable/14 - LinuxKPI: 802.11: add wiphy_locked_debugfs_read()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jan 2026 19:40:24 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc8d17e4366ce376204037fbf2a3a9eb3eeecda8
commit cc8d17e4366ce376204037fbf2a3a9eb3eeecda8
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-08-13 22:00:38 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-16 19:37:41 +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
(cherry picked from commit 0dcce5bd70b00430c6c4b447724e88551e0eab0d)
---
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 <linux/mutex.h>
#include <linux/if_ether.h>
#include <linux/ethtool.h>
+#include <linux/debugfs.h>
#include <linux/device.h>
#include <linux/netdevice.h>
#include <linux/random.h>
@@ -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,