]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Processing of truncated RSNE fields
authorJouni Malinen <jouni@codeaurora.org>
Fri, 16 Feb 2018 11:55:38 +0000 (13:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Feb 2018 10:26:26 +0000 (12:26 +0200)
Verify that truncated RSN Capabilities field and PMKIDCount field get
ignored.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_ap_psk.py

index 222ac47fbf5bb5fc6b2f6b3a945c44d9f5004f3e..fed2fdbf49ed128499f5fab0b6c9aebec77e4473 100644 (file)
@@ -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)