tests: OWE and unsupported group using cfg80211 connect command

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-12-11 14:01:45 +02:00 committed by Jouni Malinen
parent 5f30b69cde
commit d39e07f526

View file

@ -235,6 +235,17 @@ def test_owe_unsupported_group(dev, apdev):
finally: finally:
dev[0].request("VENDOR_ELEM_REMOVE 13 *") dev[0].request("VENDOR_ELEM_REMOVE 13 *")
def test_owe_unsupported_group_connect_cmd(dev, apdev):
"""Opportunistic Wireless Encryption and unsupported group using cfg80211 connect command"""
try:
wpas = None
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
run_owe_unsupported_group([ wpas ], apdev)
finally:
if wpas:
wpas.request("VENDOR_ELEM_REMOVE 13 *")
def run_owe_unsupported_group(dev, apdev): def run_owe_unsupported_group(dev, apdev):
if "OWE" not in dev[0].get_capability("key_mgmt"): if "OWE" not in dev[0].get_capability("key_mgmt"):
raise HwsimSkip("OWE not supported") raise HwsimSkip("OWE not supported")