From d78f33030d9b3ecc7ad73ba3f544fc84b08d06ea Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 31 Dec 2013 13:21:18 +0200 Subject: [PATCH] tests: SSID contents and encoding Signed-hostap: Jouni Malinen --- tests/hwsim/wpasupplicant.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index c4d7191f9..fd07782de 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -558,7 +558,8 @@ class WpaSupplicant: raise Exception("Failed to request TDLS teardown") 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, eap=None, identity=None, anonymous_identity=None, password=None, phase1=None, phase2=None, ca_cert=None, @@ -568,7 +569,10 @@ class WpaSupplicant: wait_connect=True, only_add_network=False): logger.info("Connect STA " + self.ifname + " to AP") 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: self.set_network_quoted(id, "psk", psk) if proto: