]> 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)
commitc5a809a6b1917a373ba19784d049348105c787bc
treef792abdb4ba22c36640a85b2b89ec797c772700c
parentb6d9ac44044252e13804c97f71b7d5962c606a77
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