WifiAP disable insecure TKIP (#5122)

fixes #4805
This commit is contained in:
Rotzbua 2021-06-10 12:16:12 +02:00 committed by GitHub
parent e7e94ea247
commit aec2635b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,7 @@ void wifi_softap_config(wifi_config_t *wifi_config, const char * ssid=NULL, cons
wifi_config->ap.ssid_len = strlen(ssid); wifi_config->ap.ssid_len = strlen(ssid);
if(password != NULL && password[0] != 0){ if(password != NULL && password[0] != 0){
wifi_config->ap.authmode = authmode; wifi_config->ap.authmode = authmode;
wifi_config->ap.pairwise_cipher = WIFI_CIPHER_TYPE_CCMP; // Disable by default enabled insecure TKIP and use just CCMP.
snprintf((char*)wifi_config->ap.password, 64, password); snprintf((char*)wifi_config->ap.password, 64, password);
} }
} }