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>
This commit is contained in:
@@ -1237,7 +1237,7 @@ int cfg80211_wext_siwscan(struct net_device *dev,
|
||||
kfree(creq);
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cfg80211_wext_siwscan);
|
||||
EXPORT_WEXT_HANDLER(cfg80211_wext_siwscan);
|
||||
|
||||
static void ieee80211_scan_add_ies(struct iw_request_info *info,
|
||||
const struct cfg80211_bss_ies *ies,
|
||||
@@ -1545,5 +1545,5 @@ int cfg80211_wext_giwscan(struct net_device *dev,
|
||||
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cfg80211_wext_giwscan);
|
||||
EXPORT_WEXT_HANDLER(cfg80211_wext_giwscan);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user