Netlink communication in HostAP


From: Tony Cheung (tony_at_astri.org)
Date: 2002-06-17 02:00:38 UTC



Hi All,

I am trying to add some kernel and user space communication in the HostAP driver. I am trying to use the netlink mechanism for sending a netlink message within the HostAP driver to a user space program.

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.

I have used these few calls when sending out a netlink message,

sock_create(), sock_sendmsg() and sock_release()

I am using the prism2 2002-05-19 version and linux 2.4.7

Any advice? Is there anything special about the ap_handle_timer() call that I need to be aware of?

Thank you very much!

Tony Cheung



This archive was generated by hypermail 2.1.4.