Skip to content

Commit 986a179

Browse files
committed
Add ifdefs
1 parent fa2f051 commit 986a179

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/clusters/network-commissioning/network-commissioning.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ class AutoRelease
138138
/// the exit of the current scope.
139139
#define DEFER_AUTO_RELEASE(name) AutoRelease autoRelease##__COUNTER__(name)
140140

141+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION || CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP || CHIP_DEVICE_CONFIG_ENABLE_THREAD
142+
141143
/// Handles encoding a WifiScanResponseIterator into a TLV response structure
142144
class WifiScanResponseToTLV : public chip::app::DataModel::EncodableToTLV
143145
{
@@ -201,6 +203,10 @@ CHIP_ERROR WifiScanResponseToTLV::EncodeTo(TLV::TLVWriter & writer, TLV::Tag tag
201203
return writer.EndContainer(outerType);
202204
}
203205

206+
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION || CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP || CHIP_DEVICE_CONFIG_ENABLE_THREAD
207+
208+
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
209+
204210
class ThreadScanResponseToTLV : public chip::app::DataModel::EncodableToTLV
205211
{
206212
public:
@@ -325,6 +331,8 @@ CHIP_ERROR ThreadScanResponseToTLV::EncodeTo(TLV::TLVWriter & writer, TLV::Tag t
325331
return writer.EndContainer(outerType);
326332
}
327333

334+
#endif // CHIP_DEVICE_CONFIG_ENABLE_THREAD
335+
328336
} // namespace
329337

330338
Instance::Instance(EndpointId aEndpointId, WiFiDriver * apDelegate) :

0 commit comments

Comments
 (0)