printk and PDEBUG
Dinesh S Shenoy
dshenoy
Sat May 3 23:38:39 PDT 2003
sorry about the confusing question
ok let me tell you exactly what we are tryng to do:
we are trying to make a log file which will contain details like:
1.MAC addresses of stations trying to authenticate and associate with
hostap(here i am also implying failed authentication / associations)
2.Time of connection of those stations
3.Signal strength of those associations
and other such relevant information about stations trying to connect to
hostap
can you please provide us with some basic information how to go about this
any help would be highly appreciated
as you mentioned about syslog in hostapd, we are able to do it from the
command prompt but would like to do it when ever an
authentication/association occurs
this is an aside
can you explain what does "restart hostapd" means
thanx a million
dinesh
On Sat, 3 May 2003, Jouni Malinen wrote:
> On Sun, May 04, 2003 at 01:09:29AM -0500, Dinesh S Shenoy wrote:
>
> > we r trying to send all the PDEBUG and printk messages in files like
> > hostapd.c, hostap_ap.c etc to a log file.
> > we tried adding our own printk's in the source code, and recompiled
> > hostap, everything works fine but we can't see our printk messages in the
> > "dmesg".
>
> There is some major confusion here, if you are trying to use printk in
> hostapd.c.. It is a user space daemon whereas driver/modules/*.c are
> kernel code (and can use printk).
>
> Assuming you are using a modern syslog daemon, you should be able to
> direct all hostapd syslog messages into separate log file. Kernel log
> entries might need a bit more work, but selecting entries starting with
> 'wlan#' should be quite good start. Anyway, printk should not really be
> used for logging normal operation messages.
>
> It would probably be more useful to provide a clean interface for
> providing event logging into user space and make a user space daemon for
> doing whatever it wants with logging. This should eventually happen with
> hostapd.
>
> --
> Jouni Malinen PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
More information about the Hostap
mailing list