From 23de56b8e758135c0bf34498d005b67d78d3a940 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 2 Feb 2021 04:28:19 +0000 Subject: [PATCH] Reassociate client iface in AP-STA, thx @mp035 --- installers/servicestart.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/installers/servicestart.sh b/installers/servicestart.sh index 3e7cbadd..377678ca 100755 --- a/installers/servicestart.sh +++ b/installers/servicestart.sh @@ -118,5 +118,13 @@ if [ $OPENVPNENABLED -eq 1 ]; then systemctl start openvpn-client@client fi +# @mp035 found that the wifi client interface would stop every 8 seconds +# for about 16 seconds. Reassociating seems to solve this +if [ "${config[WifiAPEnable]}" = 1 ]; then + echo "Reassociating wifi client interface..." + sleep "${seconds}" + wpa_cli -i ${config[WifiManaged]} reassociate +fi + echo "RaspAP service start DONE"