diff mbox

mac80211: remove bogus code

Message ID 1254261794.30589.24.camel@johannes.local (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Johannes Berg Sept. 29, 2009, 10:03 p.m. UTC
None
diff mbox

Patch

--- wireless-testing.orig/net/mac80211/cfg.c	2009-09-30 00:00:37.000000000 +0200
+++ wireless-testing/net/mac80211/cfg.c	2009-09-30 00:00:48.000000000 +0200
@@ -738,13 +738,6 @@  static int ieee80211_add_station(struct 
 
 	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;
 	}