[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130115184958.516809179@linuxfoundation.org>
Date: Tue, 15 Jan 2013 10:48:53 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
alan@...rguk.ukuu.org.uk, Stefan Lippers-Hollmann <s.l-h@....de>,
Helmut Schaa <helmut.schaa@...glemail.com>,
Gertjan van Wingerde <gwingerde@...il.com>,
Stanislaw Gruszka <sgruszka@...hat.com>,
"John W. Linville" <linville@...driver.com>
Subject: [ 006/221] rt2x00: Only specify interface combinations if more then one interface is possible
3.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Helmut Schaa <helmut.schaa@...glemail.com>
commit f5685ba675449b072feab6a5391a9ef9f604bc94 upstream.
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 55d2e9da744ba11eae900b4bfc2da72eace3c1e1:
rt2x00: Replace open coded interface checking with interface combinations.
Reported-by: Stefan Lippers-Hollmann <s.l-h@....de>
Tested-by: Stefan Lippers-Hollmann <s.l-h@....de>
Signed-off-by: Helmut Schaa <helmut.schaa@...glemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@...il.com>
Acked-by: Stanislaw Gruszka <sgruszka@...hat.com>
Signed-off-by: John W. Linville <linville@...driver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/net/wireless/rt2x00/rt2x00dev.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -1123,6 +1123,9 @@ static inline void rt2x00lib_set_if_comb
struct ieee80211_iface_limit *if_limit;
struct ieee80211_iface_combination *if_combination;
+ if (rt2x00dev->ops->max_ap_intf < 2)
+ return;
+
/*
* Build up AP interface limits structure.
*/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists