aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-01-06 08:00:53 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-02-28 15:31:09 -0500
commit2afe38d15cee01b2bb8f22383571f7f4a95f2d99 (patch)
treefb20cff972e089702c3c98bffbc7868bb84834ed /net/wireless/scan.c
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/scan.c')
-rw-r--r--net/wireless/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index c705c3e2b751..25e1e1fad905 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -1237,7 +1237,7 @@ int cfg80211_wext_siwscan(struct net_device *dev,
1237 kfree(creq); 1237 kfree(creq);
1238 return err; 1238 return err;
1239} 1239}
1240EXPORT_SYMBOL_GPL(cfg80211_wext_siwscan); 1240EXPORT_WEXT_HANDLER(cfg80211_wext_siwscan);
1241 1241
1242static void ieee80211_scan_add_ies(struct iw_request_info *info, 1242static void ieee80211_scan_add_ies(struct iw_request_info *info,
1243 const struct cfg80211_bss_ies *ies, 1243 const struct cfg80211_bss_ies *ies,
@@ -1545,5 +1545,5 @@ int cfg80211_wext_giwscan(struct net_device *dev,
1545 1545
1546 return res; 1546 return res;
1547} 1547}
1548EXPORT_SYMBOL_GPL(cfg80211_wext_giwscan); 1548EXPORT_WEXT_HANDLER(cfg80211_wext_giwscan);
1549#endif 1549#endif