wifi: Set AP ciphers to CCMP only
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 2 Feb 2011 23:25:33 +0000 (00:25 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 2 Feb 2011 23:26:25 +0000 (00:26 +0100)
For security reasons, only AES is supported.

plugins/wifi.c

index 23a2220..efaceff 100644 (file)
@@ -894,6 +894,8 @@ static GSupplicantSSID *ssid_ap_init(const char *ssid, const char *passphrase)
                ap->passphrase = NULL;
        } else {
                ap->security = G_SUPPLICANT_SECURITY_PSK;
+              ap->pairwise_cipher = G_SUPPLICANT_PAIRWISE_CCMP;
+              ap->group_cipher = G_SUPPLICANT_GROUP_CCMP;
                ap->passphrase = passphrase;
        }