rt2x00: Fix failed SLEEP->AWAKE and AWAKE->SLEEP transitions.
authorGertjan van Wingerde <gwingerde@gmail.com>
Thu, 13 May 2010 19:16:03 +0000 (21:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 May 2010 19:07:41 +0000 (15:07 -0400)
commit9655a6ec19ca656af246fb80817aa337892aefbf
treededf4a99d4ba98bb0260c7e3317db2750530921d
parent3dc3fc52ea1537f5f37ab301d2b1468a0e79988f
rt2x00: Fix failed SLEEP->AWAKE and AWAKE->SLEEP transitions.

(Based on a patch created by Ondrej Zary)

In some circumstances the Ralink devices do not properly go to sleep
or wake up, with timeouts occurring.
Fix this by retrying telling the device that it has to wake up or
sleep.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2400pci.c
drivers/net/wireless/rt2x00/rt2500pci.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c