]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Allow SMPS test case to be skipped
authorJouni Malinen <j@w1.fi>
Thu, 25 Dec 2014 13:29:47 +0000 (15:29 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:04 +0000 (15:49 +0200)
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 <j@w1.fi>
tests/hwsim/test_ap_ht.py

index 3f8b7b0f375cf6c758809a82c8bea7c35b016428..539413adfd0a98ee4be20e70a6f5027f1ab896fc 100644 (file)
@@ -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)