Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to troubleshoot a wireless connection on FreeBSD.

I am manually editing the /etc/wpa_supplicant.conf file

So far the wpa_cli status only tells me that it's Unauthorized.

I'd like to get a more verbose message and log the messages into a file for each wireless adapter.

  1. How do I make wpa_supplicant automatically log into a file?

  2. How do I make wpa_supplicant automatically change his debug level after a reconfigure?

share|improve this question

1 Answer 1

To get log into file for multiple WLAN interface you would have to run one wpa_supplicant instance per WLAN interface with -f and -d options. This way you'll get one log file per interface. I don't think, that wpa_supplicant would automatically change its verbosity level after connection. You could submit such a feature request.

Another way to troubleshoot your problem i.e. to get connection info, would be D-Bus. See API description.

share|improve this answer
    
Yes I know I can use -f and -d, but I want it to be automatically set when the service starts ... /etc/rc.conf ? –  joelmaranhao Dec 4 '13 at 16:18
    
Looks like you can set a variable as such wpa_supplicant_wlan0="-Dwext -dd -f /var/log/wpa_supplicant.log" but I don't know where to set this variable in FreeBSD –  joelmaranhao Dec 4 '13 at 16:52
    
Have you looked in /etc/rc.d? I don't have experience with FreeBSD, but according to freebsd.org/doc/en/articles/rc-scripting, the needed scripts reside there. –  yegorich Dec 5 '13 at 7:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.