]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: Fix condition validating WMM IE
authorIlan Peer <ilan.peer@intel.com>
Tue, 3 Apr 2018 08:35:22 +0000 (11:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:11:32 +0000 (14:11 +0100)
commit0715895a55b42f6218f194ce174efa72e34484d6
treed6718ab62737cc6f2c836b59459b4365925363ba
parent7a4b56ae85f67f749df6c8d7a8f92d2cab880904
mac80211: Fix condition validating WMM IE

[ Upstream commit 911a26484c33e10de6237228ca1d7293548e9f49 ]

Commit c470bdc1aaf3 ("mac80211: don't WARN on bad WMM parameters from
buggy APs") handled cases where an AP reports a zeroed WMM
IE. However, the condition that checks the validity accessed the wrong
index in the ieee80211_tx_queue_params array, thus wrongly deducing
that the parameters are invalid. Fix it.

Fixes: c470bdc1aaf3 ("mac80211: don't WARN on bad WMM parameters from buggy APs")
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mlme.c