aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hwsim/test_ap_ht.py
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-01-29 19:11:41 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-29 19:11:41 (GMT)
commitcdebd24db66dce52c0943c7eb06402d6d8d300fa (patch)
tree83b7285b869eb799c018c573859cb7b82387ee1d /tests/hwsim/test_ap_ht.py
parent496a7a6ff97bd8a1d1de7d934f48f450c385c259 (diff)
downloadhostap-cdebd24db66dce52c0943c7eb06402d6d8d300fa.zip
hostap-cdebd24db66dce52c0943c7eb06402d6d8d300fa.tar.gz
hostap-cdebd24db66dce52c0943c7eb06402d6d8d300fa.tar.bz2
tests: OLBC AP table error cases
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests/hwsim/test_ap_ht.py')
-rw-r--r--tests/hwsim/test_ap_ht.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_ht.py b/tests/hwsim/test_ap_ht.py
index c06db18..0cba57e 100644
--- a/tests/hwsim/test_ap_ht.py
+++ b/tests/hwsim/test_ap_ht.py
@@ -11,7 +11,7 @@ import struct
import subprocess
import hostapd
-from utils import HwsimSkip
+from utils import HwsimSkip, alloc_fail
import hwsim_utils
from test_ap_csa import csa_supported
@@ -468,6 +468,28 @@ def test_olbc(dev, apdev):
if not cleared:
raise Exception("OLBC state did nto time out")
+def test_olbc_table_limit(dev, apdev):
+ """OLBC AP table size limit"""
+ ifname1 = apdev[0]['ifname']
+ ifname2 = apdev[0]['ifname'] + '-2'
+ ifname3 = apdev[0]['ifname'] + '-3'
+ hostapd.add_bss('phy3', ifname1, 'bss-1.conf')
+ hostapd.add_bss('phy3', ifname2, 'bss-2.conf')
+ hostapd.add_bss('phy3', ifname3, 'bss-3.conf')
+
+ params = { "ssid": "test-olbc",
+ "channel": "1",
+ "ap_table_max_size": "2" }
+ hapd = hostapd.add_ap(apdev[1]['ifname'], params)
+
+ time.sleep(0.3)
+ with alloc_fail(hapd, 1, "ap_list_process_beacon"):
+ time.sleep(0.3)
+ hapd.set("ap_table_max_size", "1")
+ time.sleep(0.3)
+ hapd.set("ap_table_max_size", "0")
+ time.sleep(0.3)
+
def test_olbc_5ghz(dev, apdev):
"""OLBC detection on 5 GHz"""
try: