mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 11:47:46 +00:00
[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:
+1
-1
@@ -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
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user