From: Jouni Malinen Date: Wed, 22 Apr 2020 14:04:08 +0000 (+0300) Subject: tests: DPP QR Code and authentication exchange (rand_mac_addr=1) X-Git-Tag: hostap_2_10~1420 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe319fc7eddae81fca63d241026d707646a18009;p=thirdparty%2Fhostap.git tests: DPP QR Code and authentication exchange (rand_mac_addr=1) Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 2cff4c814..02329e088 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -5310,3 +5310,15 @@ def run_dpp_reconfig_connector(dev, apdev): if n_net_access_key.strip('"') != net_access_key: raise Exception("net_access_key mismatch: %s %s" % (n_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")