[PATCH] tests: add a test for mesh gate forwarding
Bob Copeland
me at bobcopeland.com
Fri Mar 4 12:06:31 PST 2016
On Fri, Mar 04, 2016 at 09:03:51PM +0200, Jouni Malinen wrote:
> On Sat, Feb 27, 2016 at 08:51:25PM -0500, Bob Copeland wrote:
> > This test checks that mesh nodes forward frames for unknown
> > destinations to the mesh gates.
>
> Does this need some special kernel configuration or fixes?
Hmm, none that I can think of, other than mesh support. I wrote this to
test some code refactoring I was doing in this area, but it should have
also worked before the changes.
I guess it could fail if the 'iw' command didn't work as expected, or if
there's a timing issue and the gate announcements aren't received.
> > + # data frame from dev2 -> external sta should be sent to both gates
> > + dev[2].request("DATA_TEST_CONFIG 1")
> > + dev[2].request("DATA_TEST_TX {} {} 0".format(external_sta, addr2))
> > + dev[2].request("DATA_TEST_CONFIG 0")
>
> I see no sign of that frame in hwsim0.pcapng and the test case fails
> every time here:
>
> > + capfile = os.path.join(p['logdir'], "hwsim0.pcapng")
> > + check_frame_at_gate(capfile, addr0, addr2, external_sta)
>
> with:
> Exception: frame to gate 02:00:00:00:00:00 not observed
With today's wireless-testing, it's passing for me (the "+" is just for
some whitespace fixes that aren't upstream yet):
[ 0.000000] Linux version 4.5.0-rc6-wt+ (bob at glass) (gcc version 5.3.1 20160101 (Debian 5.3.1-5) ) #14 SMP PREEMPT Fri Mar 4 14:49:21 EST 2016
Got a different kernel version or config I should try?
My config is here: http://bobcopeland.com/srcs/vmconfig.2016-03-04.txt
--
Bob Copeland %% http://bobcopeland.com/
More information about the Hostap
mailing list