]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Map GCMP-256 and CCMP-256 to AES encryption type
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 1 Dec 2017 23:36:43 +0000 (01:36 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 2 Dec 2017 10:00:45 +0000 (12:00 +0200)
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>
src/ap/wps_hostapd.c

index 95b40da0f6bb43ceb492e2166fd11827eaa29525..5ec019971f3725b5b767bcb737fa042e7ccc1636 100644 (file)
@@ -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;
                }