From 60450b51652b3f2ba23744f7de5a968aa5637bd4 Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 25 Jan 2023 13:14:10 +0100 Subject: [PATCH] Add wext driver wrapper as a fallback, if unknown in nl80211 wrapper --- includes/wifi_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wifi_functions.php b/includes/wifi_functions.php index ee8561b8..c6a1277e 100755 --- a/includes/wifi_functions.php +++ b/includes/wifi_functions.php @@ -181,7 +181,7 @@ function reinitializeWPA($force) $cmd = escapeshellcmd("sudo /bin/rm /var/run/wpa_supplicant/".$_SESSION['wifi_client_interface']); $result = exec($cmd); } - $cmd = escapeshellcmd("sudo /sbin/wpa_supplicant -B -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -i". $_SESSION['wifi_client_interface']); + $cmd = escapeshellcmd("sudo /sbin/wpa_supplicant -B -Dnl80211,wext -c/etc/wpa_supplicant/wpa_supplicant.conf -i". $_SESSION['wifi_client_interface']); $result = shell_exec($cmd); return $result; }