diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index 603f570a8..cf37bb8f9 100644 --- a/roles/network/templates/hostapd/50-hostapd +++ b/roles/network/templates/hostapd/50-hostapd @@ -16,6 +16,8 @@ if [ "$interface" = "wlan0" ]; then echo "frequency is $result for carrier" if [ $result -lt 13 ]; then FREQ2=$result + else + syslog info "50-iiab channel $FREQ2 is 5Ghz NOT CHANGING HOSTAPD" fi done echo "Using $FREQ2 for carrier" @@ -26,6 +28,8 @@ if [ "$interface" = "wlan0" ]; then echo "Editing Hostapd for channel $FREQ2" cp /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf sed -i -e "s/^channel.*/channel=$FREQ /" /etc/hostapd/hostapd.conf + echo "THIS MACHINE SHOULD BE REBOOTED" + syslog info "THIS MACHINE SHOULD BE REBOOTED" # systemctl restart hostapd fi fi diff --git a/roles/network/templates/hostapd/test-wifi b/roles/network/templates/hostapd/test-wifi index 32ff15601..b2ed7c971 100755 --- a/roles/network/templates/hostapd/test-wifi +++ b/roles/network/templates/hostapd/test-wifi @@ -53,6 +53,8 @@ for result in $FREQ; do if [ $result -lt 2485 ] && [ $result -gt 2407 ]; then FREQ2=$result break + else + echo "channel $result is 5Ghz - ignoring" fi done echo "Using $FREQ2 for $SSID"