aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 6dc61b7710b..1db0c3bf2e1 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -442,7 +442,7 @@ static int rt2800pci_set_state(struct rt2x00_dev *rt2x00dev,
442 * if the device is booting and wasn't asleep it will return 442 * if the device is booting and wasn't asleep it will return
443 * failure when attempting to wakeup. 443 * failure when attempting to wakeup.
444 */ 444 */
445 rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0, 2); 445 rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0xff, 2);
446 446
447 if (state == STATE_AWAKE) { 447 if (state == STATE_AWAKE) {
448 rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, TOKEN_WAKUP, 0, 0); 448 rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, TOKEN_WAKUP, 0, 0);
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 04dfedc70f8..5c31e3350aa 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -184,9 +184,9 @@ static int rt2800usb_set_state(struct rt2x00_dev *rt2x00dev,
184 enum dev_state state) 184 enum dev_state state)
185{ 185{
186 if (state == STATE_AWAKE) 186 if (state == STATE_AWAKE)
187 rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, 0xff, 0, 0); 187 rt2800_mcu_request(rt2x00dev, MCU_WAKEUP, 0xff, 0, 2);
188 else 188 else
189 rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0, 2); 189 rt2800_mcu_request(rt2x00dev, MCU_SLEEP, 0xff, 0xff, 2);
190 190
191 return 0; 191 return 0;
192} 192}