aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 1fdb80ff924..4b930308b1f 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1075,7 +1075,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1075{ 1075{
1076 struct ieee80211_hw *hw = &local->hw; 1076 struct ieee80211_hw *hw = &local->hw;
1077 struct ieee80211_sub_if_data *sdata; 1077 struct ieee80211_sub_if_data *sdata;
1078 struct ieee80211_if_init_conf conf;
1079 struct sta_info *sta; 1078 struct sta_info *sta;
1080 unsigned long flags; 1079 unsigned long flags;
1081 int res; 1080 int res;
@@ -1094,12 +1093,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1094 list_for_each_entry(sdata, &local->interfaces, list) { 1093 list_for_each_entry(sdata, &local->interfaces, list) {
1095 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN && 1094 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN &&
1096 sdata->vif.type != NL80211_IFTYPE_MONITOR && 1095 sdata->vif.type != NL80211_IFTYPE_MONITOR &&
1097 ieee80211_sdata_running(sdata)) { 1096 ieee80211_sdata_running(sdata))
1098 conf.vif = &sdata->vif; 1097 res = drv_add_interface(local, &sdata->vif);
1099 conf.type = sdata->vif.type;
1100 conf.mac_addr = sdata->vif.addr;
1101 res = drv_add_interface(local, &conf);
1102 }
1103 } 1098 }
1104 1099
1105 /* add STAs back */ 1100 /* add STAs back */