Skip to content

Commit 4e79fad

Browse files
greearblinvjw
authored andcommitted
mac80211: Remove WARN_ON in apply-ht-override logic.
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>
1 parent 439678f commit 4e79fad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎net/mac80211/ht.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
4747
int i;
4848

4949
if (sdata->vif.type != NL80211_IFTYPE_STATION) {
50-
WARN_ON_ONCE(sdata->vif.type != NL80211_IFTYPE_STATION);
50+
/* AP interfaces call this code when adding new stations,
51+
* so just silently ignore non station interfaces.
52+
*/
5153
return;
5254
}
5355

0 commit comments

Comments
 (0)