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>
This commit is contained in:
committed by
John W. Linville
parent
fdbc7b0a26
commit
1c0bcf89d8
@ -1797,6 +1797,7 @@ static int rt2500usb_probe_hw(struct rt2x00_dev *rt2x00dev)
|
||||
__set_bit(REQUIRE_COPY_IV, &rt2x00dev->cap_flags);
|
||||
}
|
||||
__set_bit(REQUIRE_SW_SEQNO, &rt2x00dev->cap_flags);
|
||||
__set_bit(REQUIRE_PS_AUTOWAKE, &rt2x00dev->cap_flags);
|
||||
|
||||
/*
|
||||
* Set the rssi offset.
|
||||
|
Reference in New Issue
Block a user