aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-12-01 23:36:43 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-02 10:00:45 (GMT)
commit402c8e00b79c865de5ca9ff1db4f51dde110c70c (patch)
tree5c2a3a29811b6853303483584d6371cb613bbdae
parenta2660890a5ed7a3053d0ed5976df7879ab2509da (diff)
downloadhostap-402c8e00b79c865de5ca9ff1db4f51dde110c70c.zip
hostap-402c8e00b79c865de5ca9ff1db4f51dde110c70c.tar.gz
hostap-402c8e00b79c865de5ca9ff1db4f51dde110c70c.tar.bz2
WPS: Map GCMP-256 and CCMP-256 to AES encryption type
This is needed to allow a credential to be built for GCMP-256/CCMP-256 networks that do not enable GCMP-128/CCMP-128. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/ap/wps_hostapd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c
index 95b40da..5ec0199 100644
--- a/src/ap/wps_hostapd.c
+++ b/src/ap/wps_hostapd.c
@@ -1064,7 +1064,9 @@ int hostapd_init_wps(struct hostapd_data *hapd,
if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X)
wps->auth_types |= WPS_AUTH_WPA2;
- if (conf->rsn_pairwise & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP)) {
+ if (conf->rsn_pairwise & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP |
+ WPA_CIPHER_CCMP_256 |
+ WPA_CIPHER_GCMP_256)) {
wps->encr_types |= WPS_ENCR_AES;
wps->encr_types_rsn |= WPS_ENCR_AES;
}