Search Linux Wireless

[PATCH 03/12] mac80211: ieee80211_free_keys frees all keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No need to call ieee80211_key_free() for each key.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

---
 net/mac80211/ieee80211_iface.c |    6 ------
 1 file changed, 6 deletions(-)

--- wireless-dev.orig/net/mac80211/ieee80211_iface.c	2007-08-28 17:52:43.004622115 +0200
+++ wireless-dev/net/mac80211/ieee80211_iface.c	2007-08-28 17:53:20.404622115 +0200
@@ -229,7 +229,6 @@ void ieee80211_if_reinit(struct net_devi
 	struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
 	struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
 	struct sta_info *sta;
-	int i;
 
 	ASSERT_RTNL();
 
@@ -237,11 +236,6 @@ void ieee80211_if_reinit(struct net_devi
 
 	ieee80211_if_sdata_deinit(sdata);
 
-	for (i = 0; i < NUM_DEFAULT_KEYS; i++) {
-		ieee80211_key_free(sdata->keys[i]);
-		WARN_ON(sdata->keys[i]);
-	}
-
 	switch (sdata->type) {
 	case IEEE80211_IF_TYPE_AP: {
 		/* Remove all virtual interfaces that use this BSS

-- 

-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux