mirror of https://github.com/aredn/aredn.git
signal2 cleanup
This commit is contained in:
parent
dd04d3d657
commit
4de822ca2b
|
@ -177,15 +177,14 @@ foreach $logfile (@files)
|
|||
my ($dmac, $dname) = $logfile =~ /^(.*?)\-(.*)/;
|
||||
$dname=$logfile if($dname eq '');
|
||||
if($parms{device} eq $logfile) {
|
||||
$page = $page . "<option selected value='$logfile'>$dname</option>";
|
||||
$page = $page . "<option selected value='$logfile'>$dname</option>\n";
|
||||
} else {
|
||||
$page = $page . "<option value='$logfile'>$dname</option>";
|
||||
$page = $page . "<option value='$logfile'>$dname</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
$page = $page . "</select>";
|
||||
$page = $page . "<input type='hidden' name='realtime' value='1'></input>" if($parms{realtime} eq "1");
|
||||
|
||||
$page = $page . "</select>\n";
|
||||
$page = $page . "<input type='hidden' name='realtime' value='1'></input>\n" if($parms{realtime} eq "1");
|
||||
$page = $page . <<EOF;
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -118,12 +118,9 @@ sub get_realtime_signal()
|
|||
my ($var) = @_;
|
||||
return ("-1","-1") if not defined $var;
|
||||
if (-d "/sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var") {
|
||||
$test="GOOD DIR";
|
||||
chomp($s = `cat /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/stations/$var/last_signal`);
|
||||
} else {
|
||||
$test="BAD DIR";
|
||||
#return ("-2","-2");
|
||||
return ($var, $test);
|
||||
return ("-2","-2");
|
||||
}
|
||||
($junk, $n) = get_wifi_signal(get_interface("wifi"));
|
||||
return ($s, $n);
|
||||
|
|
Loading…
Reference in New Issue