wifi: Use WPA2 only when in AP mode
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 2 Feb 2011 23:39:03 +0000 (00:39 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 2 Feb 2011 23:39:03 +0000 (00:39 +0100)
plugins/wifi.c

index efaceff..ec0846d 100644 (file)
@@ -894,6 +894,7 @@ static GSupplicantSSID *ssid_ap_init(const char *ssid, const char *passphrase)
                ap->passphrase = NULL;
        } else {
                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;