summaryrefslogtreecommitdiff
path: root/net/wireless/wext-compat.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-01-06 14:00:53 +0100
committerJohannes Berg <johannes.berg@intel.com>2015-02-28 21:31:09 +0100
commit2afe38d15cee01b2bb8f22383571f7f4a95f2d99 (patch)
treefb20cff972e089702c3c98bffbc7868bb84834ed /net/wireless/wext-compat.h
parent7d9bb2f0653c7830e676f1012051fe9349ce2669 (diff)
cfg80211-wext: export symbols only when needed
When a fully converted cfg80211 driver needs cfg80211-wext for userspace API purposes, the symbols need not be exported. When other drivers (orinoco/hermes or ipw2200) are enabled, they do need the symbols exported as they use them directly. Make those drivers select a new CFG80211_WEXT_EXPORT Kconfig symbol (instead of just CFG80211_WEXT) and export the functions only if requested - this saves about 1/2k due to the size of EXPORT_SYMBOL() itself. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/wext-compat.h')
-rw-r--r--net/wireless/wext-compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/wireless/wext-compat.h b/net/wireless/wext-compat.h
index ebcacca2f731..94c7405a5413 100644
--- a/net/wireless/wext-compat.h
+++ b/net/wireless/wext-compat.h
@@ -4,6 +4,12 @@
#include <net/iw_handler.h>
#include <linux/wireless.h>
+#ifdef CONFIG_CFG80211_WEXT_EXPORT
+#define EXPORT_WEXT_HANDLER(h) EXPORT_SYMBOL_GPL(h)
+#else
+#define EXPORT_WEXT_HANDLER(h)
+#endif /* CONFIG_CFG80211_WEXT_EXPORT */
+
int cfg80211_ibss_wext_siwfreq(struct net_device *dev,
struct iw_request_info *info,
struct iw_freq *freq, char *extra);