summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-10-07 21:47:16 +0200
committerJohannes Berg <johannes.berg@intel.com>2024-10-08 21:53:55 +0200
commitaee809aaa2d13bf560fe38d28c4969605e6d9d0e (patch)
tree8206e25423bc14937a7fb0c40d03ae7fa832b186 /net/wireless
parentwifi: remove iw_public_data from struct net_device (diff)
downloadlinux-aee809aaa2d13bf560fe38d28c4969605e6d9d0e.tar.xz
linux-aee809aaa2d13bf560fe38d28c4969605e6d9d0e.zip
wifi: cfg80211: unexport wireless_nlevent_flush()
This no longer needs to be exported, so don't export it. Link: https://patch.msgid.link/20241007214715.3dd736dc3ac0.I1388536e99c37f28a007dd753c473ad21513d9a9@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r--net/wireless/wext-compat.h6
-rw-r--r--net/wireless/wext-core.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/net/wireless/wext-compat.h b/net/wireless/wext-compat.h
index 8251ca5df8ae..f680dd134582 100644
--- a/net/wireless/wext-compat.h
+++ b/net/wireless/wext-compat.h
@@ -5,6 +5,12 @@
#include <net/iw_handler.h>
#include <linux/wireless.h>
+#ifdef CONFIG_WEXT_CORE
+void wireless_nlevent_flush(void);
+#else
+static inline void wireless_nlevent_flush(void) {}
+#endif
+
int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
struct iw_request_info *info,
struct iw_freq *wextfreq, char *extra);
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c
index 3bb04b05c5ce..00c640b3e86e 100644
--- a/net/wireless/wext-core.c
+++ b/net/wireless/wext-core.c
@@ -20,6 +20,7 @@
#include <net/netlink.h>
#include <net/wext.h>
#include <net/net_namespace.h>
+#include "wext-compat.h"
typedef int (*wext_ioctl_func)(struct net_device *, struct iwreq *,
unsigned int, struct iw_request_info *,
@@ -356,7 +357,6 @@ void wireless_nlevent_flush(void)
}
up_read(&net_rwsem);
}
-EXPORT_SYMBOL_GPL(wireless_nlevent_flush);
static int wext_netdev_notifier_call(struct notifier_block *nb,
unsigned long state, void *ptr)