@@ -46,6 +46,7 @@ usage() {
4646 echo " --mac-filter-accept Location of MAC address filter list (defaults to /etc/hostapd/hostapd.accept)"
4747 echo " --redirect-to-localhost If -n is set, redirect every DNS request to localhost (useful for public information networks)"
4848 echo " --hostapd-debug <level> With level between 1 and 2, passes arguments -d or -dd to hostapd for debugging."
49+ echo " --hostapd-timestamps Include timestamps in hostapd debug messages."
4950 echo " --isolate-clients Disable communication between clients"
5051 echo " --ieee80211n Enable IEEE 802.11n (HT)"
5152 echo " --ieee80211ac Enable IEEE 802.11ac (VHT)"
@@ -1103,7 +1104,7 @@ for ((i=0; i<$#; i++)); do
11031104 fi
11041105done
11051106
1106- GETOPT_ARGS=$( getopt -o hc:w:g:de:nm: -l " help" ," hidden" ," hostapd-debug:" ," redirect-to-localhost" ," mac-filter" ," mac-filter-accept:" ," isolate-clients" ," ieee80211n" ," ieee80211ac" ," ht_capab:" ," vht_capab:" ," no-virt" ," fix-unmanaged" ," country:" ," timezone" ," gps:" ," freq-band:" ," mac:" ," dhcp-dns:" ," dhcp-dns6:" ," daemon" ," pidfile:" ," logfile:" ," stop:" ," list" ," list-running" ," list-clients:" ," version" ," psk" ," no-dns" ," no-dnsmasq" ," ipv6" ," mkconfig:" ," config:" ," wps" ," wps-pbc:" ," wps-pin:" ," metered" -n " $PROGNAME " -- " $@ " )
1107+ GETOPT_ARGS=$( getopt -o hc:w:g:de:nm: -l " help" ," hidden" ," hostapd-debug:" ," hostapd-timestamps " , " redirect-to-localhost" ," mac-filter" ," mac-filter-accept:" ," isolate-clients" ," ieee80211n" ," ieee80211ac" ," ht_capab:" ," vht_capab:" ," no-virt" ," fix-unmanaged" ," country:" ," timezone" ," gps:" ," freq-band:" ," mac:" ," dhcp-dns:" ," dhcp-dns6:" ," daemon" ," pidfile:" ," logfile:" ," stop:" ," list" ," list-running" ," list-clients:" ," version" ," psk" ," no-dns" ," no-dnsmasq" ," ipv6" ," mkconfig:" ," config:" ," wps" ," wps-pbc:" ," wps-pin:" ," metered" -n " $PROGNAME " -- " $@ " )
11071108[[ $? -ne 0 ]] && exit 1
11081109eval set -- " $GETOPT_ARGS "
11091110
@@ -1303,15 +1304,19 @@ while :; do
13031304 --hostapd-debug)
13041305 shift
13051306 if [ " x$1 " = " x1" ]; then
1306- HOSTAPD_DEBUG_ARGS=" -d"
1307+ HOSTAPD_DEBUG_ARGS+ =" -d "
13071308 elif [ " x$1 " = " x2" ]; then
1308- HOSTAPD_DEBUG_ARGS=" -dd"
1309+ HOSTAPD_DEBUG_ARGS+ =" -dd "
13091310 else
13101311 printf " Error: argument for --hostapd-debug expected 1 or 2, got %s\n" " $1 "
13111312 exit 1
13121313 fi
13131314 shift
13141315 ;;
1316+ --hostapd-timestamps)
1317+ shift
1318+ HOSTAPD_DEBUG_ARGS+=" -t "
1319+ ;;
13151320 --mkconfig)
13161321 shift
13171322 STORE_CONFIG=" $1 "
0 commit comments