diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index b26c634f210b..72cfe6f866f8 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -481,10 +481,17 @@ static void rt2x00lib_configuration_scheduled(struct work_struct *work) | |||
481 | { | 481 | { |
482 | struct rt2x00_dev *rt2x00dev = | 482 | struct rt2x00_dev *rt2x00dev = |
483 | container_of(work, struct rt2x00_dev, config_work); | 483 | container_of(work, struct rt2x00_dev, config_work); |
484 | int preamble = !test_bit(CONFIG_SHORT_PREAMBLE, &rt2x00dev->flags); | 484 | struct ieee80211_bss_conf bss_conf; |
485 | 485 | ||
486 | rt2x00mac_erp_ie_changed(rt2x00dev->hw, | 486 | bss_conf.use_short_preamble = |
487 | IEEE80211_ERP_CHANGE_PREAMBLE, 0, preamble); | 487 | test_bit(CONFIG_SHORT_PREAMBLE, &rt2x00dev->flags); |
488 | |||
489 | /* | ||
490 | * FIXME: shouldn't invoke it this way because all other contents | ||
491 | * of bss_conf is invalid. | ||
492 | */ | ||
493 | rt2x00mac_bss_info_changed(rt2x00dev->hw, rt2x00dev->interface.id, | ||
494 | &bss_conf, BSS_CHANGED_ERP_PREAMBLE); | ||
488 | } | 495 | } |
489 | 496 | ||
490 | /* | 497 | /* |