[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200702031725.22885.IvDoorn@gmail.com>
Date: Sat, 3 Feb 2007 17:25:22 +0100
From: Ivo van Doorn <ivdoorn@...il.com>
To: Jiri Benc <jbenc@...e.cz>,
"John Linville" <linville@...driver.com>,
Michael Buesch <mb@...sch.de>,
Michael Wu <flamingice@...rmilk.net>, netdev@...r.kernel.org
Subject: [PATCH 3/3] d80211-p54: Add control structure for beacontemplates
Drivers that require beacon templates will also have the
control structure at their disposal and should always free it.
p54 seems to ignore the beacon that is being passed,
even though it is requesting the BEACON_TEMPLATE.
That is why I not only added a line to free the control structure
but also the beacon itself.
Signed-off-by Ivo van Doorn <IvDoorn@...il.com>
---
diff --git a/drivers/net/wireless/d80211/p54/prism54common.c b/drivers/net/wireless/d80211/p54/prism54common.c
index fd4ea5d..5a00d65 100644
--- a/drivers/net/wireless/d80211/p54/prism54common.c
+++ b/drivers/net/wireless/d80211/p54/prism54common.c
@@ -714,6 +714,8 @@ static int p54_config_interface(struct ieee80211_hw *dev, int if_id,
p54_set_filter(dev, 0, dev->perm_addr, conf->bssid, 0, 1, 0, 0xF642);
p54_set_filter(dev, 0, dev->perm_addr, conf->bssid, 2, 0, 0, 0);
p54_set_leds(dev, 1, !is_multicast_ether_addr(conf->bssid), 0);
+ dev_kfree_skb(conf->beacon);
+ kfree(conf->beacon_control);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists