rt2x00: Add autowake support for USB hardware
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 30 Apr 2011 15:18:18 +0000 (17:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 May 2011 18:49:19 +0000 (14:49 -0400)
commit1c0bcf89d85cc97a0d9ce4cd909351a81fa4fdde
tree909f63418c495c925d53eb66ebe4bae7cddbe95d
parentfdbc7b0a262e24a3ee00f1f9acb5a97309a173d5
rt2x00: Add autowake support for USB hardware

The USB drivers don't support automatically waking up when in powersaving mode,
add a work object which will wakeup the device in time to receive the next beacon.
Based on that beacon, we either go back into powersaving mode, or we remain awake
to receive the buffered frames for our station.

Some part of the code, especially rt2x00lib_find_ie and rt2x00lib_rxdone_check_ps
are inspired on the code from carl9170.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00config.c
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt73usb.c