OSDN Git Service

net: fix USB network driver config option.
authorFrancois Romieu <romieu@fr.zoreil.com>
Wed, 6 Aug 2014 22:36:40 +0000 (00:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2014 23:00:20 +0000 (16:00 -0700)
It must be tristate to avoid broken dependencies with kernel built-in
usb network drivers when usb support is module only.

When net config option is set, least surprize default should match usb.

Wireless RNDIS USB driver used to select USB_USBNET. USB_USBNET now
depends on USB_NET_DRIVERS so the latter should be selected as well.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/Kconfig
drivers/net/wireless/Kconfig

index 9f194a0..37eed4d 100644 (file)
@@ -5,8 +5,8 @@ comment "Host-side USB support is needed for USB Network Adapter support"
        depends on !USB && NET
 
 menuconfig USB_NET_DRIVERS
-       bool "USB Network Adapters"
-       default y
+       tristate "USB Network Adapters"
+       default USB if USB
        depends on USB && NET
 
 if USB_NET_DRIVERS
index b2137e8..16604bd 100644 (file)
@@ -189,6 +189,7 @@ config USB_NET_RNDIS_WLAN
        tristate "Wireless RNDIS USB support"
        depends on USB
        depends on CFG80211
+       select USB_NET_DRIVERS
        select USB_USBNET
        select USB_NET_CDCETHER
        select USB_NET_RNDIS_HOST