From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-06-19 18:36:28 UTC
On Mon, Jun 17, 2002 at 10:00:38AM +0800, Tony Cheung wrote:
> Indeed, I have succesfully tested one case
> by sending a netlink message within handle_assoc() (prism2_ap.c).
> However, when I try to send a netlink message from
> within the ap_handle_timer(), the kernel just hangs when the
> sock_sendmsg() is called.
> Any advice? Is there anything special about the ap_handle_timer() call
> that I need to be aware of?
Yes. ap_handle_timer() is run in interrupt context whereas handle_assoc() is not (even though there was an incorrect comment for these AP queue handler functions in prism2_ap.c). Are you sure that the code you are using to send netlink messages is safe to be used in interrupt context?
-- Jouni Malinen PGP id EFC895FA