tests: OCE association in open network

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-12-12 02:00:26 +02:00
parent 326acce814
commit 053ce8bff7

View file

@ -8,6 +8,7 @@ import logging
logger = logging.getLogger() logger = logging.getLogger()
import hostapd import hostapd
from wpasupplicant import WpaSupplicant
from hwsim_utils import set_rx_rssi, reset_rx_rssi from hwsim_utils import set_rx_rssi, reset_rx_rssi
import time import time
@ -162,3 +163,23 @@ def test_oce_ap(dev, apdev):
params['oce'] = "4" params['oce'] = "4"
hapd = hostapd.add_ap(apdev[0], params) hapd = hostapd.add_ap(apdev[0], params)
dev[0].connect(ssid, psk=passphrase, ieee80211w="1", scan_freq="2412") dev[0].connect(ssid, psk=passphrase, ieee80211w="1", scan_freq="2412")
def test_oce_ap_open(dev, apdev):
"""OCE AP (open)"""
ssid = "test-oce"
params = {"ssid": ssid}
params['mbo'] = "1"
params['oce'] = "4"
hapd = hostapd.add_ap(apdev[0], params)
dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
def test_oce_ap_open_connect_cmd(dev, apdev):
"""OCE AP (open, connect command)"""
ssid = "test-oce"
params = {"ssid": ssid}
params['mbo'] = "1"
params['oce'] = "4"
hapd = hostapd.add_ap(apdev[0], params)
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
wpas.connect(ssid, key_mgmt="NONE", scan_freq="2412")