mac80211: tear down BA sessions properly on suspend
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Apr 2011 11:38:00 +0000 (13:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:16 +0000 (14:50 -0400)
commitca45de77ad706e86b135b8564e21aa2c8a63f09b
tree4a4163de4e22d610bb34b7cfc86fd69767c7645f
parent31d291a769b4318cbf7943ca149e04d201e2c931
mac80211: tear down BA sessions properly on suspend

Currently, the code to tear down BA sessions will
execute after queues are stopped, but attempt to
send frames, so those frames will just get queued,
which isn't intended. Move this code to before to
tear down the sessions properly.

Additionally, after stopping queues, flush the TX
queues in the driver driver to make sure all the
frames went out.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/pm.c