From c138027c080f9fe68fb76e7411c2b8b347282dc0 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 10 Jan 2018 23:41:18 -0500 Subject: [PATCH] iiab-hotspot-on sets "hostapd_enabled = True" in /etc/iiab/iiab.ini --- roles/network/templates/network/iiab-hotspot-on | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/network/templates/network/iiab-hotspot-on b/roles/network/templates/network/iiab-hotspot-on index d34ce438a..34ea0e932 100755 --- a/roles/network/templates/network/iiab-hotspot-on +++ b/roles/network/templates/network/iiab-hotspot-on @@ -8,3 +8,12 @@ systemctl restart dhcpcd systemctl restart networking systemctl start hostapd systemctl start dhcpd + +# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease" +# Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway) +# SEE ALSO iiab-hotspot-off + /usr/libexec/iiab-startup.sh +# https://github.com/iiab/iiab/issues/638#issuecomment-355455454 +if grep -qi raspbian /etc/*release; then + ip link set dev wlan0 promisc off + sed -i -e "s/hostapd_enabled.*/hostapd_enabled = True/" /etc/iiab/iiab.ini +fi