mac80211: fix WMM AP settings application
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 17 Dec 2009 15:16:53 +0000 (16:16 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 16:32:28 +0000 (11:32 -0500)
commit0183826b58a2712ffe608bc3302447be3e6a3ab8
treedf85bb225c3260628fc99d2e1a1b42a160cd49ff
parent9a418af5df03ad133cd8c8f6742b75e542db6392
mac80211: fix WMM AP settings application

My
  commit 77fdaa12cea26c204cc12c312fe40bc0f3dcdfd8
  Author: Johannes Berg <johannes@sipsolutions.net>
  Date:   Tue Jul 7 03:45:17 2009 +0200

      mac80211: rework MLME for multiple authentications

inadvertedly broke WMM because it removed, along with
a bunch of other now useless initialisations, the line
initialising sdata->u.mgd.wmm_last_param_set to -1
which would make it adopt any WMM parameter set. If,
as is usually the case, the AP uses WMM parameter set
sequence number zero, we'd never update it until the
AP changes the sequence number.

Add the missing initialisation back to get the WMM
settings from the AP applied locally.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org [2.6.31+]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c