aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/wpasupplicant.py
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-05-13 17:50:11 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-13 17:54:51 (GMT)
commitdf49b90e35ec4dbb6c6ec3fa00965ab3f4477c63 (patch)
treef5da7b102bcc43081f2b7623263db7cd7779c064 /tests/hwsim/wpasupplicant.py
parent4de70e2330c54c32f42a5fc93517d65c0a2c3be9 (diff)
downloadhostap-df49b90e35ec4dbb6c6ec3fa00965ab3f4477c63.zip
hostap-df49b90e35ec4dbb6c6ec3fa00965ab3f4477c63.tar.gz
hostap-df49b90e35ec4dbb6c6ec3fa00965ab3f4477c63.tar.bz2
tests: Secure mesh and the first plink Open dropped
This is a regression test case to verify that MTK is calculated properly also in this unexpected sequence. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests/hwsim/wpasupplicant.py')
-rw-r--r--tests/hwsim/wpasupplicant.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py
index 4894fa1..eba1bb0 100644
--- a/tests/hwsim/wpasupplicant.py
+++ b/tests/hwsim/wpasupplicant.py
@@ -1165,6 +1165,17 @@ class WpaSupplicant:
if field != "freq":
raise Exception("Unexpected MGMT-RX event format: " + ev)
msg['freq'] = val
+
+ field,val = items[2].split('=')
+ if field != "datarate":
+ raise Exception("Unexpected MGMT-RX event format: " + ev)
+ msg['datarate'] = val
+
+ field,val = items[3].split('=')
+ if field != "ssi_signal":
+ raise Exception("Unexpected MGMT-RX event format: " + ev)
+ msg['ssi_signal'] = val
+
frame = binascii.unhexlify(items[4])
msg['frame'] = frame