Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425AbcCBNz1 (ORCPT ); Wed, 2 Mar 2016 08:55:27 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:55077 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbcCBNzZ (ORCPT ); Wed, 2 Mar 2016 08:55:25 -0500 From: Arnd Bergmann To: Antonio Quartulli Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Marek Lindner , Simon Wunderlich , "David S. Miller" , b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] batman-adv: clarify CFG80211 dependency Date: Wed, 2 Mar 2016 14:54:35 +0100 Message-Id: <1456926882-2941809-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:dS9sXnPofFgAUL79aCh+UZYrgnGdodG1pt0/nNKg3LLr+UODYos Kinb+yLmeYS70IHEQh7lIEpnRuJCLFbK3MJKqn3YkB+8RZO+HFg8LlsBcv85P+y6OgEAeWD r7mUqcJcHm/hc7JuCSKp2QbsFwY8Ot5kqOnmFUeuueEYBHNBVMWIR4ng/7yYybxJLc55CTr 8M9sU/2H/W1+HB6/1hYZQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:E1E2iSfsot0=:98MqbwvqpExq2yvhHl/ZCX znsN5A4HlmghfQ+I2fTrZK4m9dBnBbl1e/VMH8kWMVVkZlfiztxBxGwyO2VFL48Br5KcyMD3R 57XqgPD5s6bdPgx0gVYVo8Dj2iobmOyincW+6kANexg6Ofp4A8SnT7A4GPBEYaxcORW7I60db mRWlebVD9t7EBQmkvyy+TExuIoJrKIbGaJnsLcZ8W7l+Aw3mrz2XpfsSacYtLwHCtNl4I3fJT Ag3dJJmibypahdxAnG8NymLNHGAR6jz6B7c5ix4h6pRZNPd3rkgeo/+vlhzC8nYfbaSU5AZt8 ea6LEck0yRRa5MKygAa9vWtf9DLHKHnUaLASRHsE/cHGaeDqt3ra50NultbnU4ZN7wO0qO6qM 6qw5uZOyQ3dyOokoCE8+DFHXuolUBbuJoqZyY6DO3e7R8lsghDSJLfPo0Oks6gTTfDNxxgG1Y /JO/ce1LKxM68pNbw0tRd4MXX2HFrgvbGeybaNgUZFN1b2peZWJ1B90Iiz9BLXEH/2YFaoVCJ wXPoajz8SRBvrOJIR4AiuoMDzF6i9uDVlDfMpTZIvNLR24nP28/rPT7VqWdlngKKB8ADSHV3P 23ZE0AaWzRZoQJvOw0du4smkFKaXtQsWiW/yNWVLqTLZWkCWL0WgsA3cR4wog/v+Q7LN64JGb vRlfMfZqPygcnPwPFW9+Ex023LrIfNH57KJBFpSe8it/02ROmPNIsMm/k/4imRN4C8SY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1023 Lines: 30 The driver calls cfg80211_get_station, which may be part of a module, so we must not enable BATMAN_ADV_BATMAN_V if BATMAN_ADV=y and CFG80211=m: net/built-in.o: In function `batadv_v_elp_get_throughput': (text+0x5c62c): undefined reference to `cfg80211_get_station' This clarifies the dependency to cover all combinations. Signed-off-by: Arnd Bergmann Fixes: c833484e5f38 ("batman-adv: ELP - compute the metric based on the estimated throughput") --- net/batman-adv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig index e651dc927bfd..f66930ee3c0b 100644 --- a/net/batman-adv/Kconfig +++ b/net/batman-adv/Kconfig @@ -17,7 +17,7 @@ config BATMAN_ADV config BATMAN_ADV_BATMAN_V bool "B.A.T.M.A.N. V protocol (experimental)" - depends on BATMAN_ADV && CFG80211 + depends on BATMAN_ADV && CFG80211=y || (CFG80211=m && BATMAN_ADV=m) default n help This option enables the B.A.T.M.A.N. V protocol, the successor -- 2.7.0