mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Reinitialize wpa on connect
This commit is contained in:
@@ -20,6 +20,8 @@ function DisplayWPAConfig()
|
||||
|
||||
if (isset($_POST['connect'])) {
|
||||
$netid = intval($_POST['connect']);
|
||||
$force_remove = true;
|
||||
$result = $wifi->reinitializeWPA($force_remove);
|
||||
$cmd = "sudo wpa_cli -i $iface select_network $netid";
|
||||
$return = shell_exec($cmd);
|
||||
sleep(2);
|
||||
|
||||
Reference in New Issue
Block a user