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>
Showing
- drivers/net/wireless/ipw2x00/Kconfig 1 addition, 1 deletiondrivers/net/wireless/ipw2x00/Kconfig
- drivers/net/wireless/orinoco/Kconfig 1 addition, 1 deletiondrivers/net/wireless/orinoco/Kconfig
- net/wireless/Kconfig 8 additions, 0 deletionsnet/wireless/Kconfig
- net/wireless/scan.c 2 additions, 2 deletionsnet/wireless/scan.c
- net/wireless/wext-compat.c 9 additions, 9 deletionsnet/wireless/wext-compat.c
- net/wireless/wext-compat.h 6 additions, 0 deletionsnet/wireless/wext-compat.h
Please register or sign in to comment