mac80211: Remove WARN_ON in apply-ht-override logic.
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.
Reported-by Christian Lamparter <[email protected]>
Signed-off-by Ben Greear <[email protected]>
---
: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
@@ -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