Commit Graph

41 Commits

Author SHA1 Message Date
Isaac Konikoff
444767f3f7 replace 'expr length' with awk for cross platform compatibility
Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
2021-03-30 10:17:25 -07:00
Isaac Konikoff
9c3fcd3b4d change rpm check to use 'which' and added tshark in dependency check
Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
2021-03-30 09:30:19 -07:00
Ben Greear
4338979ab3 Merge branch 'master' of github.com:greearb/lanforge-scripts 2021-03-26 15:49:22 -07:00
Ben Greear
3b9f323502 wifi-diag: Better handle invalid block-ack value.
warn() exited, so just print a warning and add in a dummy value.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-26 15:48:32 -07:00
Matthew Stidham
6593090a8c Better logic to determine which packages are installed
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-26 14:01:54 -07:00
Ben Greear
5d3f1bdf59 wifi-diag: Protect against some div-by-zero
In case some pkt counters are zero.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-26 13:13:51 -07:00
Ben Greear
bed6ff690d wifi-diag: Add histogram for encoding types.
HE_SU, OFDMA, VHT, etc.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-25 17:24:37 -07:00
Ben Greear
7d4562af3a wifi-diag: Don't show any text for emtpy graphs.
Cleans up the html output a bit.  Add some details on
the differen trigger-types as well.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-24 17:26:52 -07:00
Matthew Stidham
335fb0a768 Check to make sure libraries are installed, quit on failure
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-24 14:15:54 -07:00
Ben Greear
a0102f4360 wifi-diag: Add graph for power-save wake/sleep state.
This gives at least some idea what PS is doing.  It would be good
to add detailed checks for duration in/out of sleep, as well as check
for AP sending frames to a sleeping STA.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-24 13:21:21 -07:00
Ben Greear
235839a4f4 wifi-diag: Graph trigger type number over time.
Type 0 appears to be OFDMA related, for instance.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-24 06:55:02 -07:00
Ben Greear
4d4d1d9e0b wifi-diag: Show basic trigger RU Alloc over time graph.
I believe this will show OFDMA ru allocation over time.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-24 06:29:37 -07:00
Ben Greear
bcd03aa3e5 wifi-diag: Parse sub-type for trigger frames.
And add in BSS color graphs.
Report ack-but-not-captured in the rx pkt type histograms.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-03-24 04:58:21 -07:00
Ben Greear
55489b42c0 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>
2021-03-23 15:44:21 -07:00
SushantBawiskar
a2c3d2dbe5 updated wifi_diag_python 2020-10-01 20:22:48 +05:30
SushantBawiskar
e95704311b python scripts for wifi diag with pyshark 2020-09-30 11:14:10 +05:30
Ben Greear
0cc619191b wifi-diag: Report frames acked but not captured. 2020-01-24 10:43:48 -08:00
Jed Reynolds
d8b5b2892d wifi_diag: fixes unintialized sequence number, whitespace 2019-11-26 17:21:58 -08:00
Jed Reynolds
88280615f4 wifi-diag: initializes block-ack bitmap to 16 bytes of zeros 2019-11-26 16:10:30 -08:00
Ben Greear
660e1fecfd Add shell script to more easily launch the wifi diag script.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2019-11-06 08:23:11 -08:00
Ben Greear
8d5863ab17 wifi-diag: Comment out debugging code.
Should not have committed that.
2019-03-05 16:38:44 -08:00
Ben Greear
d09a88784c wifi-diag: Fix incorrect matching of seqno in TCP frames. 2019-03-05 16:36:26 -08:00
Ben Greear
95612cbac7 wifi-diag: Better no-ack detection and some cleanup.
It now reports expected 'no-ack' frames at least in a fairly
simplistic test case.
2019-01-04 17:07:14 -08:00
Ben Greear
d41cc2f3ca 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).
2019-01-04 15:43:21 -08:00
Ben Greear
a87c8dd3d8 wifi-diag: Fix exception related to ack for unknown frame. 2018-12-20 12:42:06 -08:00
Ben Greear
bd1798505b wifi-diag: More whitespace changes.
No functional change.
2018-12-20 12:42:06 -08:00
Ben Greear
15b742a290 wifi-diag: Normalize whitespace.
Some of Jed's changes had some funky whitespace.  Back to xemacs
standards.
2018-11-26 09:11:26 -08:00
Ben Greear
b176608400 wifi-diag: Don't open per-tid stats files.
We were not using them, and opening more than 1024 crashed the
script due to ulimit issues.
2018-10-18 16:41:23 -07:00
Jed Reynolds
dc827b0168 fixed array lookup that appeared to use text hex string 2018-10-10 15:36:21 -07:00
Jed Reynolds
496d38933e Updates css; improves html and table alignment; fixes pathing; 2018-10-10 15:30:37 -07:00
Jed Reynolds
4f807e4d29 wifi_diag: adds use lib pathing; conditional diagnostics; css 2018-10-10 13:37:59 -07:00
Jed Reynolds
951951fd1d wifi_diag: fixes td tags 2018-10-10 11:58:02 -07:00
Ben Greear
9c3fc92443 wifi-diag: Report WMM info from beacon.
And HTML cleanup.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2018-10-10 09:44:09 -07:00
Ben Greear
756f6f80ec wifi-diag: Add stats for diff between BA and next AMPDU and similar. 2018-10-09 16:34:04 -07:00
Ben Greear
91025df086 wifi-diag: Global per-second stats, mcs histogram. 2018-10-08 14:55:44 -07:00
Ben Greear
86ece6c662 wifi-diag: Plot mcs and retransmit scatter plots. 2018-10-05 17:09:29 -07:00
Ben Greear
0a1dc4b67a wifi-diag: Initial html report generation support.
Block-ack graphs.
2018-10-05 15:40:04 -07:00
Ben Greear
7dbbcd501b wifi-diag: reporting data. 2018-10-05 14:25:16 -07:00
Ben Greear
0dfd6424ed wifi-diag: Start on block-ack parsing and sanity checks. 2018-10-04 17:06:29 -07:00
Ben Greear
ce5dc80851 wifi-diag: Add some initial reporting per conn and per tid. 2018-10-04 14:36:12 -07:00
Ben Greear
732a7d8aea wifi-diag: Initial framework for script to diagnose wifi pcaps
End goal is to be able to find block-ack issues and provide useful
graphs to help debug complex wifi networks.
2018-10-04 13:14:52 -07:00