summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-02-03 00:39:03 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-03 00:39:03 +0100
commit4c168e988c9540e65efbe665710ea8133a104906 (patch)
tree80954e05e424bc5bcce7650d220e395e7d101424
parent609ea53e487a55298d7a168e616ab9bb91214084 (diff)
downloadconnman-4c168e988c9540e65efbe665710ea8133a104906.tar.gz
connman-4c168e988c9540e65efbe665710ea8133a104906.tar.bz2
connman-4c168e988c9540e65efbe665710ea8133a104906.zip
wifi: Use WPA2 only when in AP mode
-rw-r--r--plugins/wifi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index efaceff7..ec0846d4 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -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;