[PATCH] tests: add a test for mesh gate forwarding

Bob Copeland me at bobcopeland.com
Sat Mar 5 12:38:33 PST 2016


On Sat, Mar 05, 2016 at 09:38:25PM +0200, Jouni Malinen wrote:
> How does that work? Have you some other changes in timing here? The log
> shows this:
> 
> 2016-03-05 18:18:25,744 DEBUG wlan2: CTRL: DATA_TEST_CONFIG 1
> 2016-03-05 18:18:25,776 DEBUG wlan2: CTRL: DATA_TEST_TX 02:11:22:33:44:55 02:00:00:00:02:00 0
> 2016-03-05 18:18:25,785 DEBUG wlan2: CTRL: DATA_TEST_CONFIG 0
> 2016-03-05 18:18:36,682 DEBUG wlan0(global): IFNAME=wlan0 <3>DATA-TEST-RX 02:00:00:00:00:00 02:00:00:00:02:00
> 2016-03-05 18:18:36,688 DEBUG wlan0(global): IFNAME=wlan0 <3>DATA-TEST-RX ff:ff:ff:ff:ff:ff 02:00:00:00:02:00
> 2016-03-05 18:18:36,692 DEBUG wlan0: CTRL: NOTE TEST-STOP wpas_mesh_gate_forwarding
> 
> 
> How did it wait almost 11 seconds there between transmitting that test
> frame and stopping the test case? Does it really take so long in your
> setup to start tshark?

It would seem my tshark will actually tail the file:

2016-03-05 20:26:49.967094 making gates
2016-03-05 20:26:50.051072 sleeping
2016-03-05 20:26:51.053181 sending frame
2016-03-05 20:26:51.137571 check frame starting tshark
2016-03-05 20:26:57.349248 check frame got response [Frame 228: 1566
byte...]
2016-03-05 20:26:57.350583 check frame starting tshark
2016-03-05 20:27:03.268300 check frame got response [Frame 226: 1566
byte...]
PASS wpas_mesh_gate_forwarding 15.838021 2016-03-05 20:27:04.162179
passed all 1 test case(s)

... TShark 1.12.7 (Git Rev Unknown from unknown)

Anyway, I take it this would probably not be desirable to rely upon.
Should I just wait for the RX event first?

-- 
Bob Copeland %% http://bobcopeland.com/



More information about the Hostap mailing list