]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix wpas_ctrl_data_test with Linux 3.19-rc1
authorJouni Malinen <j@w1.fi>
Tue, 23 Dec 2014 10:27:14 +0000 (12:27 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 23 Dec 2014 10:27:14 +0000 (12:27 +0200)
The kernel commit 'packet: make packet_snd fail on len smaller than l2
header' started rejecting <= 14 octet raw packet socket transmission.
This test case was testing with 14 ocets and that is now rejected by the
kernel. While this may be a kernel side issue, use one octet longer test
data for now to avoid undesired FAIL cases in hwsim tests.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index abc1873b728687828f2234dda16becc93ab7f807..63307582f9c6f25a5094cadee493e54a744c4175 100644 (file)
@@ -1213,7 +1213,7 @@ def test_wpas_ctrl_data_test(dev, apdev):
         if "FAIL" not in dev[0].request("DATA_TEST_FRAME " + cmd):
             raise Exception("Invalid DATA_TEST_FRAME command accepted: " + cmd)
 
-    if "OK" not in dev[0].request("DATA_TEST_FRAME 00112233445566778899aabbccdd"):
+    if "OK" not in dev[0].request("DATA_TEST_FRAME 00112233445566778899aabbccddee"):
         raise Exception("DATA_TEST_FRAME failed")
 
 def test_wpas_ctrl_vendor_elem(dev, apdev):