[0.6.x PATCH] Make output logging to file usable on *NIX platforms

Dan Williams dcbw
Sun Dec 9 09:56:49 PST 2007

On Sun, 2007-12-09 at 07:58 -0800, Jouni Malinen wrote:
> On Sun, Dec 09, 2007 at 10:26:29PM +1000, Kel Modderman wrote:
> > Is there an opportunity to control the target file location for this output?
> Not in this version. The file name (or well, template with %d in it) is
> hardcoded in wpa_debug_open_file(). I would assume it would be
> relatively simple change to pass in similar template as an argument to
> that function, though.

Yes, I was looking into that at first, but hadn't gotten there quite
yet.  It would be awesome if somebody came up with a patch first :)  I
assume that it would be as simple as adding another to struct wpa_params
for the path to the logfile, as a char [PATH_MAX] or something like
that.  Not sure what needs to be done on the windows side, though if the
field is NULL then it could simply default to the current Windows
logfile location when wpa_debug_use_file is true.

Shouldn't be too hard.


More information about the Hostap mailing list