wifi-diag: Fix rate decoding, fix perl include path.

The regex needed tweaking for Fedora-32 (and/or possibly just HE
frames).

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-03-23 15:44:21 -07:00
parent 2341f57b39
commit 55489b42c0
2 changed files with 16 additions and 17 deletions

View File

@@ -167,7 +167,7 @@ sub append {
$self->{payload_type} = $1;
}
elsif (($ln =~ /^\s+\[Data Rate: (.*)\]/) ||
($ln =~ /^\s*Data Rate: (.*)/)) {
($ln =~ /^\s*Data [rR]ate: (.*)/)) {
my $dr = $1;
if ($dr =~ /(\S+) Mb/) {
$self->{datarate} = $1;