invalid context and set_rid/get_rid

Marcin Dabrowski daber
Sat Mar 19 13:06:47 PST 2005

I've swaped local->passive_scan_timer.function to my own.
In my function I'm calling get_rid to check link quality and set_rid
to force scanning.


>On Sat, Mar 19, 2005 at 08:45:10PM +0100, Marcin Dabrowski wrote:

>>       When I try to call function set_rid or get_rid I get this log:
>> kernel: Debug: sleeping function called from invalid context at
>> include/asm/semaphore.h:130

>Where are you calling them from? Those functions can sleep and as such,
>they must not be called from interrupt context.

>Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list