<div dir="ltr"><div><div><div>Hi all,<br></div>I&#39;m a final year master student and I&#39;m currently working on my master thesis. <br><br>One
 of the first objectives I&#39;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.<br></div>To
 enable this Information Element in beacons and probe response frames I 
used the &quot;vendor_elements&quot; field in the hostapd.conf file and everything
 is working fine.<br></div><div>Although, my metrics change during run-time so I need to be able to change the IE 221 without restarting hostapd.<br><br></div><div>After tracing the hostapd source code I still can&#39;t find the solution to my problem: How to change the IE 221 during run time?<br><br></div><div>I see that the vendor_elements is loaded from the configuration file in <b>hostapd_config_fill </b>(inside config_file.c) and that the beacon is constructed in <b>ieee802_11_build_ap_params</b> (inside beacon.c). Then it seems that <b>wpa_driver_nl80211_set_ap</b>
 (inside driver_nl80211.c) sends Head and Tail beacon parts to cfg80211 
then everything is handled by the lower level drivers. Am I right?<br><br></div><div>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?<br></div><div><br></div><div>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?<br><br></div><div>Sorry
 for such a long email, but I&#39;ve been trying to solve this question for 
quite a long time and the deadline is getting closer and closer.<br><br></div><div>Best Regards,<br></div>Pedro Salazar</div>