]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:11:32 +0000 (14:11 +0100)
commit7a4b56ae85f67f749df6c8d7a8f92d2cab880904
tree85134b6f1c0f57304cb8499b9607cd0c05084ee7
parent02366eccf81feeeaf329bbfda3dcce86468566fd
mac80211: don't WARN on bad WMM parameters from buggy APs

[ Upstream commit c470bdc1aaf36669e04ba65faf1092b2d1c6cabe ]

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: f409079bb678 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c