rt2x00: Fix MCU_SLEEP arguments
Legacy driver uses 0xff as the second argument for the MCU_SLEEP command. It is still unknown what the values actually mean, but this will at least keep the command in-sync with the original driver. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
f44df18c58
commit
303c7d6abf
@@ -184,9 +184,9 @@ static int rt2800usb_set_state(struct rt2x00_dev *rt2x00dev,
|
||||
enum dev_state state)
|
||||
{
|
||||
if (state == STATE_AWAKE)
|
||||
rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, 0xff, 0, 0);
|
||||
rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, 0xff, 0, 2);
|
||||
else
|
||||
rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0, 2);
|
||||
rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0xff, 2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user