diff options
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 7a7a6c176dc5..7912eb14eca0 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -396,8 +396,10 @@ static int ieee80211_config_beacon(struct ieee80211_sub_if_data *sdata, | |||
396 | */ | 396 | */ |
397 | if (params->interval) { | 397 | if (params->interval) { |
398 | sdata->local->hw.conf.beacon_int = params->interval; | 398 | sdata->local->hw.conf.beacon_int = params->interval; |
399 | ieee80211_hw_config(sdata->local, | 399 | err = ieee80211_hw_config(sdata->local, |
400 | IEEE80211_CONF_CHANGE_BEACON_INTERVAL); | 400 | IEEE80211_CONF_CHANGE_BEACON_INTERVAL); |
401 | if (err < 0) | ||
402 | return err; | ||
401 | /* | 403 | /* |
402 | * We updated some parameter so if below bails out | 404 | * We updated some parameter so if below bails out |
403 | * it's not an error. | 405 | * it's not an error. |