mac80211: Remove WARN_ON in apply-ht-override logic.
authorBen Greear <greearb@candelatech.com>
Mon, 5 Dec 2011 19:15:55 +0000 (11:15 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Dec 2011 21:07:07 +0000 (16:07 -0500)
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 <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ht.c

index e0a396b..0fd9c2a 100644 (file)
@@ -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;
        }