mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
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 <j@w1.fi>
This commit is contained in:
parent
6532a84ed3
commit
752d58c775
@ -766,7 +766,11 @@ def test_ap_ht40_csa3(dev, apdev):
|
|||||||
def test_ap_ht_smps(dev, apdev):
|
def test_ap_ht_smps(dev, apdev):
|
||||||
"""SMPS AP configuration options"""
|
"""SMPS AP configuration options"""
|
||||||
params = { "ssid": "ht1", "ht_capab": "[SMPS-STATIC]" }
|
params = { "ssid": "ht1", "ht_capab": "[SMPS-STATIC]" }
|
||||||
|
try:
|
||||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
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]" }
|
params = { "ssid": "ht2", "ht_capab": "[SMPS-DYNAMIC]" }
|
||||||
hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
|
hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user