summaryrefslogtreecommitdiff
path: root/include/net/iw_handler.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-10-09 08:33:05 +0200
committerJohannes Berg <johannes.berg@intel.com>2024-10-09 08:53:01 +0200
commitdb03488897a70367aeafe82d07a78943d2a6068e (patch)
tree29bf5719e1c73e1c75060d6a9f758fa120d1b593 /include/net/iw_handler.h
parentff919efb5fe8256fba132b5f2c58df3c38bdd0b3 (diff)
downloadlwn-db03488897a70367aeafe82d07a78943d2a6068e.tar.gz
lwn-db03488897a70367aeafe82d07a78943d2a6068e.zip
Revert "wifi: cfg80211: unexport wireless_nlevent_flush()"
Revert this, I neglected to take into account the fact that cfg80211 itself can be a module, but wext is always builtin. Fixes: aee809aaa2d1 ("wifi: cfg80211: unexport wireless_nlevent_flush()") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/iw_handler.h')
-rw-r--r--include/net/iw_handler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/iw_handler.h b/include/net/iw_handler.h
index c9b46b996197..b80e474cb0aa 100644
--- a/include/net/iw_handler.h
+++ b/include/net/iw_handler.h
@@ -410,6 +410,12 @@ struct iw_spy_data {
/* Send a single event to user space */
void wireless_send_event(struct net_device *dev, unsigned int cmd,
union iwreq_data *wrqu, const char *extra);
+#ifdef CONFIG_WEXT_CORE
+/* flush all previous wext events - if work is done from netdev notifiers */
+void wireless_nlevent_flush(void);
+#else
+static inline void wireless_nlevent_flush(void) {}
+#endif
/* We may need a function to send a stream of events to user space.
* More on that later... */