mirror of https://github.com/hak5/openwrt-owl.git
mac80211: start hostapd with logging wpa_printf messages to syslog
Some debugging/error messages are printed using wpa_printf and this change allows finally reading them out of the syslog. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>owl
parent
546b1a4d36
commit
1a14ffaf2b
|
@ -756,7 +756,7 @@ drv_mac80211_setup() {
|
||||||
for_each_interface "ap" mac80211_prepare_vif
|
for_each_interface "ap" mac80211_prepare_vif
|
||||||
|
|
||||||
[ -n "$hostapd_ctrl" ] && {
|
[ -n "$hostapd_ctrl" ] && {
|
||||||
/usr/sbin/hostapd -P /var/run/wifi-$phy.pid -B "$hostapd_conf_file"
|
/usr/sbin/hostapd -s -P /var/run/wifi-$phy.pid -B "$hostapd_conf_file"
|
||||||
ret="$?"
|
ret="$?"
|
||||||
wireless_add_process "$(cat /var/run/wifi-$phy.pid)" "/usr/sbin/hostapd" 1
|
wireless_add_process "$(cat /var/run/wifi-$phy.pid)" "/usr/sbin/hostapd" 1
|
||||||
[ "$ret" != 0 ] && {
|
[ "$ret" != 0 ] && {
|
||||||
|
|
Loading…
Reference in New Issue