mac80211: fix WMM TXOP calculation
authorDreyfuss, Haim <haim.dreyfuss@intel.com>
Fri, 31 Aug 2018 08:31:04 +0000 (11:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Sep 2018 08:35:03 +0000 (10:35 +0200)
commitabd76d255d69d70206c01b9cb19ba36a9c1df6a1
tree892c68a86412f9ab8c86995f55cfe4540df93c56
parent8442938c3a2177ba16043b3a935f2c78266ad399
mac80211: fix WMM TXOP calculation

In commit 9236c4523e5b ("mac80211: limit wmm params to comply
with ETSI requirements"), we have limited the WMM parameters to
comply with 802.11 and ETSI standard.  Mistakenly the TXOP value
was caluclated wrong.  Fix it by taking the minimum between
802.11 to ETSI to make sure we are not violating both.

Fixes: e552af058148 ("mac80211: limit wmm params to comply with ETSI requirements")
Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c