tests: Chargeable-User-Idnetity in Accounting-Request
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9308d0a039
commit
86c1861821
1 changed files with 5 additions and 1 deletions
|
@ -71,11 +71,15 @@ def test_radius_acct(dev, apdev):
|
|||
dev[1].connect("radius-acct", key_mgmt="WPA-EAP", scan_freq="2412",
|
||||
eap="PAX", identity="test-class",
|
||||
password_hex="0123456789abcdef0123456789abcdef")
|
||||
dev[2].connect("radius-acct", key_mgmt="WPA-EAP",
|
||||
eap="GPSK", identity="gpsk-cui",
|
||||
password="abcdefghijklmnop0123456789abcdef",
|
||||
scan_freq="2412")
|
||||
logger.info("Checking for RADIUS counters")
|
||||
count = 0
|
||||
while True:
|
||||
mib = hapd.get_mib()
|
||||
if int(mib['radiusAccClientResponses']) >= 2:
|
||||
if int(mib['radiusAccClientResponses']) >= 3:
|
||||
break
|
||||
time.sleep(0.1)
|
||||
count += 1
|
||||
|
|
Loading…
Reference in a new issue