"WiFi.Passphrase");
if (passphrase == NULL || strlen(passphrase) == 0)
ssid->passphrase = NULL;
- else
+ else
ssid->passphrase = passphrase;
ssid->eap = connman_network_get_string(network, "WiFi.EAP");
if (wifi->tethering == TRUE)
return;
-
+
wifi_scan(wifi->device);
}
ap->security = G_SUPPLICANT_SECURITY_NONE;
ap->passphrase = NULL;
} else {
- ap->security = G_SUPPLICANT_SECURITY_PSK;
+ ap->security = G_SUPPLICANT_SECURITY_PSK;
ap->protocol = G_SUPPLICANT_PROTO_RSN;
ap->pairwise_cipher = G_SUPPLICANT_PAIRWISE_CCMP;
ap->group_cipher = G_SUPPLICANT_GROUP_CCMP;
- ap->passphrase = passphrase;
+ ap->passphrase = passphrase;
}
return ap;