Merge pull request #1289 from RaspAP/fix/wext-driver

Add wext driver wrapper as a fallback, if unknown in nl80211 wrapper
This commit is contained in:
Bill Zimmerman 2023-01-25 05:40:46 -08:00 committed by GitHub
commit a98f8a1de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,7 @@ function reinitializeWPA($force)
$cmd = escapeshellcmd("sudo /bin/rm /var/run/wpa_supplicant/".$_SESSION['wifi_client_interface']); $cmd = escapeshellcmd("sudo /bin/rm /var/run/wpa_supplicant/".$_SESSION['wifi_client_interface']);
$result = exec($cmd); $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); $result = shell_exec($cmd);
return $result; return $result;
} }