]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix regulatory limits for WMM cwmin/cwmax values
authorFelix Fietkau <nbd@nbd.name>
Thu, 23 Jan 2020 13:13:33 +0000 (14:13 +0100)
committerJouni Malinen <jouni@codeaurora.org>
Mon, 3 Feb 2020 00:03:32 +0000 (02:03 +0200)
commitd240c74b6a887299747209aad8e168ac3d5ffce3
tree87fc36f86bb10595e63cbfb02e3b4c50927d575c
parentbc1289b076acec708890388fcf63a09e23a3fa8e
nl80211: Fix regulatory limits for WMM cwmin/cwmax values

The internal WMM AC parameters use just the exponent of the CW value,
while nl80211 reports the full CW value. This led to completely bogus
CWmin/CWmax values in the WMM IE when a regulatory limit was present.
Fix this by converting the value to the exponent before passing it on.

Fixes: 636c02c6e9 ("nl80211: Add regulatory wmm_limit to hostapd_channel_data")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
src/drivers/driver_nl80211_capa.c