]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 19 Apr 2018 13:46:22 +0000 (15:46 +0200)
commit1dec632409ba1d79aa2d5c8bd049aacf1ebbd8db
treea12038efbdea9fe71d00d4a08228f25fdbeb14c1
parent1f6d9de720a06890313ffa23863ed4db90235998
mac80211: Fix condition validating WMM IE

Commit 0b11eeed188a ("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: 0b11eeed188a ("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>
net/mac80211/mlme.c