feature: add SSID to status page (resolves #31) (#42)

This commit is contained in:
dman776 2018-07-10 19:06:18 -05:00 committed by GitHub
parent 604b23cf38
commit 65bba7aa35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,13 @@ $config = "not set" if $config eq "" or not -d "/etc/config.mesh";
($junk, $wifi_channel) = &uci_get_named_option("wireless", "radio0", "channel");
($junk, $wifi_chanbw) = &uci_get_named_option("wireless", "radio0", "chanbw");
$wifi_ssid = "N/A";
@wisections = &uci_get_all_indexed_by_sectiontype("wireless", "wifi-iface");
foreach(@wisections) {
if ($_->{network} eq "wifi") {
$wifi_ssid = $_->{ssid};
}
}
read_postdata();
@ -185,6 +192,9 @@ if($browser_ip)
push @col1, $str . "</td>";
}
$str = "<th align=right><nobr>SSID</nobr></th><td>$wifi_ssid";
push @col1, $str . "</td>";
$str = "<th align=right><nobr>Channel</nobr></th><td>$wifi_channel";
push @col1, $str . "</td>";