Skip to content

Commit 446241e

Browse files
committed
Merge branch 'fix-network-commissioning-attributes-1-3' into 'release/v1.3'
[v1.3] components/esp_matter: create network commissioning attributes as per feature map See merge request app-frameworks/esp-matter!1025
2 parents 390a241 + e86cbc0 commit 446241e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/esp_matter/esp_matter_cluster.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,16 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
488488
/* Attributes managed internally */
489489
attribute::create_max_networks(cluster, 0);
490490
attribute::create_networks(cluster, NULL, 0, 0);
491-
attribute::create_scan_max_time_seconds(cluster, 0);
492-
attribute::create_connect_max_time_seconds(cluster, 0);
493491
attribute::create_interface_enabled(cluster, 0);
494492
attribute::create_last_networking_status(cluster, nullable<uint8_t>());
495493
attribute::create_last_network_id(cluster, NULL, 0);
496494
attribute::create_last_connect_error_value(cluster, nullable<int32_t>());
495+
496+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI || CHIP_DEVICE_CONFIG_ENABLE_WIFI
497+
attribute::create_scan_max_time_seconds(cluster, 0);
498+
attribute::create_connect_max_time_seconds(cluster, 0);
499+
#endif
500+
497501
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
498502
attribute::create_supported_wifi_bands(cluster, NULL, 0, 0);
499503
#endif

0 commit comments

Comments
 (0)