The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0dcce5bd70b00430c6c4b447724e88551e0eab0d

commit 0dcce5bd70b00430c6c4b447724e88551e0eab0d
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-08-13 22:00:38 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
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 <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,

Reply via email to