Beacon Stuffing using hostapd
Tue Jun 30 08:14:58 PDT 2015
I'm a final year master student and I'm currently working on my master
One of the first objectives I'm trying to achieve is to perform beacon
stuffing using the Vendor Specific Information Element (IE 221) to pass
around some network metrics in Beacons. Nodes will be running hostapd.
To enable this Information Element in beacons and probe response frames I
used the "vendor_elements" field in the hostapd.conf file and everything is
Although, my metrics change during run-time so I need to be able to change
the IE 221 without restarting hostapd.
After tracing the hostapd source code I still can't find the solution to my
problem: How to change the IE 221 during run time?
I see that the vendor_elements is loaded from the configuration file
*(inside config_file.c) and that the beacon is constructed in
*ieee802_11_build_ap_params* (inside beacon.c). Then it seems that
*wpa_driver_nl80211_set_ap* (inside driver_nl80211.c) sends Head and Tail
beacon parts to cfg80211 then everything is handled by the lower level
drivers. Am I right?
Using Debug Mode I can see that hostapd is in charge of handling both MLME
and Probe Req/Rep frames. But what about Beacons, does hostapd also send
the beacon frames or are these handled by mac80211?
What I am trying to understand is where should I focus if I want to update
the IE 221 during run time. Could I use for example the
ieee802_11_update_beacons function to achieve this?
Sorry for such a long email, but I've been trying to solve this question
for quite a long time and the deadline is getting closer and closer.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Hostap