mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 02:12:38 +00:00
wifi-diag: Parse newer tshark output properly, retransmit improvements.
Newer tshark had a different text output, so needed to modify the script to parse that properly. Report big vs all retransmits (big frames are likely Data, small ones may just be null-data frames or similar).
This commit is contained in:
@@ -81,6 +81,42 @@ sub find_or_create_tid {
|
||||
return $tid;
|
||||
}
|
||||
|
||||
sub tx_no_ack_found {
|
||||
my $self = shift;
|
||||
my $tid_count = @{$self->{tids}};
|
||||
|
||||
my $rv = 0;
|
||||
|
||||
my $i;
|
||||
for ($i = 0; $i < $tid_count; $i++) {
|
||||
#print "Checking tid: $i\n";
|
||||
if (exists $self->{tids}[$i]) {
|
||||
#print "Printing tid: $i\n";
|
||||
$rv += $self->{tids}[$i]->tx_no_ack_found();
|
||||
#print "Done printing tid: $i\n";
|
||||
}
|
||||
}
|
||||
return $rv;
|
||||
}
|
||||
|
||||
sub rx_no_ack_found {
|
||||
my $self = shift;
|
||||
my $tid_count = @{$self->{tids}};
|
||||
|
||||
my $rv = 0;
|
||||
|
||||
my $i;
|
||||
for ($i = 0; $i < $tid_count; $i++) {
|
||||
#print "Checking tid: $i\n";
|
||||
if (exists $self->{tids}[$i]) {
|
||||
#print "Printing tid: $i\n";
|
||||
$rv += $self->{tids}[$i]->rx_no_ack_found();
|
||||
#print "Done printing tid: $i\n";
|
||||
}
|
||||
}
|
||||
return $rv;
|
||||
}
|
||||
|
||||
sub printme {
|
||||
my $self = shift;
|
||||
my $tid_count = @{$self->{tids}};
|
||||
|
||||
Reference in New Issue
Block a user