mac80211: clean up ieee80211_hw_config errors
[safe/jmp/linux-2.6] / net / mac80211 / cfg.c
index 8dc5e46..cf3fd5d 100644 (file)
@@ -394,8 +394,7 @@ static int ieee80211_config_beacon(struct ieee80211_sub_if_data *sdata,
         */
        if (params->interval) {
                sdata->local->hw.conf.beacon_int = params->interval;
-               if (ieee80211_hw_config(sdata->local))
-                       return -EINVAL;
+               ieee80211_hw_config(sdata->local);
                /*
                 * We updated some parameter so if below bails out
                 * it's not an error.