carl9170: Only specify interface combinations if more than one interface is possible
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 17 Dec 2012 13:54:19 +0000 (14:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:52 +0000 (15:16 -0500)
commit17f658ac8c7e0af0c7aa12587477f9bbc093229e
tree7b43d834db4c62aca2b3b1df220af511982b412a
parent7f878b0d96e6b3bd27d736fb2fb7e3cc94b16b26
carl9170: Only specify interface combinations if more than one interface is possible

Otherwise carl9170 triggers a warning in cfg80211, from net/wireless/core.c

/* Combinations with just one interface aren't real */
if (WARN_ON(c->max_interfaces < 2))

Note: The number of supported interfaces is set by
the carl9170 firmware. The default number of
supported interfaces for all current firmwares is 2.
Therefore this warning can only be observed with
custom firmwares.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/fw.c