OSDN Git Service

Revert "wpa_supplicant: fix -I option handling"
authorIliyan Malchev <malchev@google.com>
Tue, 23 Apr 2013 02:37:51 +0000 (02:37 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Tue, 23 Apr 2013 02:37:51 +0000 (02:37 +0000)
This reverts commit b9551352f7b1af5c6e3ab7c07827db56651f6935

This CL was not necessary after all.

Change-Id: I27ec7981f0c8d1dad409f827e7bf7f001378ee07

wpa_supplicant/config_file.c

index e32bf5a..8604ae8 100644 (file)
@@ -435,11 +435,9 @@ struct wpa_config * wpa_config_read(const char *name, struct wpa_config *cfgp)
 
        fclose(f);
 
-       if (head)
-               config->ssid = head;
+       config->ssid = head;
        wpa_config_debug_dump_networks(config);
-       if (cred_head)
-               config->cred = cred_head;
+       config->cred = cred_head;
 
 #ifndef WPA_IGNORE_CONFIG_ERRORS
        if (errors) {