micbat / x-wrt

Automatically exported from code.google.com/p/x-wrt
0 stars 0 forks source link

*ENHANCEMENT* Add received signal strength to client status-interface page #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Show's received signal strength for client attached to ap

Index: webif/files/www/cgi-bin/webif/status-interfaces.sh
===================================================================
--- webif/files/www/cgi-bin/webif/status-interfaces.sh  (revision 4682)
+++ webif/files/www/cgi-bin/webif/status-interfaces.sh  (working copy)
@@ -196,6 +196,11 @@
                wlan_noise=$(echo "$wconfig" | sed '/Noise level=/!d; s/^.*Noise
level=//; s/[[:space:]].*$//')
            fi
            wlan_noise="${wlan_noise:-0}"
+      wlan_signal=$(echo "$wconfig" | sed '/Link Signal level:/!d;
s/^.*Link Signal level://; s/[[:space:]].*$//')
+      if [ -z "$wlan_signal" ]; then
+        wlan_signal=$(echo "$wconfig" | sed '/Signal level=/!d;
s/^.*Signal level=//; s/[[:space:]].*$//')
+      fi
+      wlan_signal="${wlan_signal:-0}"
            [ "$wnum" = "0" ] && wnum=""
            display_form <<EOF
 start_form|@TR<<WLAN>> $wnum
@@ -211,6 +216,8 @@
 string|$wlan_txpwr @TR<<dBm>>
 field|@TR<<Noise Level>>|wlan_noise
 string|$wlan_noise @TR<<dBm>>
+field|@TR<<Signal Level>>|wlan_signal
+string|$wlan_signal @TR<<dBm>>
 field|@TR<<Encryption Key>>|wlan_key
 string|$wlan_key
 field|@TR<<Security mode>>|wlan_secmode

Original issue reported on code.google.com by alisonken1 on 22 Jan 2009 at 9:01

GoogleCodeExporter commented 8 years ago
ok - try as an attachment so code doesn't get screwed

Original comment by alisonken1 on 22 Jan 2009 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago
committed r4683. thanks

Original comment by kemen04@gmail.com on 22 Jan 2009 at 9:47