From 65bba7aa35cb075264158e589ceb512e743ecfdb Mon Sep 17 00:00:00 2001 From: dman776 Date: Tue, 10 Jul 2018 19:06:18 -0500 Subject: [PATCH] feature: add SSID to status page (resolves #31) (#42) --- files/www/cgi-bin/status | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/www/cgi-bin/status b/files/www/cgi-bin/status index 70760700..692edbd8 100755 --- a/files/www/cgi-bin/status +++ b/files/www/cgi-bin/status @@ -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 . ""; } +$str = "SSID$wifi_ssid"; +push @col1, $str . ""; + $str = "Channel$wifi_channel"; push @col1, $str . "";