mirror of https://github.com/aredn/aredn.git
default any error conditions to -95
This commit is contained in:
parent
aa6dbe41d6
commit
b2c4913680
|
@ -120,7 +120,7 @@ sub get_realtime_signal()
|
|||
if (-d "/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var") {
|
||||
chomp($s = `cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var/last_signal`);
|
||||
} else {
|
||||
return ("-2","-2");
|
||||
return ("-95","-95");
|
||||
}
|
||||
($junk, $n) = get_wifi_signal(get_interface("wifi"));
|
||||
return ($s, $n);
|
||||
|
|
Loading…
Reference in New Issue