All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] d80211-p54: Add control structure for beacontemplates
@ 2007-02-03 16:25 Ivo van Doorn
  2007-02-03 16:33 ` Michael Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Ivo van Doorn @ 2007-02-03 16:25 UTC (permalink / raw)
  To: Jiri Benc, John Linville, Michael Buesch, Michael Wu, netdev

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@gmail.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;
 }
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] d80211-p54: Add control structure for beacontemplates
  2007-02-03 16:25 [PATCH 3/3] d80211-p54: Add control structure for beacontemplates Ivo van Doorn
@ 2007-02-03 16:33 ` Michael Wu
  2007-02-03 16:40   ` Ivo van Doorn
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Wu @ 2007-02-03 16:33 UTC (permalink / raw)
  To: Ivo van Doorn; +Cc: Jiri Benc, John Linville, Michael Buesch, netdev

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On Saturday 03 February 2007 11:25, Ivo van Doorn wrote:
> 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.
>
Yeah, beacons aren't actually handled yet. BEACON_TEMPLATE can just be turned 
off for now if it's causing problems, though I don't see a reason why a 
beacon would be generated for managed mode.

-Michael Wu

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] d80211-p54: Add control structure for beacontemplates
  2007-02-03 16:33 ` Michael Wu
@ 2007-02-03 16:40   ` Ivo van Doorn
  2007-02-03 16:49     ` Michael Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Ivo van Doorn @ 2007-02-03 16:40 UTC (permalink / raw)
  To: Michael Wu; +Cc: Jiri Benc, John Linville, Michael Buesch, netdev

On Saturday 03 February 2007 17:33, Michael Wu wrote:
> On Saturday 03 February 2007 11:25, Ivo van Doorn wrote:
> > 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.
> >
> Yeah, beacons aren't actually handled yet. BEACON_TEMPLATE can just be turned 
> off for now if it's causing problems, though I don't see a reason why a 
> beacon would be generated for managed mode.

It would only be generated for AP mode.
In any case, the new patch:

Signed-off-by Ivo van Doorn <IvDoorn@gmail.com>

---

diff --git a/drivers/net/wireless/d80211/p54/prism54common.c b/drivers/net/wireless/d80211/p54/prism54common.c
index fd4ea5d..8335f99 100644
--- a/drivers/net/wireless/d80211/p54/prism54common.c
+++ b/drivers/net/wireless/d80211/p54/prism54common.c
@@ -766,8 +766,7 @@ struct ieee80211_hw *p54_init_common(size_t priv_data_len)
 	priv->modes[0].rates = priv->rates;
 	priv->modes[0].num_channels = ARRAY_SIZE(p54_channels);
 	priv->modes[0].channels = priv->channels;
-	dev->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |
-		    IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | /* not sure */
+	dev->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | /* not sure */
 		    IEEE80211_HW_RX_INCLUDES_FCS |
 		    IEEE80211_HW_WEP_INCLUDE_IV |
 		    IEEE80211_HW_DATA_NULLFUNC_ACK; /* TODO: check */

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/3] d80211-p54: Add control structure for beacontemplates
  2007-02-03 16:40   ` Ivo van Doorn
@ 2007-02-03 16:49     ` Michael Wu
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Wu @ 2007-02-03 16:49 UTC (permalink / raw)
  To: Ivo van Doorn; +Cc: Jiri Benc, John Linville, Michael Buesch, netdev

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

On Saturday 03 February 2007 11:40, Ivo van Doorn wrote:
> It would only be generated for AP mode.
> In any case, the new patch:
>
> Signed-off-by Ivo van Doorn <IvDoorn@gmail.com>
>
ACK

Thanks,
-Michael Wu

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-03 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03 16:25 [PATCH 3/3] d80211-p54: Add control structure for beacontemplates Ivo van Doorn
2007-02-03 16:33 ` Michael Wu
2007-02-03 16:40   ` Ivo van Doorn
2007-02-03 16:49     ` Michael Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.