<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername"><a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a></b> &lt;<a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Update:<br><br>If I run:<br><br>make -C /usr/src/linux-source-2.6.17<br>without the SUBDIRS=./ modules part, seems that the compilation process is<br>launched.<br><br>Any ideas about why it does so without that?</blockquote>
<div><br>Leaving out the SUBDIRS= is fine, you&#39;ll just build all modules in the<br>&nbsp;entire tree, could take a little longer is all.<br><br>try first removing the old *.ko files in your wireless/hostap/ directory,<br>&nbsp;or &quot;make -C /usr/src/linux-
source-2.6.17 SUBDIRS=./ clean&quot;<br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; Thank you Jouni and Bob.<br>&gt;
<br>&gt; I found out I needed to compile the kernel sources at least one time<br>&gt; before using your recipe Bob, so I did compile the kernel sources, and<br>&gt; installed the .deb resulting packages to have the kernel (which is now
<br>&gt; 2.6.17-14)<br>&gt;<br>&gt; I&#39;m trying then to edit some files of the driver.<br>&gt;<br>&gt; So I do:<br>&gt; gedit<br>&gt; /usr/src/linux-source-2.6.17/drivers/net/wireless/hostap/hostap_80211_rx.c<br>&gt;<br>
&gt; in order to edit the .c file and add code to it. (I previously became<br>&gt; superuser with the su command)<br>&gt;<br>&gt; I make my changes to the file, then exit the editor.<br>&gt; After that, I try to use your recipe, Bob.
<br>&gt; So:<br>&gt;<br>&gt; make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules<br>&gt;<br>&gt; it then says it enters into /usr/src/linux-source-2.6.17<br>&gt; and I get this:<br>&gt;<br>&gt;&nbsp;&nbsp;Building modules, stage 2.
<br>&gt;&nbsp;&nbsp; MODPOST<br>&gt;<br>&gt; Then it says it exits /usr/src/linux-source-2.6.17</blockquote><div><br><br>see above, maybe compiler didn&#39;t think it needed to do anything since .o and<br>&nbsp;.ko files are already there.
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;<br>&gt; After I keep with your recipe:<br>&gt;<br>&gt; make -C /usr/src/linux-
source-2.6.17 SUBDIRS=./ modules_install<br>&gt;<br>&gt; I get, enters into directory then:<br>&gt; DEPMOD&nbsp;&nbsp;2.6.17.14-ubuntu1<br>&gt; then exits directory.<br>&gt;<br>&gt; I keep with:<br>&gt;<br>&gt; depmod -ae<br>&gt;<br>
&gt; that returns no message.</blockquote><div><br><br>no news is good news in this case, but maybe this was already done<br>&nbsp;from modules_install command, which probably just re-installed the same<br>&nbsp;(previous) *.ko files into /lib/modules/2.6.17.14-ubuntu1/whatever/
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt;<br>&gt; The point is, how is it that I&#39;ve not been notified of any error or
<br>&gt; warning at all? I even purposedly added a garbage line there, in order to<br>&gt; try if when doing the make command, the errors were showed to me, but no.<br>&gt;<br>&gt; I&#39;ll list you the content of:<br>&gt;
<br>&gt; /usr/src/linux-source-2.6.17/drivers/net/wireless/hostap# ls<br>&gt;<br>&gt; built-in.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_config.h&nbsp;&nbsp;&nbsp;&nbsp;hostap_ioctl.o&nbsp;&nbsp;&nbsp;&nbsp;hostap_plx.c<br>&gt; hostap_80211.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_cs.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap.ko&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_plx.ko
<br>&gt; hostap_80211.h~&nbsp;&nbsp;&nbsp;&nbsp; hostap_cs.ko&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_main.c&nbsp;&nbsp;&nbsp;&nbsp; hostap_plx.mod.c<br>&gt; hostap_80211_rx.c&nbsp;&nbsp; hostap_cs.mod.c&nbsp;&nbsp;&nbsp;&nbsp;hostap_main.o&nbsp;&nbsp;&nbsp;&nbsp; hostap_plx.mod.o<br>&gt; hostap_80211_rx.c~&nbsp;&nbsp;hostap_cs.mod.o&nbsp;&nbsp;&nbsp;&nbsp;hostap.mod.c
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_plx.o<br>&gt; hostap_80211_rx.o&nbsp;&nbsp; hostap_cs.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap.mod.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_proc.c<br>&gt; hostap_80211_tx.c&nbsp;&nbsp; hostap_download.c&nbsp;&nbsp;hostap.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_proc.o<br>&gt; hostap_80211_tx.o&nbsp;&nbsp; hostap.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_pci.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_wlan.h
<br>&gt; hostap_ap.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_hw.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_pci.ko&nbsp;&nbsp;&nbsp;&nbsp; Kconfig<br>&gt; hostap_ap.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_info.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_pci.mod.c&nbsp;&nbsp;Makefile<br>&gt; hostap_ap.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hostap_info.o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostap_pci.mod.o<br>&gt; hostap_common.h&nbsp;&nbsp;&nbsp;&nbsp; hostap_ioctl.c&nbsp;&nbsp;&nbsp;&nbsp; hostap_pci.o
<br>&gt;</blockquote><div><br>If you list with &quot;ls -ltr&quot; your newest files will be at the bottom of the list and<br>&nbsp;you can tell conclusively if the *.ko is newer than your edited *.[ch]&#39;s.<br><br></div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; I notice that files &quot;hostap_80211.h&quot; and &quot;hostap_80211_rx.c&quot; have a copy
<br>&gt; with a ~ on them, as if they were temporary files. Those two, the ones<br>&gt; ending with .c and .h have been the ones I&#39;ve tried to modify.<br>&gt; I saved the changes in the editor, and closed the editor program.
</blockquote><div><br>The editor created the *.c~ and *.h~ files, they are backups of the .c and .h<br>&nbsp;files from when you opened them with the editor, but not necessarily<br>&nbsp;the originals.&nbsp; You can always re-install the originals from the tarball,
<br>&nbsp;or manually copy them to something like hostap_80211.c.orig, in case<br>&nbsp;you want to generate a nice diff.<br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; The only thing I&#39;ve opened right now is Firefox to compose this mail.<br>&gt; Could it be that no errors are being shown, because the files have not yet<br>&gt; been properly saved?<br>&gt; If so, what am I doing wrong?
<br>&gt;<br>&gt; Thank you again for all your cooperation.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;&gt; On 3/21/07, Jouni Malinen &lt;<a href="mailto:j@w1.fi">j@w1.fi</a>&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Wed, Mar 21, 2007 at 12:01:14PM +0100, 
<a href="mailto:ahuguet@cttc.es">ahuguet@cttc.es</a> wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; &gt; Reading it, seems that the only way to make use of that HostAP driver<br>&gt;&gt;&gt; &gt; (with modified code lines on .c and .h files) is to compile the
<br>&gt;&gt;&gt; kernel<br>&gt;&gt;&gt; &gt; anew?<br>&gt;&gt;&gt; &gt;<br>&gt;&gt;&gt; &gt; Couldn&#39;t be a way to just tell the system to compile HostAP, and use<br>&gt;&gt;&gt; that<br>&gt;&gt;&gt; &gt; &quot;new&quot; version, without need of recompiling the whole kernel?
<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; My &quot;secret recipe&quot; for compiling just an individual driver is<br>&gt;&gt;&nbsp;&nbsp;approximately this:<br>&gt;&gt;<br>&gt;&gt; 1 - cd to the hostap directory, /usr/src/linux-source-2.6.17
<br>&gt;&gt; /drivers/net/wireless/hostap<br>&gt;&gt; 2 - make your changes and save them</blockquote><div><br>maybe add a <br>2.5 &#39;make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ clean&#39;<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt; 3 - &#39;make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules&#39;<br>&gt;&gt; 4 - &#39;make -C /usr/src/linux-source-2.6.17 SUBDIRS=./ modules_install&#39;<br>&gt;&gt; 5 - &#39;depmod -ae&#39;<br>&gt;&gt;<br>
&gt;&gt; Then do the rest of what Jouni says; reload (the new) modules, and try<br>&gt;&gt; it<br>&gt;&gt; out.<br>&gt;&gt;<br>&gt;&gt; If you build Host AP driver as a kernel module, you can just rebuild it<br>&gt;&gt;&gt; and reload the modules to update the driver without having to
<br>&gt;&gt;&gt; rebuild or reboot the full kernel.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; I hope this is helpful, (and anyone who finds an error, please correct<br>&gt;&gt; me!)<br>&gt;&gt;<br>&gt;&gt; Bob Beers
<br>&gt;&gt; _______________________________________________<br>&gt;&gt; HostAP mailing list<br>&gt;&gt; <a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com</a><br>&gt;&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap">
http://lists.shmoo.com/mailman/listinfo/hostap</a><br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; HostAP mailing list<br>&gt; <a href="mailto:HostAP@shmoo.com">HostAP@shmoo.com
</a><br>&gt; <a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>&gt;<br><br><br>_______________________________________________<br>HostAP mailing list<br><a href="mailto:HostAP@shmoo.com">
HostAP@shmoo.com</a><br><a href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a><br></blockquote></div><br>