[cli] fix config check for "vendor" command (#9068)

The "vendor" command should be available on both FTD and MTD.
This commit is contained in:
Abtin Keshavarzian
2023-05-18 13:44:01 -07:00
committed by GitHub
parent deaec54dbf
commit b420a860ab
2 changed files with 0 additions and 8 deletions
-6
View File
@@ -3408,8 +3408,6 @@ Done
### vendor name
This command requires `OPENTHREAD_FTD` or `OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE`.
Get the vendor name.
```bash
@@ -3427,8 +3425,6 @@ Done
### vendor model
This command requires `OPENTHREAD_FTD` or `OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE`.
Get the vendor model.
```bash
@@ -3446,8 +3442,6 @@ Done
### vendor swversion
This command requires `OPENTHREAD_FTD` or `OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE`.
Get the vendor SW version.
```bash
-2
View File
@@ -8742,9 +8742,7 @@ otError Interpreter::ProcessCommand(Arg aArgs[])
#if OPENTHREAD_CONFIG_UPTIME_ENABLE
CmdEntry("uptime"),
#endif
#if OPENTHREAD_FTD || OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE
CmdEntry("vendor"),
#endif
#endif // OPENTHREAD_FTD || OPENTHREAD_MTD
CmdEntry("version"),
};