mac80211: go out of PS before sending disassoc
authorEliad Peller <eliad@wizery.com>
Thu, 12 Jul 2012 14:35:33 +0000 (17:35 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 17 Jul 2012 10:17:42 +0000 (12:17 +0200)
commit88bc40e8c3d3bca7d26c756bb0b823d4abad3355
treef792abdb4ba22c36640a85b2b89ec797c772700c
parent14cdf112019c1d4bc0f1bf9a9c832be641dbe25a
mac80211: go out of PS before sending disassoc

on disassoc, ieee80211_set_disassoc() goes out of PS
before indicating BSS_CHANGED_ASSOC (not sure why this
is needed, but some drivers might count on the current
behavior).

However, it does it after sending the disassoc
frame, which results in null-data frame being sent
(in order to go out of ps) after we were already sent
the disassoc, which is invalid.

Fix it by going out of ps before sending the disassoc.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c