esp_wifi: Fix some wifi bugs.

1. Send encrypted mgmt frames in pmf connection
2. Remove dependecy of SHA256 AKM on PMF
3. Fix null pointer dereference
4. Set TTLS default phase2 method as MSCHAPV2.
This commit is contained in:
kapil.gupta
2020-12-16 15:45:30 +05:30
parent 778b54bbcb
commit 903198ad7f
3 changed files with 10 additions and 3 deletions

View File

@@ -502,6 +502,10 @@ struct tls_connection * tls_connection_init(void *tls_ctx)
void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn) void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
{ {
/* case: tls init failed */
if (!conn) {
return;
}
/* Free ssl ctx and data */ /* Free ssl ctx and data */
tls_mbedtls_conn_delete((tls_context_t *) conn->tls); tls_mbedtls_conn_delete((tls_context_t *) conn->tls);
os_free(conn->tls); os_free(conn->tls);

View File

@@ -476,8 +476,11 @@ int eap_peer_config_init(
sm->config.new_password_len); sm->config.new_password_len);
} }
if (g_wpa_ttls_phase2_type) { if (g_wpa_ttls_phase2_type) {
sm->config.phase2 = g_wpa_ttls_phase2_type; sm->config.phase2 = g_wpa_ttls_phase2_type;
} else {
/* set default config phase2 mode as MSCHAPV2 */
sm->config.phase2 = "auth=MSCHAPV2";
} }
return 0; return 0;