public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* mac80211: Force beacon update?
@ 2009-07-03  7:15 Reiner Herrmann
  2009-07-03  7:29 ` Iwo Mergler
  2009-07-03  8:00 ` Johannes Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Reiner Herrmann @ 2009-07-03  7:15 UTC (permalink / raw)
  To: linux-wireless

Hi,

I want to attach a custom IE to beacons, but some drivers (like b43)
are fetching their beacons via ieee80211_beacon_get() only once and
retransmit this beacon every time.
Some other drivers (like mac80211_hwsim, ath9k) are calling it
before every beacon transmission.

Is there a general way to make all drivers generate new beacons instead
of caching them or would I have to adapt them?
If adapting drivers is the only way, do you have any suggestions on
how to do that?

Thank you for your answers.

Regards,
  Reiner

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

* Re: mac80211: Force beacon update?
  2009-07-03  7:15 mac80211: Force beacon update? Reiner Herrmann
@ 2009-07-03  7:29 ` Iwo Mergler
  2009-07-03  8:00 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Iwo Mergler @ 2009-07-03  7:29 UTC (permalink / raw)
  To: Reiner Herrmann; +Cc: linux-wireless

Reiner Herrmann wrote:
> Hi,
> 
> I want to attach a custom IE to beacons, but some drivers (like b43)
> are fetching their beacons via ieee80211_beacon_get() only once and
> retransmit this beacon every time.
> Some other drivers (like mac80211_hwsim, ath9k) are calling it
> before every beacon transmission.
> 
> Is there a general way to make all drivers generate new beacons instead
> of caching them or would I have to adapt them?
> If adapting drivers is the only way, do you have any suggestions on
> how to do that?

Hi Reiner

the drivers that call ieee80211_beacon_get() only once, have
hardware that transmits beacons automatically. That is, the
beacon template from ieee80211_beacon_get() is stored in the
hardware and the hardware then automatically sends that while
updating a few fields as needed.

In other words, the driver doesn't know anything about the
beacons after the initial setup, and thus can't call ieee80211_beacon_get().
No caching is involved. :-)

So to do what you want, you need to disable the automatic
beaconing and use packet injection and send your beacons
as raw frames.


Best regards,

Iwo


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

* Re: mac80211: Force beacon update?
  2009-07-03  7:15 mac80211: Force beacon update? Reiner Herrmann
  2009-07-03  7:29 ` Iwo Mergler
@ 2009-07-03  8:00 ` Johannes Berg
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2009-07-03  8:00 UTC (permalink / raw)
  To: Reiner Herrmann; +Cc: linux-wireless

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

On Fri, 2009-07-03 at 09:15 +0200, Reiner Herrmann wrote:

> I want to attach a custom IE to beacons,

Umm, afaik you can configure that in hostapd, if not then you need to
hack hostapd.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

end of thread, other threads:[~2009-07-03  8:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03  7:15 mac80211: Force beacon update? Reiner Herrmann
2009-07-03  7:29 ` Iwo Mergler
2009-07-03  8:00 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox