aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-12-12 00:00:26 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-12-12 00:00:26 (GMT)
commit053ce8bff7e786be43c886eb62419651a11a59a6 (patch)
treee88327ec6097796eceb48a01270897b3ee65548b
parent326acce814e67e0600dd54d391bec77f01dedd24 (diff)
downloadhostap-053ce8bff7e786be43c886eb62419651a11a59a6.zip
hostap-053ce8bff7e786be43c886eb62419651a11a59a6.tar.gz
hostap-053ce8bff7e786be43c886eb62419651a11a59a6.tar.bz2
tests: OCE association in open network
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_oce.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/hwsim/test_oce.py b/tests/hwsim/test_oce.py
index dd2ed40..39ec5df 100644
--- a/tests/hwsim/test_oce.py
+++ b/tests/hwsim/test_oce.py
@@ -8,6 +8,7 @@ import logging
logger = logging.getLogger()
import hostapd
+from wpasupplicant import WpaSupplicant
from hwsim_utils import set_rx_rssi, reset_rx_rssi
import time
@@ -162,3 +163,23 @@ def test_oce_ap(dev, apdev):
params['oce'] = "4"
hapd = hostapd.add_ap(apdev[0], params)
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")