[ncp] fix link error when building ot-daemon with OT_CANNEL_MONITOR=0 (#12004)

This commit is contained in:
Ashish
2025-10-09 11:23:39 -07:00
committed by GitHub
parent 67d2cfb757
commit c65811fee5
+5
View File
@@ -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;