|
@@ -490,9 +490,15 @@ def test_olbc_5ghz(dev, apdev):
|
|
"ieee80211n": "0",
|
|
"ieee80211n": "0",
|
|
"wmm_enabled": "0" }
|
|
"wmm_enabled": "0" }
|
|
hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
|
|
hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
|
|
- time.sleep(0.5)
|
|
+ found = False
|
|
- status = hapd.get_status()
|
|
+ for i in range(20):
|
|
- if status['olbc_ht'] != '1':
|
|
+ time.sleep(0.1)
|
|
|
|
+ status = hapd.get_status()
|
|
|
|
+ logger.debug('olbc_ht: ' + status['olbc_ht'])
|
|
|
|
+ if status['olbc_ht'] == '1':
|
|
|
|
+ found = True
|
|
|
|
+ break
|
|
|
|
+ if not found:
|
|
raise Exception("Missing OLBC information")
|
|
raise Exception("Missing OLBC information")
|
|
finally:
|
|
finally:
|
|
if hapd:
|
|
if hapd:
|