aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 67a994247a30..f93337128504 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -114,8 +114,7 @@ static void rt2800usb_toggle_rx(struct rt2x00_dev *rt2x00dev,
114 114
115 rt2800_register_read(rt2x00dev, MAC_SYS_CTRL, &reg); 115 rt2800_register_read(rt2x00dev, MAC_SYS_CTRL, &reg);
116 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 116 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX,
117 (state == STATE_RADIO_RX_ON) || 117 (state == STATE_RADIO_RX_ON));
118 (state == STATE_RADIO_RX_ON_LINK));
119 rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, reg); 118 rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, reg);
120} 119}
121 120
@@ -216,9 +215,7 @@ static int rt2800usb_set_device_state(struct rt2x00_dev *rt2x00dev,
216 rt2800usb_set_state(rt2x00dev, STATE_SLEEP); 215 rt2800usb_set_state(rt2x00dev, STATE_SLEEP);
217 break; 216 break;
218 case STATE_RADIO_RX_ON: 217 case STATE_RADIO_RX_ON:
219 case STATE_RADIO_RX_ON_LINK:
220 case STATE_RADIO_RX_OFF: 218 case STATE_RADIO_RX_OFF:
221 case STATE_RADIO_RX_OFF_LINK:
222 rt2800usb_toggle_rx(rt2x00dev, state); 219 rt2800usb_toggle_rx(rt2x00dev, state);
223 break; 220 break;
224 case STATE_RADIO_IRQ_ON: 221 case STATE_RADIO_IRQ_ON: