All right, there is no driver_hostap.c. There is driver.c which Jouni commented implements interaction with the HostAP driver, but that driver does not have anything related to setting the beacon, unless I missed something.
<br><br>Timur<br><br><div class="gmail_quote">On Jan 18, 2008 5:29 PM, Johannes Berg &lt;<a href="mailto:johannes@sipsolutions.net">johannes@sipsolutions.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>On Fri, 2008-01-18 at 17:27 -0500, Timur Alperovich wrote:<br>&gt; I was looking through the code and I&#39;m a bit confused by this:<br>&gt; param-&gt;u.beacon.head_len=head_len;<br>&gt; param-&gt;
u.beacon.tail_len = tail_len;<br>&gt; in static int i802_set_beacon in the driver_devicespace.c file.<br><br></div>Don&#39;t look at driver_devicescape, you don&#39;t want it. Look at<br>driver_hostap.<br><div class="Ih2E3d">
<br>&gt; &nbsp;Where is the struct with head_len and tail_len members defined?<br><br></div>Nowhere. The driver can&#39;t compile because it assumes that those<br>definitions are exported from the kernel, but they have long been
<br>killed.<br><div class="Ih2E3d"><br>&gt; &nbsp;Also, beacon is not part of the union for u as far as I could<br>&gt; tell...<br><br></div>Well, no, the beacon data sits right after the parameter.<br><font color="#888888"><br>
johannes<br></font></blockquote></div><br>