Skip to content

Commit 14a8618

Browse files
adigierlubos
authored andcommitted
openthread: Align Kconfigs with Zephyr changes
Replace `NET_L2_OPENTHREAD` with `OPENTHREAD` as OpenThread Kconfigs were moved from L2 to OpenThread module. Keep `NET_L2_OPENTHREAD` if there is dependency to networking. Signed-off-by: Adrian Gielniewski <[email protected]>
1 parent 1cb9688 commit 14a8618

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

applications/matter_bridge/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ config BRIDGE_SMART_PLUG_SUPPORT
164164
default n
165165

166166
# Sample configuration used for Thread networking
167-
if NET_L2_OPENTHREAD
167+
if OPENTHREAD
168168

169169
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
170170
default OPENTHREAD_NORDIC_LIBRARY_FTD
@@ -174,12 +174,12 @@ choice OPENTHREAD_DEVICE_TYPE
174174
default OPENTHREAD_FTD
175175
endchoice
176176

177-
endif # NET_L2_OPENTHREAD
177+
endif # OPENTHREAD
178178

179179
# Dummy Kconfig just to select experimental for some of the configurations.
180180
config BRIDGE_EXPERIMENTAL
181181
bool
182-
default y if NET_L2_OPENTHREAD || BRIDGE_SMART_PLUG_SUPPORT
182+
default y if OPENTHREAD || BRIDGE_SMART_PLUG_SUPPORT
183183
select EXPERIMENTAL
184184

185185
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.features"

applications/matter_weather_station/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ config AVERAGE_CURRENT_CONSUMPTION
1414
device, used to estimate the remaining battery time.
1515

1616
# Application configuration used for Thread networking
17-
if NET_L2_OPENTHREAD
17+
if OPENTHREAD
1818

1919
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
2020
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -30,7 +30,7 @@ config IEEE802154_NRF5_RX_STACK_SIZE
3030
config CHIP_ENABLE_ICD_SUPPORT
3131
default y
3232

33-
endif # NET_L2_OPENTHREAD
33+
endif # OPENTHREAD
3434

3535
if CHIP_WIFI
3636

samples/matter/common/src/app/matter_init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void FeedFromMatter(Nrf::Watchdog::WatchdogSource *watchdogSource)
150150
#endif
151151

152152
/* Matter stack design implies different initialization procedure for Thread and Wi-Fi backend. */
153-
#if defined(CONFIG_NET_L2_OPENTHREAD)
153+
#if defined(CONFIG_OPENTHREAD)
154154
CHIP_ERROR ConfigureThreadRole()
155155
{
156156
using ThreadRole = ConnectivityManager::ThreadDeviceType;
@@ -194,7 +194,7 @@ CHIP_ERROR InitNetworkingStack()
194194
}
195195
#else
196196
#error "No valid L2 network backend selected");
197-
#endif /* CONFIG_NET_L2_OPENTHREAD */
197+
#endif /* CONFIG_OPENTHREAD */
198198

199199
#define VerifyInitResultOrReturn(ec, msg) \
200200
VerifyOrReturn(ec == CHIP_NO_ERROR, LOG_ERR(msg " [Error: %d]", sInitResult.Format()))

samples/matter/common/src/bridge/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,24 @@ config BRIDGE_BT_MINIMUM_SECURITY_LEVEL
5757

5858
config BRIDGE_BT_SCAN_WINDOW
5959
int "Time duration of a central actively scanning for devices within scan interval, it is equal BRIDGE_BT_SCAN_WINDOW*0.625 ms"
60-
default 40 if NET_L2_OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
60+
default 40 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
6161
default 48
6262

6363
config BRIDGE_BT_SCAN_INTERVAL
6464
int "Time between consecutive Bluetooth scan windows, it is equal BRIDGE_BT_SCAN_INTERVAL*0.625 ms"
65-
default 160 if NET_L2_OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
65+
default 160 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
6666
default 96
6767

6868
config BRIDGE_BT_CONNECTION_INTERVAL_MIN
6969
int "It is the minimum duration of time requested by central after the peripheral device should wake up to communicate, it is equal BRIDGE_BT_CONNECTION_INTERVAL_MIN*1.25 ms"
7070
range 6 3200
71-
default 80 if NET_L2_OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
71+
default 80 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
7272
default 24
7373

7474
config BRIDGE_BT_CONNECTION_INTERVAL_MAX
7575
int "It is the maximum duration of time requested by central after the peripheral device should wake up to communicate, it is equal BRIDGE_BT_CONNECTION_INTERVAL_MAX*1.25 ms"
7676
range 6 3200
77-
default 80 if NET_L2_OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
77+
default 80 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread
7878
default 40
7979

8080
config BRIDGE_BT_CONNECTION_TIMEOUT

samples/matter/light_bulb/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mainmenu "Matter nRF Connect Light Bulb Example Application"
77

88
# Sample configuration used for Thread networking
9-
if NET_L2_OPENTHREAD
9+
if OPENTHREAD
1010

1111
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
1212
default OPENTHREAD_NORDIC_LIBRARY_FTD
@@ -16,7 +16,7 @@ choice OPENTHREAD_DEVICE_TYPE
1616
default OPENTHREAD_FTD
1717
endchoice
1818

19-
endif # NET_L2_OPENTHREAD
19+
endif # OPENTHREAD
2020

2121
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.features"
2222
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.defaults"

samples/matter/light_switch/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ config STATE_LEDS
1414
'n' does not disable the LED indicating the state of the simulated bolt.
1515

1616
# Sample configuration used for Thread networking
17-
if NET_L2_OPENTHREAD
17+
if OPENTHREAD
1818

1919
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
2020
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -32,7 +32,7 @@ config OPENTHREAD_DEFAULT_TX_POWER
3232
int
3333
default 0
3434

35-
endif # NET_L2_OPENTHREAD
35+
endif # OPENTHREAD
3636

3737
if CHIP_WIFI
3838

samples/matter/lock/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ config THREAD_WIFI_SWITCHING_SHELL
111111
endif # THREAD_WIFI_SWITCHING
112112

113113
# Sample configuration used for Thread networking
114-
if NET_L2_OPENTHREAD
114+
if OPENTHREAD
115115

116116
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
117117
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -129,7 +129,7 @@ config OPENTHREAD_DEFAULT_TX_POWER
129129
int
130130
default 0
131131

132-
endif # NET_L2_OPENTHREAD
132+
endif # OPENTHREAD
133133

134134
if CHIP_WIFI
135135

samples/matter/manufacturer_specific/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mainmenu "Matter nRF Connect Manufacturer Specific Example Application"
77

88
# Sample configuration used for Thread networking
9-
if NET_L2_OPENTHREAD
9+
if OPENTHREAD
1010

1111
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
1212
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -16,7 +16,7 @@ choice OPENTHREAD_DEVICE_TYPE
1616
default OPENTHREAD_MTD
1717
endchoice
1818

19-
endif # NET_L2_OPENTHREAD
19+
endif # OPENTHREAD
2020

2121
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.features"
2222
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.defaults"

samples/matter/template/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mainmenu "Matter nRF Connect Template Example Application"
77

88
# Sample configuration used for Thread networking
9-
if NET_L2_OPENTHREAD
9+
if OPENTHREAD
1010

1111
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
1212
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -16,7 +16,7 @@ choice OPENTHREAD_DEVICE_TYPE
1616
default OPENTHREAD_MTD
1717
endchoice
1818

19-
endif # NET_L2_OPENTHREAD
19+
endif # OPENTHREAD
2020

2121
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.features"
2222
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.defaults"

samples/matter/thermostat/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ config CHIP_ENABLE_READ_CLIENT
3030
default y
3131

3232
# Sample configuration used for Thread networking
33-
if NET_L2_OPENTHREAD
33+
if OPENTHREAD
3434

3535
choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
3636
default OPENTHREAD_NORDIC_LIBRARY_MTD
@@ -40,7 +40,7 @@ choice OPENTHREAD_DEVICE_TYPE
4040
default OPENTHREAD_MTD
4141
endchoice
4242

43-
endif # NET_L2_OPENTHREAD
43+
endif # OPENTHREAD
4444

4545
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.features"
4646
source "${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/chip-module/Kconfig.defaults"

0 commit comments

Comments
 (0)