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 <<a href="mailto:johannes@sipsolutions.net">johannes@sipsolutions.net</a>> 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>> I was looking through the code and I'm a bit confused by this:<br>> param->u.beacon.head_len=head_len;<br>> param->
u.beacon.tail_len = tail_len;<br>> in static int i802_set_beacon in the driver_devicespace.c file.<br><br></div>Don't look at driver_devicescape, you don't want it. Look at<br>driver_hostap.<br><div class="Ih2E3d">
<br>> Where is the struct with head_len and tail_len members defined?<br><br></div>Nowhere. The driver can'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>> Also, beacon is not part of the union for u as far as I could<br>> 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>