mac80211: start hostapd with logging wpa_printf messages to syslog
[openwrt/staging/yousong.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index 1fa39b82611c8eac171de363b5f04ae5b0b074d6..baa023ecf63ba3515e1458064e1b14bc5c74a8bc 100644 (file)
@@ -756,7 +756,7 @@ drv_mac80211_setup() {
        for_each_interface "ap" mac80211_prepare_vif
 
        [ -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="$?"
                wireless_add_process "$(cat /var/run/wifi-$phy.pid)" "/usr/sbin/hostapd" 1
                [ "$ret" != 0 ] && {