linux/net/wireless/debugfs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * cfg80211 debugfs
 *
 * Copyright 2009	Luis R. Rodriguez <[email protected]>
 * Copyright 2007	Johannes Berg <[email protected]>
 * Copyright (C) 2023 Intel Corporation
 */

#include <linux/slab.h>
#include "core.h"
#include "debugfs.h"

#define DEBUGFS_READONLY_FILE(name, buflen, fmt, value...)

DEBUGFS_READONLY_FILE();
DEBUGFS_READONLY_FILE();
DEBUGFS_READONLY_FILE();
DEBUGFS_READONLY_FILE();

static int ht_print_chan(struct ieee80211_channel *chan,
			 char *buf, int buf_size, int offset)
{}

static ssize_t ht40allow_map_read(struct file *file,
				  char __user *user_buf,
				  size_t count, loff_t *ppos)
{}

static const struct file_operations ht40allow_map_ops =;

#define DEBUGFS_ADD(name)

void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev)
{}

struct debugfs_read_work {};

static void wiphy_locked_debugfs_read_work(struct wiphy *wiphy,
					   struct wiphy_work *work)
{}

static void wiphy_locked_debugfs_read_cancel(struct dentry *dentry,
					     void *data)
{}

ssize_t wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file,
				  char *buf, size_t bufsize,
				  char __user *userbuf, size_t count,
				  loff_t *ppos,
				  ssize_t (*handler)(struct wiphy *wiphy,
						     struct file *file,
						     char *buf,
						     size_t bufsize,
						     void *data),
				  void *data)
{}
EXPORT_SYMBOL_GPL();

struct debugfs_write_work {};

static void wiphy_locked_debugfs_write_work(struct wiphy *wiphy,
					    struct wiphy_work *work)
{}

static void wiphy_locked_debugfs_write_cancel(struct dentry *dentry,
					      void *data)
{}

ssize_t wiphy_locked_debugfs_write(struct wiphy *wiphy,
				   struct file *file, char *buf, size_t bufsize,
				   const char __user *userbuf, size_t count,
				   ssize_t (*handler)(struct wiphy *wiphy,
						      struct file *file,
						      char *buf,
						      size_t count,
						      void *data),
				   void *data)
{}
EXPORT_SYMBOL_GPL();