diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index e98d013a189f..f519d7396848 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -272,7 +272,7 @@ int rt2x00mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf) | |||
272 | if (!conf->radio_enabled) | 272 | if (!conf->radio_enabled) |
273 | rt2x00lib_disable_radio(rt2x00dev); | 273 | rt2x00lib_disable_radio(rt2x00dev); |
274 | else | 274 | else |
275 | rt2x00lib_toggle_rx(rt2x00dev, 0); | 275 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_OFF); |
276 | } | 276 | } |
277 | 277 | ||
278 | rt2x00lib_config(rt2x00dev, conf, 0); | 278 | rt2x00lib_config(rt2x00dev, conf, 0); |
@@ -281,7 +281,7 @@ int rt2x00mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf) | |||
281 | * Reenable RX only if the radio should be on. | 281 | * Reenable RX only if the radio should be on. |
282 | */ | 282 | */ |
283 | if (test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags)) | 283 | if (test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags)) |
284 | rt2x00lib_toggle_rx(rt2x00dev, 1); | 284 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_ON); |
285 | else if (conf->radio_enabled) | 285 | else if (conf->radio_enabled) |
286 | return rt2x00lib_enable_radio(rt2x00dev); | 286 | return rt2x00lib_enable_radio(rt2x00dev); |
287 | 287 | ||