From 007bf37e4b47ef455a6296c50d01d28a4da98b4a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 16 Feb 2018 13:55:38 +0200 Subject: [PATCH] tests: Processing of truncated RSNE fields Verify that truncated RSN Capabilities field and PMKIDCount field get ignored. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_psk.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index 222ac47fb..fed2fdbf4 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -2660,12 +2660,16 @@ def test_rsn_ie_proto_psk_sta(dev, apdev): '30120100000fac040100000fac040100000fac02'), ('Reserved RSN Capabilities bits set', '30140100000fac040100000fac040100000fac023cff'), + ('Truncated RSN Capabilities field', + '30130100000fac040100000fac040100000fac023c'), ('Extra pairwise cipher suite (unsupported)', '30180100000fac040200ffffffff000fac040100000fac020c00'), ('Extra AKM suite (unsupported)', '30180100000fac040100000fac040200ffffffff000fac020c00'), ('PMKIDCount field included', '30160100000fac040100000fac040100000fac020c000000'), + ('Truncated PMKIDCount field', + '30150100000fac040100000fac040100000fac020c0000'), ('Unexpected Group Management Cipher Suite with PMF disabled', '301a0100000fac040100000fac040100000fac020c000000000fac06'), ('Extra octet after defined fields (future extensibility)', @@ -2673,6 +2677,8 @@ def test_rsn_ie_proto_psk_sta(dev, apdev): for txt,ie in tests: dev[0].request("DISCONNECT") dev[0].wait_disconnected() + dev[0].dump_monitor() + dev[0].request("NOTE " + txt) logger.info(txt) hapd.disable() hapd.set('own_ie_override', ie)