diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
| -rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index b32d59eafaa3..8fc2315c5963 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
| @@ -349,15 +349,6 @@ int rt2x00mac_config(struct ieee80211_hw *hw, u32 changed) | |||
| 349 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) | 349 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) |
| 350 | return 0; | 350 | return 0; |
| 351 | 351 | ||
| 352 | if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS) { | ||
| 353 | rt2x00dev->ops->lib->set_retry_limit(hw, | ||
| 354 | conf->short_frame_max_tx_count, | ||
| 355 | conf->long_frame_max_tx_count); | ||
| 356 | } | ||
| 357 | changed &= ~IEEE80211_CONF_CHANGE_RETRY_LIMITS; | ||
| 358 | if (!changed) | ||
| 359 | return 0; | ||
| 360 | |||
| 361 | /* | 352 | /* |
| 362 | * Only change device state when the radio is enabled. It does not | 353 | * Only change device state when the radio is enabled. It does not |
| 363 | * matter what parameters we have configured when the radio is disabled | 354 | * matter what parameters we have configured when the radio is disabled |
| @@ -379,7 +370,7 @@ int rt2x00mac_config(struct ieee80211_hw *hw, u32 changed) | |||
| 379 | * When we've just turned on the radio, we want to reprogram | 370 | * When we've just turned on the radio, we want to reprogram |
| 380 | * everything to ensure a consistent state | 371 | * everything to ensure a consistent state |
| 381 | */ | 372 | */ |
| 382 | rt2x00lib_config(rt2x00dev, conf, !radio_on); | 373 | rt2x00lib_config(rt2x00dev, conf, changed); |
| 383 | 374 | ||
| 384 | /* Turn RX back on */ | 375 | /* Turn RX back on */ |
| 385 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_ON); | 376 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_ON); |
| @@ -643,7 +634,6 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
| 643 | } | 634 | } |
| 644 | 635 | ||
| 645 | spin_lock(&intf->lock); | 636 | spin_lock(&intf->lock); |
| 646 | memcpy(&intf->conf, bss_conf, sizeof(*bss_conf)); | ||
| 647 | if (delayed) { | 637 | if (delayed) { |
| 648 | intf->delayed_flags |= delayed; | 638 | intf->delayed_flags |= delayed; |
| 649 | schedule_work(&rt2x00dev->intf_work); | 639 | schedule_work(&rt2x00dev->intf_work); |
