Skip to content

Commit

Permalink
mac80211: remove bogus code
Browse files Browse the repository at this point in the history
It's not right to do something here when returning an
error, and hostapd should never have relied on it as
it only fixes up a small part of the problem anyway.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 30, 2009
1 parent ff9458d commit e6e898c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,13 +738,6 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,

err = sta_info_insert(sta);
if (err) {
/* STA has been freed */
if (err == -EEXIST && layer2_update) {
/* Need to update layer 2 devices on reassociation */
sta = sta_info_get(local, mac);
if (sta)
ieee80211_send_layer2_update(sta);
}
rcu_read_unlock();
return err;
}
Expand Down

0 comments on commit e6e898c

Please sign in to comment.