[PATCH] mac80211: Remove WARN_ON in apply-ht-override logic.
From: <hidden>
Date: 2011-12-05 19:16:00
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
From: <hidden>
Date: 2011-12-05 19:16:00
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
From: Ben Greear <redacted> AP interfaces routinely call this logic, so just silently return when this happens instead of splatting the kernel logs. Reported-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Ben Greear <redacted> --- :100644 100644 d3eafae... b5d85e7... M net/mac80211/ht.c net/mac80211/ht.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index d3eafae..b5d85e7 100644
--- a/net/mac80211/ht.c
+++ b/net/mac80211/ht.c@@ -47,7 +47,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata, int i; if (sdata->vif.type != NL80211_IFTYPE_STATION) { - WARN_ON_ONCE(sdata->vif.type != NL80211_IFTYPE_STATION); + /* AP interfaces call this code when adding new stations, + * so just silently ignore non station interfaces. + */ return; }
--
1.7.3.4