tests: id_str in network configuration
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
20fd210a56
commit
26cf800d11
2 changed files with 14 additions and 1 deletions
|
@ -107,3 +107,16 @@ def test_ap_open_assoc_timeout(dev, apdev):
|
|||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
||||
if ev is None:
|
||||
raise Exception("Timeout on connection")
|
||||
|
||||
def test_ap_open_id_str(dev, apdev):
|
||||
"""AP with open mode and id_str"""
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], { "ssid": "open" })
|
||||
dev[0].connect("open", key_mgmt="NONE", scan_freq="2412", id_str="foo",
|
||||
wait_connect=False)
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"])
|
||||
if ev is None:
|
||||
raise Exception("Association with the AP timed out")
|
||||
if "id_str=foo" not in ev:
|
||||
raise Exception("CTRL-EVENT-CONNECT did not have matching id_str: " + ev)
|
||||
if dev[0].get_status_field("id_str") != "foo":
|
||||
raise Exception("id_str mismatch")
|
||||
|
|
|
@ -648,7 +648,7 @@ class WpaSupplicant:
|
|||
"private_key_passwd", "ca_cert2", "client_cert2",
|
||||
"private_key2", "phase1", "phase2", "domain_suffix_match",
|
||||
"altsubject_match", "subject_match", "pac_file", "dh_file",
|
||||
"bgscan", "ht_mcs" ]
|
||||
"bgscan", "ht_mcs", "id_str" ]
|
||||
for field in quoted:
|
||||
if field in kwargs and kwargs[field]:
|
||||
self.set_network_quoted(id, field, kwargs[field])
|
||||
|
|
Loading…
Reference in a new issue