openwrtv4/package/mac80211/patches/030-rt2x00_options.patch
Hauke Mehrtens c86eeac435 mac80211: do not build RT2X00_LIB_XXX when XXX is not available in the kernel.
It was possible to select RT2X00_LIB_PCI without PCI being selected.

This closes #13720
mrkiko thanks for testing.

SVN-Revision: 36972
2013-06-19 21:29:34 +00:00

36 lines
689 B
Diff

--- a/drivers/net/wireless/rt2x00/Kconfig
+++ b/drivers/net/wireless/rt2x00/Kconfig
@@ -202,25 +202,28 @@ config RT2800USB_UNKNOWN
endif
config RT2800_LIB
- tristate
+ tristate "RT2800 USB/PCI support"
depends on m
config RT2X00_LIB_MMIO
- tristate
+ tristate "RT2x00 MMIO support"
depends on m
config RT2X00_LIB_PCI
- tristate
+ tristate "RT2x00 PCI support"
+ depends on PCI
depends on m
select RT2X00_LIB
config RT2X00_LIB_SOC
- tristate
+ tristate "RT2x00 SoC support"
+ depends on SOC_RT288X || SOC_RT305X
depends on m
select RT2X00_LIB
config RT2X00_LIB_USB
- tristate
+ tristate "RT2x00 USB support"
+ depends on USB
depends on m
select RT2X00_LIB