mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
tests: OWE using cfg80211 connect command
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
109704657d
commit
89baf47104
@ -8,6 +8,7 @@ import logging
|
|||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
import hostapd
|
import hostapd
|
||||||
|
from wpasupplicant import WpaSupplicant
|
||||||
import hwsim_utils
|
import hwsim_utils
|
||||||
from utils import HwsimSkip
|
from utils import HwsimSkip
|
||||||
|
|
||||||
@ -54,6 +55,15 @@ def test_owe_groups(dev, apdev):
|
|||||||
|
|
||||||
def test_owe_pmksa_caching(dev, apdev):
|
def test_owe_pmksa_caching(dev, apdev):
|
||||||
"""Opportunistic Wireless Encryption and PMKSA caching"""
|
"""Opportunistic Wireless Encryption and PMKSA caching"""
|
||||||
|
run_owe_pmksa_caching(dev, apdev)
|
||||||
|
|
||||||
|
def test_owe_pmksa_caching_connect_cmd(dev, apdev):
|
||||||
|
"""Opportunistic Wireless Encryption and PMKSA caching using cfg80211 connect command"""
|
||||||
|
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
|
||||||
|
wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
|
||||||
|
run_owe_pmksa_caching([ wpas ], apdev)
|
||||||
|
|
||||||
|
def run_owe_pmksa_caching(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")
|
||||||
params = { "ssid": "owe",
|
params = { "ssid": "owe",
|
||||||
@ -119,6 +129,15 @@ def test_owe_and_psk(dev, apdev):
|
|||||||
|
|
||||||
def test_owe_transition_mode(dev, apdev):
|
def test_owe_transition_mode(dev, apdev):
|
||||||
"""Opportunistic Wireless Encryption transition mode"""
|
"""Opportunistic Wireless Encryption transition mode"""
|
||||||
|
run_owe_transition_mode(dev, apdev)
|
||||||
|
|
||||||
|
def test_owe_transition_mode_connect_cmd(dev, apdev):
|
||||||
|
"""Opportunistic Wireless Encryption transition mode using cfg80211 connect command"""
|
||||||
|
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
|
||||||
|
wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
|
||||||
|
run_owe_transition_mode([ wpas ], apdev)
|
||||||
|
|
||||||
|
def run_owe_transition_mode(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")
|
||||||
params = { "ssid": "owe-random",
|
params = { "ssid": "owe-random",
|
||||||
|
Loading…
Reference in New Issue
Block a user