]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3a385c321de239d5eee11ebbe7b644be8e4c4eb
treef792abdb4ba22c36640a85b2b89ec797c772700c
parent220c3806e7acbce9b2bb114751253b15c965962b
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