Merge pull request #1500 from RaspAP/fix/wpa-reinitialize

Update method used reinitialize wpa_supplicant
This commit is contained in:
Bill Zimmerman 2024-01-17 11:25:37 +01:00 committed by GitHub
commit bdda08b53e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ function reinitializeWPA($force)
$cmd = "sudo /bin/rm /var/run/wpa_supplicant/$iface"; $cmd = "sudo /bin/rm /var/run/wpa_supplicant/$iface";
$result = shell_exec($cmd); $result = shell_exec($cmd);
} }
$cmd = "sudo wpa_cli -i $iface reconfigure"; $cmd = "sudo wpa_supplicant -B -Dnl80211 -c/etc/wpa_supplicant/wpa_supplicant.conf -i$iface";
$result = shell_exec($cmd); $result = shell_exec($cmd);
sleep(1); sleep(1);
return $result; return $result;

Binary file not shown.

View File

@ -174,8 +174,8 @@ msgstr "<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does n
msgid "No Wifi stations found" msgid "No Wifi stations found"
msgstr "No Wifi stations found" msgstr "No Wifi stations found"
msgid "Reinitializing wpa_supplicant" msgid "Reinitialized wpa_supplicant. Choose <strong>Rescan</strong>."
msgstr "Reinitializing wpa_supplicant" msgstr "Reinitialized wpa_supplicant. Choose <strong>Rescan</strong>."
msgid "Click 'Rescan' to search for nearby Wifi stations." msgid "Click 'Rescan' to search for nearby Wifi stations."
msgstr "Click 'Rescan' to search for nearby Wifi stations." msgstr "Click 'Rescan' to search for nearby Wifi stations."

View File

@ -7,7 +7,7 @@
<form method="POST" action="wpa_conf" name="wpa_conf_form" class="row"> <form method="POST" action="wpa_conf" name="wpa_conf_form" class="row">
<?php echo CSRFTokenFieldTag() ?> <?php echo CSRFTokenFieldTag() ?>
<div class="col-xs mr-3 mb-3"> <div class="col-xs mr-3 mb-3">
<input type="submit" class="btn btn-warning btn-block float-right" name="wpa_reinit" value="<?php echo _("Re-initialize"); ?>" /> <input type="submit" class="btn btn-warning btn-block float-right" name="wpa_reinit" value="<?php echo _("Reinitialize"); ?>" />
</div> </div>
</form> </form>
<?php endif ?> <?php endif ?>