mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
WiFi: Show EAP status on wireless client page
This patch adds some status information so that we know what authentication an access point is using. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -680,6 +680,59 @@ sub ShowStatus() {
|
||||
</tr>
|
||||
END
|
||||
|
||||
if ($status{'EAP state'}) {
|
||||
my $selected_method = $status{'selectedMethod'};
|
||||
$selected_method =~ s/\d+ \((.*)\)/$1/e;
|
||||
|
||||
print <<END;
|
||||
<tr>
|
||||
<td colspan='2'>
|
||||
<strong>$Lang::tr{'wlan client encryption eap'}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='20%'>
|
||||
$Lang::tr{'wlan client eap state'}
|
||||
</td>
|
||||
<td width='80%'>
|
||||
$status{'EAP state'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='20%'>
|
||||
$Lang::tr{'wlan client method'}
|
||||
</td>
|
||||
<td width='80%'>
|
||||
$selected_method
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='20%'>
|
||||
$Lang::tr{'wlan client tls version'}
|
||||
</td>
|
||||
<td width='80%'>
|
||||
$status{'eap_tls_version'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='20%'>
|
||||
$Lang::tr{'wlan client tls cipher'}
|
||||
</td>
|
||||
<td width='80%'>
|
||||
$status{'EAP TLS cipher'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='20%'>
|
||||
$Lang::tr{'wlan client eap phase2 method'}
|
||||
</td>
|
||||
<td width='80%'>
|
||||
$status{"${selected_method}v0 Phase2 method"}
|
||||
</td>
|
||||
</tr>
|
||||
END
|
||||
}
|
||||
|
||||
if (($status{'pairwise_cipher'} ne "NONE") || ($status{'group_cipher'} ne "NONE")) {
|
||||
print <<END;
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user