diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 76a2a7c118b2..0a11c27d603b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -436,17 +436,15 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
436 | } | 436 | } |
437 | 437 | ||
438 | /* | 438 | /* |
439 | * When the preamble mode has changed, we should perform additional | 439 | * When the erp information has changed, we should perform |
440 | * configuration steps. For all other changes we are already done. | 440 | * additional configuration steps. For all other changes we are done. |
441 | */ | 441 | */ |
442 | if (changes & BSS_CHANGED_ERP_PREAMBLE) { | 442 | if (changes & BSS_CHANGED_ERP_PREAMBLE) |
443 | rt2x00lib_config_preamble(rt2x00dev, intf, | 443 | rt2x00lib_config_erp(rt2x00dev, intf, bss_conf); |
444 | bss_conf->use_short_preamble); | ||
445 | 444 | ||
446 | spin_lock(&intf->lock); | 445 | spin_lock(&intf->lock); |
447 | memcpy(&intf->conf, bss_conf, sizeof(*bss_conf)); | 446 | memcpy(&intf->conf, bss_conf, sizeof(*bss_conf)); |
448 | spin_unlock(&intf->lock); | 447 | spin_unlock(&intf->lock); |
449 | } | ||
450 | } | 448 | } |
451 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); | 449 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); |
452 | 450 | ||