[PATCH v4 15/15] tests: hwsim: MBSSID with EMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support for enhanced multi-BSS advertisements (EMA)
with 8 VAPs all with SAE configuration.

Add sleep() after starting the APs, without this
beacons are not seen before the test ends in most cases.

Signed-off-by: Aloka Dixit <quic_alokad@xxxxxxxxxxx>
---
v1: depends on
https://patchwork.kernel.org/project/linux-wireless/list/?series=700684&state=%2A&archive=both

 tests/hwsim/test_he_mbssid.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/tests/hwsim/test_he_mbssid.py b/tests/hwsim/test_he_mbssid.py
index 219f747bba4a..d3d58cc33cba 100644
--- a/tests/hwsim/test_he_mbssid.py
+++ b/tests/hwsim/test_he_mbssid.py
@@ -68,6 +68,8 @@ def mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params):
     hapd = hostapd.Hostapd(apdev[0]['ifname'])
     hapd.ping()
 
+    time.sleep(0.1)
+
     dev[0].connect("bss-0", **sta_params)
     sta = hapd.get_sta(dev[0].own_addr())
     if "[HE]" not in sta['flags']:
@@ -171,3 +173,22 @@ def test_he_ap_mbssid_mixed_security2(dev, apdev, params):
 
     sta_params = {"key_mgmt": "NONE", "scan_freq": "2412"}
     mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)
+
+def test_he_ap_ema(dev, apdev, params):
+    """HE EMA AP"""
+    f, fname, ifname = mbssid_create_cfg_file(apdev, params, 2)
+
+    sae_params = {"wpa": "2", "wpa_passphrase": "12345678",
+                  "wpa_pairwise": "CCMP", "wpa_key_mgmt": "SAE",
+                  "sae_pwe": "1", "ieee80211w": "2"}
+
+    for idx in range(0, 8):
+        mbssid_write_bss_params(f, ifname, idx, sae_params)
+
+    f.close()
+
+    dev[0].set("sae_pwe", "1")
+    sta_params = {"psk": "12345678", "key_mgmt": "SAE", "ieee80211w": "2",
+                  "pairwise": "CCMP", "group": "CCMP", "scan_freq": "2412"}
+    mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)
+    dev[0].set("sae_pwe", "0")
-- 
2.25.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux