tests: SSID contents and encoding

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-12-31 13:21:18 +02:00
parent 20e5c2830f
commit d78f33030d

View file

@ -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: