From 752d58c775e8856ae98327c188e2e66181f67684 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 25 Dec 2014 15:29:47 +0200 Subject: [PATCH] tests: Allow SMPS test case to be skipped ap_ht_smps needs relatively recern kernel support, so allow it to be skipped rather than claimed as failure, in case hostapd startup fails. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_ht.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_ht.py b/tests/hwsim/test_ap_ht.py index 3f8b7b0f3..539413adf 100644 --- a/tests/hwsim/test_ap_ht.py +++ b/tests/hwsim/test_ap_ht.py @@ -766,7 +766,11 @@ def test_ap_ht40_csa3(dev, apdev): def test_ap_ht_smps(dev, apdev): """SMPS AP configuration options""" params = { "ssid": "ht1", "ht_capab": "[SMPS-STATIC]" } - hapd = hostapd.add_ap(apdev[0]['ifname'], params) + try: + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + except: + logger.info("Assume mac80211_hwsim was not recent enough to support SMPS") + return "skip" params = { "ssid": "ht2", "ht_capab": "[SMPS-DYNAMIC]" } hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)