Skip to contentSkip to conversation

mac80211: Remove WARN_ON in apply-ht-override logic.

PATCH New [email protected] 1 participant 1 message Dec 5, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Remove WARN_ON in apply-ht-override logic.

From: Ben Greear <[email protected]>

AP interfaces routinely call this logic, so just silently return when this happens instead of splatting the kernel logs.

---
:100644 100644 d3eafae... b5d85e7... M net/mac80211/ht.c

 net/mac80211/ht.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
net/mac80211/ht.c +3 -1
index d3eafae..b5d85e7 100644
@@ -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;
 	}
 
Signature · 1 line
1.7.3.4