]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't WARN on bad WMM parameters from buggy APs
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 26 Mar 2018 13:21:04 +0000 (16:21 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 13:02:38 +0000 (15:02 +0200)
commitac27e1a2154b4340153c57f7deb8a9af1c4d3b9e
tree47afa9fa871ce11a8cab8d676ff36a2a5e318dc8
parent016e2fe73efc6ecaf7de270292e37a7ed45a13e4
mac80211: don't WARN on bad WMM parameters from buggy APs

Apparently, some APs are buggy enough to send a zeroed
WMM IE. Don't WARN on this since this is not caused by a bug
on the client's system.

This aligns the condition of the WARNING in drv_conf_tx
with the validity check in ieee80211_sta_wmm_params.
We will now pick the default values whenever we get
a zeroed WMM IE.

This has been reported here:
https://bugzilla.kernel.org/show_bug.cgi?id=199161

Fixes: b146d00348f8 ("mac80211: sanity check CW_min/CW_max towards driver")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c