]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix WMM driver queue configuration
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Tue, 28 Sep 2010 11:39:32 +0000 (14:39 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Sep 2010 19:47:58 +0000 (15:47 -0400)
commitd11c84eb78fca96207fc8a796c11af14c0286384
tree76c42bde578332499d3fb77f5cdd110041476cee
parentba85c5d6a36f610802f9b083fd52d03f2af06ae1
mac80211: Fix WMM driver queue configuration

The WMM parameter configuration function (ieee80211_sta_wmm_params) only
configures the WMM parameters to the driver is the wmm_last_param_set
counter value is changed by the AP.

The wmm_last_param_set is initialized to -1 on association in order to ensure
the configuration is made to the driver at least once on association, but
currently this initialization is done *after* the WMM parameter configuration
function was called.

This leads to unreliability in the driver getting properly configured on first
association (depending on what counter value the AP happens to use.) When
disassociating (the wmm default parameters are configured to the driver) and
then reassociating, due to the above the WMM configuration is not set to the
driver at all.

On drivers without beacon filtering the problem is corrected by later beacons,
but on drivers with beacon filtering the WMM will remain permanently incorrectly
configured.

Fix this by moving the initialization of wmm_last_param_set to -1 before
ieee80211_sta_wmm_params is called on association.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c