[SOLVED] Reach not connecting to wifi at boot

My router and the reach are powered at the same time. Reach fail to see the wifi network when it get up.

Solution:
In /usr/bin/reach-setup add “wpa_cli scan” before looking for status.

5 check_wpa_status () {
6 echo "Checking wpa status…"
7 wpa_cli scan
8 local wpa_status=$(wpa_cli status)
9 local state=$1
10
11 if [[ $wpa_status == $state ]];
12 then
13 echo "wpa status contains $state!!"
14 return 0
15 else
16 echo "wpa status does not contain $state"
17 return 1
18 fi
19 }

And maybe bump up a little the timeout value in wait_for_wpa_status()
21 wait_for_wpa_status () {
22
23 local status=$1
24 local timeout=0
25 local timeout_max=300

1 Like