wpa_supplicant Full Debug + Backgrounding, How?

Jouni Malinen j at w1.fi
Sun Jun 5 06:21:50 PDT 2016


On Sun, Jun 05, 2016 at 02:33:05PM +0200, Bima H. wrote:
> I want to run wpa_supplicant with debug mode in background. But if I
> invoke it from bash script, it just print some debug messages in
> initial phase in syslog, not all messages as long as the programm
> runs. How can I make debugging in background running as long as
> wpa_supplicant runs? I want to add debug support in openwrt. I don't
> want to use "&" at the end of invoking command because it distorts the
> exit status and don't want to let it run in foreground for the same
> reason and script-hanging. Strangely hostapd doesn't have problem in
> debugging mode in background and just logs all messages normally.

Building wpa_supplicant with CONFIG_DEBUG_FILE=y in
wpa_supplicant/.config and using the -f command line option to specify
the log file is likely the easiest approach for this.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list