Skip to content

Commit

Permalink
fwrite priority to wpa network if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Oct 8, 2023
1 parent deac75a commit ff3f6dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/configure_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function DisplayWPAConfig()
fwrite($wpa_file, "network={".PHP_EOL);
fwrite($wpa_file, "\tssid=\"".$ssid."\"".PHP_EOL);
fwrite($wpa_file, $line.PHP_EOL);
if (array_key_exists('priority', $network)) {
fwrite($wpa_file, "\tpriority=".$network['priority'].PHP_EOL);
}
fwrite($wpa_file, "}".PHP_EOL);
} else {
$status->addMessage('WPA passphrase must be between 8 and 63 characters', 'danger');
Expand Down

0 comments on commit ff3f6dd

Please sign in to comment.