[cli] limit radiofilter command to when 15.4 radio link is enabled (#7239)

This commit adds `OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE`
check to CLI processing methods related to `radiofilter` command which
ensures that this is only available when 15.4 radio is enabled. This
allows us to build CLI app successfully with TREL radio only.
This commit is contained in:
Abtin Keshavarzian
2021-12-22 13:10:24 -08:00
committed by GitHub
parent 348f0a10a3
commit 968f29cdb0
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -3681,7 +3681,7 @@ otError Interpreter::ProcessPreferRouterId(Arg aArgs[])
}
#endif
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE && OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE
otError Interpreter::ProcessRadioFilter(Arg aArgs[])
{
otError error = OT_ERROR_NONE;
+3 -1
View File
@@ -512,7 +512,9 @@ private:
otError ProcessPskcRef(Arg aArgs[]);
#endif
#endif
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE && OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE
otError ProcessRadioFilter(Arg aArgs[]);
#endif
otError ProcessRcp(Arg aArgs[]);
otError ProcessRegion(Arg aArgs[]);
#if OPENTHREAD_FTD
@@ -819,7 +821,7 @@ private:
{"pskcref", &Interpreter::ProcessPskcRef},
#endif
#endif
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE
#if OPENTHREAD_CONFIG_MAC_FILTER_ENABLE && OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE
{"radiofilter", &Interpreter::ProcessRadioFilter},
#endif
{"rcp", &Interpreter::ProcessRcp},