Beacon modification

Jouni Malinen j
Sat Feb 18 09:27:28 PST 2012


On Sat, Feb 18, 2012 at 02:14:04PM +0100, Patrick Herrmann (RWTH) wrote:
> I had to modify the beacon and added a vendor specific IE to it. To 
> achieve this, I modified the beacon in the function 
> "ieee802_11_set_beacon" (src/ap/beacon.c). This seems to work fine.
> 
> Was that the correct point to modify the beacon or should I do that 
> somewhere else?

That depends on the driver you are using. If the driver uses Beacon
template from hostapd that function is indeed the correct place. For
drivers that builds most of the Beacon frame themselves,
hostapd_build_ap_extra_ies() in ap_drv_ops.c would be the place to
change/add elements.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list