tests: Processing of truncated RSNE fields

Verify that truncated RSN Capabilities field and PMKIDCount field get
ignored.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-02-16 13:55:38 +02:00 committed by Jouni Malinen
parent ede4f68e0a
commit 007bf37e4b

View file

@ -2660,12 +2660,16 @@ def test_rsn_ie_proto_psk_sta(dev, apdev):
'30120100000fac040100000fac040100000fac02'), '30120100000fac040100000fac040100000fac02'),
('Reserved RSN Capabilities bits set', ('Reserved RSN Capabilities bits set',
'30140100000fac040100000fac040100000fac023cff'), '30140100000fac040100000fac040100000fac023cff'),
('Truncated RSN Capabilities field',
'30130100000fac040100000fac040100000fac023c'),
('Extra pairwise cipher suite (unsupported)', ('Extra pairwise cipher suite (unsupported)',
'30180100000fac040200ffffffff000fac040100000fac020c00'), '30180100000fac040200ffffffff000fac040100000fac020c00'),
('Extra AKM suite (unsupported)', ('Extra AKM suite (unsupported)',
'30180100000fac040100000fac040200ffffffff000fac020c00'), '30180100000fac040100000fac040200ffffffff000fac020c00'),
('PMKIDCount field included', ('PMKIDCount field included',
'30160100000fac040100000fac040100000fac020c000000'), '30160100000fac040100000fac040100000fac020c000000'),
('Truncated PMKIDCount field',
'30150100000fac040100000fac040100000fac020c0000'),
('Unexpected Group Management Cipher Suite with PMF disabled', ('Unexpected Group Management Cipher Suite with PMF disabled',
'301a0100000fac040100000fac040100000fac020c000000000fac06'), '301a0100000fac040100000fac040100000fac020c000000000fac06'),
('Extra octet after defined fields (future extensibility)', ('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: for txt,ie in tests:
dev[0].request("DISCONNECT") dev[0].request("DISCONNECT")
dev[0].wait_disconnected() dev[0].wait_disconnected()
dev[0].dump_monitor()
dev[0].request("NOTE " + txt)
logger.info(txt) logger.info(txt)
hapd.disable() hapd.disable()
hapd.set('own_ie_override', ie) hapd.set('own_ie_override', ie)