Merge branch 'esp_matter/fix_wifi_diag' into 'release/v1.5'

fix: Correct misplaced server init callback in WiFi Network Diagnostics cluster(v1.5)

See merge request app-frameworks/esp-matter!1411
This commit is contained in:
Hrishikesh Dhayagude
2026-01-27 13:41:11 +08:00
@@ -745,6 +745,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
/* Attributes not managed internally */
global::attribute::create_cluster_revision(cluster, cluster_revision);
cluster::set_init_and_shutdown_callbacks(cluster, ESPMatterWiFiNetworkDiagnosticsClusterServerInitCallback,
ESPMatterWiFiNetworkDiagnosticsClusterServerShutdownCallback);
}
return cluster;
@@ -3529,9 +3532,6 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
/** Attributes not managed internally **/
global::attribute::create_cluster_revision(cluster, cluster_revision);
cluster::set_init_and_shutdown_callbacks(cluster, ESPMatterWiFiNetworkDiagnosticsClusterServerInitCallback,
ESPMatterWiFiNetworkDiagnosticsClusterServerShutdownCallback);
}
/* Commands */