From 053ce8bff7e786be43c886eb62419651a11a59a6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 12 Dec 2019 02:00:26 +0200 Subject: [PATCH] tests: OCE association in open network Signed-off-by: Jouni Malinen --- tests/hwsim/test_oce.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/hwsim/test_oce.py b/tests/hwsim/test_oce.py index dd2ed4007..39ec5df5a 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")