mac80211: make rate control Kconfig warning depend on mac80211
authorJohannes Berg <johannes.berg@intel.com>
Tue, 1 Mar 2011 16:18:26 +0000 (17:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Mar 2011 18:48:22 +0000 (13:48 -0500)
... Otherwise it is displayed when mac80211 isn't
even turned on, which is completely pointless.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/Kconfig

index 4c57a9c..841dd1e 100644 (file)
@@ -78,7 +78,7 @@ config MAC80211_RC_DEFAULT
 endif
 
 comment "Some wireless drivers require a rate control algorithm"
-       depends on MAC80211_HAS_RC=n
+       depends on MAC80211 && MAC80211_HAS_RC=n
 
 config MAC80211_MESH
        bool "Enable mac80211 mesh networking (pre-802.11s) support"