mac80211: don't start the dynamic ps timer if not associated
authorLuciano Coelho <coelho@ti.com>
Tue, 3 May 2011 18:40:08 +0000 (21:40 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:35:43 +0000 (15:35 -0400)
commit5db1c07ced19b2eec3a149a3c624d88e02e246ae
tree873165bf02bfdbb5822fe6e9a5f0ba96dd70f2db
parent16b345d89686ca0482a9ca741a1167def1abdd7f
mac80211: don't start the dynamic ps timer if not associated

When we are disconnecting, we set PS off, but this happens before we
send the deauth/disassoc request.  When the deauth/disassoc frames are
sent, we trigger the dynamic ps timer, which then times out and turns
PS back on.  Thus, PS remains on after disconnecting, causing problems
when associating again.

This can be fixed by preventing the timer to start when we're not
associated anymore.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c