mac80211: do not build RT2X00_LIB_XXX when XXX is not available in the kernel.
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Jun 2013 21:29:34 +0000 (21:29 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 19 Jun 2013 21:29:34 +0000 (21:29 +0000)
It was possible to select RT2X00_LIB_PCI without PCI being selected.

This closes #13720
mrkiko thanks for testing.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36972 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/030-rt2x00_options.patch

index ed8e1b6..789a77a 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/rt2x00/Kconfig
 +++ b/drivers/net/wireless/rt2x00/Kconfig
-@@ -202,25 +202,25 @@ config RT2800USB_UNKNOWN
+@@ -202,25 +202,28 @@ config RT2800USB_UNKNOWN
  endif
  
  config RT2800_LIB
  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