[PATCH] nl80211 driver: fix beacon interval setting

Johannes Berg johannes at sipsolutions.net
Wed May 21 17:35:30 EDT 2008


On Wed, 2008-04-09 at 15:51 +0200, Johannes Berg wrote:
> > > To implement multi-BSS support again I really need per-BSS data in the
> > > nl80211 driver. I can make it work by introducing a per-VLAN/per-BSS
> > > data hash that hashes from the interface name, but I'd like to avoid
> > > that. If I were to post a patch for the driver interface that does what
> > > I need, would you help me adjust all the other drivers?
> > 
> > Using a hash table here sounds like an optimization that is probably not
> > needed (we do not really have that many BSSes..). driver_test.c has a
> > simple example that uses a linked list of per-BSS structures and
> > test_driver_get_bss() function to fetch one based on ifname. I would
> > expect something similar to work with driver_nl80211.c, too.
> 
> True, with a small lookup function it wouldn't really matter. I'll give
> it a try when I get around.

Ok, I looked at this, but I really need the ifname in more functions:

 - del_beacon (could be hacked around by looking at the bssid.. yuck)
 - set_beacon_int
 - set_sta_vlan
 - sta_set_flags
 - sta_remove
 - sta_add
 - flush
 - read_sta_data

For not all of the sta functions it is necessary, but since I'm trying
to move towards a "stations are per virtual interface" model in mac80211
it will probably become necessary, and at least sta_set_flags needs it
because of the 802.1x setting.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20080521/2fe1213a/attachment.pgp 


More information about the HostAP mailing list