Skip to content

Commit 266e5fd

Browse files
[ESP32] Add a menuconfig option to enable access restrictions from the application. (#38537) (#38586)
1 parent 2a68f6d commit 266e5fd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

config/esp32/components/chip/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ if (CONFIG_ENABLE_OTA_REQUESTOR)
252252
chip_gn_arg_append("chip_enable_ota_requestor" "true")
253253
endif()
254254

255+
if (CONFIG_ENABLE_ACCESS_RESTRICTIONS)
256+
chip_gn_arg_append("chip_enable_access_restrictions" "true")
257+
endif()
258+
255259
if (CONFIG_ENABLE_ROTATING_DEVICE_ID)
256260
chip_gn_arg_append("chip_enable_additional_data_advertising" "true")
257261
chip_gn_arg_append("chip_enable_rotating_device_id" "true")

config/esp32/components/chip/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,4 +1406,12 @@ menu "CHIP Device Layer"
14061406

14071407
endmenu
14081408

1409+
menu "Cluster Configuration Options"
1410+
config ENABLE_ACCESS_RESTRICTIONS
1411+
bool "Enable Access Restrictions of Access Control Cluster"
1412+
default n
1413+
help
1414+
Enable this option to enable Access Restrictions on the device.
1415+
1416+
endmenu
14091417
endmenu

0 commit comments

Comments
 (0)