Skip to content

Commit 0915e8c

Browse files
fryseeDrFlarp
authored andcommitted
Fix: scanning for wifi on tg5050 and stock OS 1.0.1 (LoveRetro#626)
1 parent ef55d50 commit 0915e8c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

skeleton/SYSTEM/tg5050/etc/wifi/wifi_init.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ start() {
1515

1616
# Bring up the interface
1717
ip link set $WIFI_INTERFACE up 2>/dev/null
18+
19+
mkdir -p /etc/wifi/sockets
1820

1921
# Create default wpa_supplicant.conf if it doesn't exist
2022
if [ ! -f "$WPA_SUPPLICANT_CONF" ]; then
@@ -31,7 +33,7 @@ EOF
3133

3234
# Start wpa_supplicant if not running
3335
if ! pidof wpa_supplicant > /dev/null 2>&1; then
34-
wpa_supplicant -B -i $WIFI_INTERFACE -c $WPA_SUPPLICANT_CONF -D nl80211 2>/dev/null
36+
wpa_supplicant -B -i $WIFI_INTERFACE -c $WPA_SUPPLICANT_CONF -O /etc/wifi/sockets -D nl80211 2>/dev/null
3537
sleep 0.5
3638
fi
3739

@@ -43,7 +45,7 @@ EOF
4345

4446
stop() {
4547
# Disconnect and disable
46-
wpa_cli -i $WIFI_INTERFACE disconnect 2>/dev/null
48+
wpa_cli -p /etc/wifi/sockets -i $WIFI_INTERFACE disconnect 2>/dev/null
4749

4850
# Bring down interface
4951
ip link set $WIFI_INTERFACE down 2>/dev/null

0 commit comments

Comments
 (0)