]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Only specify interface combinations if more then one interface is possible
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 3 Dec 2012 21:35:39 +0000 (22:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Dec 2012 19:58:55 +0000 (14:58 -0500)
commitbac5d502d074137d3b1f78a60ca5f39e581f72ee
tree6359d768ad1f7e4921f239452344321db3e9f1df
parent00d39b29aca197e607946c6e1ea6cf766cc619a6
rt2x00: Only specify interface combinations if more then one interface is possible

Otherwise rt2500* 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))

This was introduced in commit cb3527fdc2e368e4bccfea629599ee519521d88b:
rt2x00: Replace open coded interface checking with interface combinations.

Reported-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: stable@vger.kernel.org [3.7+]
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c