From 9caf17c2b82d04eab5c5986cc0154c9849922909 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 7 Sep 2020 18:57:19 -0500 Subject: [PATCH 1/4] add warning for 5Ghz NOT CHANGING HOSTAPD --- roles/network/templates/hostapd/50-hostapd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index 603f570a8..0f616a864 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" From 18d32b2b8d642dabb6a85b4c6f963b4151a3563e Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 7 Sep 2020 19:08:51 -0500 Subject: [PATCH 2/4] add warning is 5Ghz - ignoring --- roles/network/templates/hostapd/test-wifi | 2 ++ 1 file changed, 2 insertions(+) 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" From d032dfa7a6e49ec6d7371b1d6014a2b89c67c406 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 7 Sep 2020 20:28:13 -0500 Subject: [PATCH 3/4] add loud reboot message --- roles/network/templates/hostapd/50-hostapd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index 0f616a864..dea839246 100644 --- a/roles/network/templates/hostapd/50-hostapd +++ b/roles/network/templates/hostapd/50-hostapd @@ -28,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 From 0bfc7e9b28dbd8233655f05797680f9369539d72 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 8 Sep 2020 09:05:20 -0400 Subject: [PATCH 4/4] Update 50-hostapd --- roles/network/templates/hostapd/50-hostapd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index dea839246..cf37bb8f9 100644 --- a/roles/network/templates/hostapd/50-hostapd +++ b/roles/network/templates/hostapd/50-hostapd @@ -28,7 +28,7 @@ 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" + echo "THIS MACHINE SHOULD BE REBOOTED" syslog info "THIS MACHINE SHOULD BE REBOOTED" # systemctl restart hostapd fi