tests: DPP QR Code and authentication exchange (rand_mac_addr=1)

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-04-22 17:04:08 +03:00 committed by Jouni Malinen
parent 0c5edededa
commit fe319fc7ed

View file

@ -5310,3 +5310,15 @@ def run_dpp_reconfig_connector(dev, apdev):
if n_net_access_key.strip('"') != net_access_key: if n_net_access_key.strip('"') != net_access_key:
raise Exception("net_access_key mismatch: %s %s" % (n_net_access_key, raise Exception("net_access_key mismatch: %s %s" % (n_net_access_key,
net_access_key)) net_access_key))
def test_dpp_qr_code_auth_rand_mac_addr(dev, apdev):
"""DPP QR Code and authentication exchange (rand_mac_addr=1)"""
flags = int(dev[0].get_driver_status_field('capa.flags'), 16)
if flags & 0x0000400000000000 == 0:
raise HwsimSkip("Driver does not support random GAS TA")
try:
dev[0].set("gas_rand_mac_addr", "1")
run_dpp_qr_code_auth_unicast(dev, apdev, None)
finally:
dev[0].set("gas_rand_mac_addr", "0")