File tree 3 files changed +1
-7
lines changed
3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ CHIP_ERROR SetUpCodePairer::Connect(SetupPayload & payload)
129
129
}
130
130
VerifyOrReturnError (searchOverAll || CHIP_NO_ERROR == err || CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE == err, err);
131
131
}
132
- #if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
133
132
if (searchOverAll || payload.rendezvousInformation .Value ().Has (RendezvousInformationFlag::kWiFiPAF ))
134
133
{
135
134
ChipLogProgress (Controller, " WiFi-PAF: has RendezvousInformationFlag::kWiFiPAF" );
@@ -139,7 +138,6 @@ CHIP_ERROR SetUpCodePairer::Connect(SetupPayload & payload)
139
138
}
140
139
VerifyOrReturnError (searchOverAll || CHIP_NO_ERROR == err || CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE == err, err);
141
140
}
142
- #endif
143
141
}
144
142
145
143
// We always want to search on network because any node that has already been commissioned will use on-network regardless of the
@@ -254,7 +252,6 @@ CHIP_ERROR SetUpCodePairer::StopConnectOverSoftAP()
254
252
return CHIP_NO_ERROR;
255
253
}
256
254
257
- #if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
258
255
CHIP_ERROR SetUpCodePairer::StartDiscoverOverWiFiPAF (SetupPayload & payload)
259
256
{
260
257
return CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE;
@@ -265,7 +262,6 @@ CHIP_ERROR SetUpCodePairer::StopConnectOverWiFiPAF()
265
262
mWaitingForDiscovery [kWiFiPAFTransport ] = false ;
266
263
return CHIP_NO_ERROR;
267
264
}
268
- #endif
269
265
270
266
bool SetUpCodePairer::ConnectToDiscoveredDevice ()
271
267
{
Original file line number Diff line number Diff line change @@ -111,10 +111,8 @@ class DLL_EXPORT SetUpCodePairer : public DevicePairingDelegate
111
111
CHIP_ERROR StopConnectOverIP ();
112
112
CHIP_ERROR StartDiscoverOverSoftAP (SetupPayload & payload);
113
113
CHIP_ERROR StopConnectOverSoftAP ();
114
- #if CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
115
114
CHIP_ERROR StartDiscoverOverWiFiPAF (SetupPayload & payload);
116
115
CHIP_ERROR StopConnectOverWiFiPAF ();
117
- #endif
118
116
119
117
// Returns whether we have kicked off a new connection attempt.
120
118
bool ConnectToDiscoveredDevice ();
Original file line number Diff line number Diff line change 428
428
/**
429
429
* CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
430
430
*
431
- * Name of the WiFiPAF commission function
431
+ * Enable support for the WiFiPAF commissioning function
432
432
*/
433
433
#ifndef CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF
434
434
#define CHIP_DEVICE_CONFIG_ENABLE_WIFIPAF 0
You can’t perform that action at this time.
0 commit comments