gsupplicant: set the cipher even if security is WEP
authorJulien Massot <jmassot@aldebaran-robotics.com>
Thu, 21 Jul 2011 11:46:39 +0000 (11:46 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 21 Jul 2011 12:15:42 +0000 (14:15 +0200)
This patch fix an issue with WEP40, i tested it with WEP40 WEP104 and open AP.

It set the group cipher even if security is WEP otherwise connman won't connect to WEP40 service.

gsupplicant/supplicant.c

index bbb04ae..e5743f0 100644 (file)
@@ -2817,6 +2817,7 @@ static void add_network_security(DBusMessageIter *dict, GSupplicantSSID *ssid)
        case G_SUPPLICANT_SECURITY_WEP:
                key_mgmt = "NONE";
                add_network_security_wep(dict, ssid);
+               add_network_security_ciphers(dict, ssid);
                break;
        case G_SUPPLICANT_SECURITY_PSK:
                key_mgmt = "WPA-PSK";