tests: update_identifier in network block
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
e376290c66
commit
f1a36a53a5
2 changed files with 17 additions and 1 deletions
|
@ -2038,3 +2038,19 @@ def test_ap_hs20_remediation_sql(dev, apdev, params):
|
|||
|
||||
finally:
|
||||
os.remove(dbfile)
|
||||
|
||||
def test_ap_hs20_external_selection(dev, apdev):
|
||||
"""Hotspot 2.0 connection using external network selection and creation"""
|
||||
bssid = apdev[0]['bssid']
|
||||
params = hs20_ap_params()
|
||||
params['hessid'] = bssid
|
||||
params['disable_dgaf'] = '1'
|
||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
|
||||
dev[0].hs20_enable()
|
||||
dev[0].connect("test-hs20", proto="RSN", key_mgmt="WPA-EAP", eap="TTLS",
|
||||
identity="hs20-test", password="password",
|
||||
ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
|
||||
scan_freq="2412", update_identifier="54321")
|
||||
if dev[0].get_status_field("hs20") != "2":
|
||||
raise Exception("Unexpected hs20 indication")
|
||||
|
|
|
@ -668,7 +668,7 @@ class WpaSupplicant:
|
|||
"wpa_ptk_rekey", "disable_ht", "disable_vht", "bssid",
|
||||
"disable_max_amsdu", "ampdu_factor", "ampdu_density",
|
||||
"disable_ht40", "disable_sgi", "disable_ldpc",
|
||||
"ht40_intolerant" ]
|
||||
"ht40_intolerant", "update_identifier" ]
|
||||
for field in not_quoted:
|
||||
if field in kwargs and kwargs[field]:
|
||||
self.set_network(id, field, kwargs[field])
|
||||
|
|
Loading…
Reference in a new issue