tests: SSID contents and encoding
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
20e5c2830f
commit
d78f33030d
1 changed files with 6 additions and 2 deletions
|
@ -558,7 +558,8 @@ class WpaSupplicant:
|
||||||
raise Exception("Failed to request TDLS teardown")
|
raise Exception("Failed to request TDLS teardown")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def connect(self, ssid, psk=None, proto=None, key_mgmt=None, wep_key0=None,
|
def connect(self, ssid=None, ssid2=None, psk=None, proto=None,
|
||||||
|
key_mgmt=None, wep_key0=None,
|
||||||
ieee80211w=None, pairwise=None, group=None, scan_freq=None,
|
ieee80211w=None, pairwise=None, group=None, scan_freq=None,
|
||||||
eap=None, identity=None, anonymous_identity=None,
|
eap=None, identity=None, anonymous_identity=None,
|
||||||
password=None, phase1=None, phase2=None, ca_cert=None,
|
password=None, phase1=None, phase2=None, ca_cert=None,
|
||||||
|
@ -568,7 +569,10 @@ class WpaSupplicant:
|
||||||
wait_connect=True, only_add_network=False):
|
wait_connect=True, only_add_network=False):
|
||||||
logger.info("Connect STA " + self.ifname + " to AP")
|
logger.info("Connect STA " + self.ifname + " to AP")
|
||||||
id = self.add_network()
|
id = self.add_network()
|
||||||
self.set_network_quoted(id, "ssid", ssid)
|
if ssid:
|
||||||
|
self.set_network_quoted(id, "ssid", ssid)
|
||||||
|
elif ssid2:
|
||||||
|
self.set_network(id, "ssid", ssid2)
|
||||||
if psk:
|
if psk:
|
||||||
self.set_network_quoted(id, "psk", psk)
|
self.set_network_quoted(id, "psk", psk)
|
||||||
if proto:
|
if proto:
|
||||||
|
|
Loading…
Reference in a new issue