Modifying hostap source code

Jouni Malinen jkmaline
Wed Jun 28 18:52:03 PDT 2006


On Wed, Jun 28, 2006 at 03:57:03PM +0530, Gambhir, Pulkit (Pulkit)** CTR ** wrote:

> make a small change in the source, I have to re-compile and re-install the
> module (all that being done using the original hostap source Makefile) and
> then reboot the system; is there some way I could run the code without
> having to reboot the machine each time I recompile ?
> 
> I have tried the following sequence of steps :
> 
> *	shutdown wlan interface
> *	change source, recompile and re-install it
> *	plug out the pcmcia card
> *	remove the hostap modules loaded in the memory (modprobe -r)
> *	re-insert the pcmcia card (this automatically loads the host and
> hostap_cs modules)

This should work. Please make sure that all related modules were indeed
unloaded (e.g., lsmod | grep hostap).

> However everytime I do this, for some strange reason the kernel continues to
> run the older module which I had supposedly over-written (I am assuming
> there is some kind of caching at work here). On rebooting , the newer module
> is loaded hassle free of course. The problem is that these constant reboots
> are substantially increasing my development time, is there some way to avoid
> this ?

I would guess that one of the modules, e.g., hostap.o, was not unloaded
and the previous version was still in use when only the new hostap_cs.o
was loaded.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list