diff options
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index a97c6ff0f12e..3c693e6ec904 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3468,11 +3468,6 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed) | |||
3468 | if (phy->ops->set_rx_antenna) | 3468 | if (phy->ops->set_rx_antenna) |
3469 | phy->ops->set_rx_antenna(dev, antenna); | 3469 | phy->ops->set_rx_antenna(dev, antenna); |
3470 | 3470 | ||
3471 | /* Update templates for AP/mesh mode. */ | ||
3472 | if (b43_is_mode(wl, NL80211_IFTYPE_AP) || | ||
3473 | b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT)) | ||
3474 | b43_set_beacon_int(dev, conf->beacon_int); | ||
3475 | |||
3476 | if (!!conf->radio_enabled != phy->radio_on) { | 3471 | if (!!conf->radio_enabled != phy->radio_on) { |
3477 | if (conf->radio_enabled) { | 3472 | if (conf->radio_enabled) { |
3478 | b43_software_rfkill(dev, RFKILL_STATE_UNBLOCKED); | 3473 | b43_software_rfkill(dev, RFKILL_STATE_UNBLOCKED); |
@@ -3556,6 +3551,13 @@ static void b43_op_bss_info_changed(struct ieee80211_hw *hw, | |||
3556 | goto out_unlock_mutex; | 3551 | goto out_unlock_mutex; |
3557 | b43_mac_suspend(dev); | 3552 | b43_mac_suspend(dev); |
3558 | 3553 | ||
3554 | /* Update templates for AP/mesh mode. */ | ||
3555 | if (changed & BSS_CHANGED_BEACON_INT && | ||
3556 | (b43_is_mode(wl, NL80211_IFTYPE_AP) || | ||
3557 | b43_is_mode(wl, NL80211_IFTYPE_MESH_POINT) || | ||
3558 | b43_is_mode(wl, NL80211_IFTYPE_ADHOC))) | ||
3559 | b43_set_beacon_int(dev, conf->beacon_int); | ||
3560 | |||
3559 | if (changed & BSS_CHANGED_BASIC_RATES) | 3561 | if (changed & BSS_CHANGED_BASIC_RATES) |
3560 | b43_update_basic_rates(dev, conf->basic_rates); | 3562 | b43_update_basic_rates(dev, conf->basic_rates); |
3561 | 3563 | ||