Skip to content

Commit

Permalink
mac80211: Remove WARN_ON in apply-ht-override logic.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Greear authored and John W. Linville committed Dec 6, 2011
1 parent 439678f commit 4e79fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4e79fad

Please sign in to comment.