]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6a5b45761a928767a84d472956e67bb20cb3d8b
tree7b43d834db4c62aca2b3b1df220af511982b412a
parent2270e50ca8be0f38d03f7a2b7577483f7a28b515
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