aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-12-01 23:42:50 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-02 10:14:55 (GMT)
commitafd3cf14a0e61d1167f58ea90fe77f2bdbe8ed1a (patch)
treea980837aadd4e56961073bb15bf77ead0ce34f27
parent59642ca9569d3592f5e3d2b0d34c6a4910c53cb2 (diff)
downloadhostap-afd3cf14a0e61d1167f58ea90fe77f2bdbe8ed1a.zip
hostap-afd3cf14a0e61d1167f58ea90fe77f2bdbe8ed1a.tar.gz
hostap-afd3cf14a0e61d1167f58ea90fe77f2bdbe8ed1a.tar.bz2
WPS: Add GCMP-256 and CCMP-256 cipher options on Enrollee
If a credential with encp type AES is received, add GCMP-256 and CCMP-256 cipher options on station Enrollee based on local capabilities. This is needed to allow connection with an AP using either of these newer ciphers. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--wpa_supplicant/wps_supplicant.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 64edabf..1a2677b 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -493,6 +493,16 @@ static int wpa_supplicant_wps_cred(void *ctx,
ssid->pairwise_cipher |= WPA_CIPHER_GCMP;
ssid->group_cipher |= WPA_CIPHER_GCMP;
}
+ if (wpa_s->drv_capa_known &&
+ (wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_GCMP_256)) {
+ ssid->pairwise_cipher |= WPA_CIPHER_GCMP_256;
+ ssid->group_cipher |= WPA_CIPHER_GCMP_256;
+ }
+ if (wpa_s->drv_capa_known &&
+ (wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_CCMP_256)) {
+ ssid->pairwise_cipher |= WPA_CIPHER_CCMP_256;
+ ssid->group_cipher |= WPA_CIPHER_CCMP_256;
+ }
break;
}