diff options
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index d82d886d0867..264397aee811 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1185,13 +1185,12 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
1185 | mutex_lock(&local->sta_mtx); | 1185 | mutex_lock(&local->sta_mtx); |
1186 | list_for_each_entry(sta, &local->sta_list, list) { | 1186 | list_for_each_entry(sta, &local->sta_list, list) { |
1187 | if (sta->uploaded) { | 1187 | if (sta->uploaded) { |
1188 | sdata = sta->sdata; | 1188 | enum ieee80211_sta_state state; |
1189 | if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) | ||
1190 | sdata = container_of(sdata->bss, | ||
1191 | struct ieee80211_sub_if_data, | ||
1192 | u.ap); | ||
1193 | 1189 | ||
1194 | WARN_ON(drv_sta_add(local, sdata, &sta->sta)); | 1190 | for (state = IEEE80211_STA_NOTEXIST; |
1191 | state < sta->sta_state - 1; state++) | ||
1192 | WARN_ON(drv_sta_state(local, sta->sdata, sta, | ||
1193 | state, state + 1)); | ||
1195 | } | 1194 | } |
1196 | } | 1195 | } |
1197 | mutex_unlock(&local->sta_mtx); | 1196 | mutex_unlock(&local->sta_mtx); |