aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-10-30 10:48:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-30 16:50:40 -0400
commite6e898cfea5f35d64f850277e7fa295c386cf953 (patch)
tree96cb3441896011d1f797607a5e68432c9d16442d /net/mac80211/cfg.c
parentff9458d3ec179831ebe6966a8aa014ccb3907dc6 (diff)
mac80211: remove bogus code
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>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 5608f6c68413..a0c7eb18a76d 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -738,13 +738,6 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
738 738
739 err = sta_info_insert(sta); 739 err = sta_info_insert(sta);
740 if (err) { 740 if (err) {
741 /* STA has been freed */
742 if (err == -EEXIST && layer2_update) {
743 /* Need to update layer 2 devices on reassociation */
744 sta = sta_info_get(local, mac);
745 if (sta)
746 ieee80211_send_layer2_update(sta);
747 }
748 rcu_read_unlock(); 741 rcu_read_unlock();
749 return err; 742 return err;
750 } 743 }