Compile error in hostap_hw.c? (0.0.4)

Brian Pomerantz bapper
Wed Jul 30 08:46:19 PDT 2003


On Wed, Jul 30, 2003 at 05:19:41PM +0200, Mario Kuechler wrote:
> 
> When trying to use the module I get:
> 
> depmod: *** Unresolved symbols in /lib/modules/2.4.18/net/hostap_pci.o
> depmod:         yield
> 
> If I understand hostap_hw.c right, this function has "something to do" with
> 2.2.x kernels?
> 

I fixed this by putting this just after the else statement for "is
this kernel less than 2.4.0" in hostap_compat.h (around line 80):

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19)
#ifndef yield
#define yield() do { set_current_state(TASK_RUNNING); schedule(); } while(0)
#endif
#endif

Seems to work just fine after that.


BAPper




More information about the Hostap mailing list