diff --git a/includes/configure_client.php b/includes/configure_client.php index 9abb61910..41da0716f 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -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');