Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: server/site_wlan_connect.py

Issue 3139013: 802.1x EAP-TLS Authentication for wifi tests (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Change eap_tls to eap-tls Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/site_wifitest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/site_wlan_connect.py
diff --git a/server/site_wlan_connect.py b/server/site_wlan_connect.py
index ed7c2a65d20e5e1c2dc82482642fbf778b7a655b..dadc510a536c8e8475b80da63cf9896879acaaa9 100644
--- a/server/site_wlan_connect.py
+++ b/server/site_wlan_connect.py
@@ -13,14 +13,22 @@ manager = dbus.Interface(bus.get_object("org.chromium.flimflam", "/"),
"org.chromium.flimflam.Manager")
connect_quirks = {}
+connection_settings = {
+ "Type": "wifi",
+ "Mode": "managed",
+ "SSID": ssid,
+ "Security": security
+}
+
+if security == '802_1x':
+ (connection_settings["Identity"],
+ connection_settings["CertPath"]) = psk.split(':')
+else:
+ connection_settings["Passphrase"] = psk
+
def DbusSetup():
try:
- path = manager.GetService(({
- "Type": "wifi",
- "Mode": "managed",
- "SSID": ssid,
- "Security": security,
- "Passphrase": psk }))
+ path = manager.GetService((connection_settings))
service = dbus.Interface(
bus.get_object("org.chromium.flimflam", path),
"org.chromium.flimflam.Service")
« no previous file with comments | « server/site_wifitest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698