]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix wlan.mesh.config.cap workaround for test_wpas_mesh_max_peering
authorSven Eckelmann <sven@narfation.org>
Fri, 12 Jul 2019 10:48:53 +0000 (12:48 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Aug 2019 10:57:50 +0000 (13:57 +0300)
commitd1fcf34cb5aca8c6896da6abdc71521f326866e7
tree075ba8b1f2c4b16fdf330ed0b48458dcf10983da
parent05822609d105f7bf5308a83a2208ad263c7bb10f
tests: Fix wlan.mesh.config.cap workaround for test_wpas_mesh_max_peering

The wlan.mesh.config doesn't have to be the last element of beacon. Things
like VHT or HE oper/cap are usually follow the mesh configuration element.

The workaround must first get the position of a correct reference value in
wlan.mesh.config (ps_protocol) and then calculate the correct
wlan.mesh.config.cap offset based on that.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Fixes: 2cbaf0de223b ("tests: Work around tshark bug in wpas_mesh_max_peering")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
tests/hwsim/test_wpas_mesh.py