mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 08:29:52 +00:00
[ncp] fix link error when building ot-daemon with OT_CANNEL_MONITOR=0 (#12004)
This commit is contained in:
@@ -1418,7 +1418,12 @@ template <> otError NcpBase::HandlePropertySet<SPINEL_PROP_CHANNEL_MANAGER_CHANN
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
SuccessOrExit(error = mDecoder.ReadBool(skipQualityCheck));
|
||||
#if OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE
|
||||
error = otChannelManagerRequestChannelSelect(mInstance, skipQualityCheck);
|
||||
#else
|
||||
OT_UNUSED_VARIABLE(skipQualityCheck);
|
||||
error = OT_ERROR_NOT_CAPABLE;
|
||||
#endif
|
||||
|
||||
exit:
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user