[PATCH 6.12 135/369] selftests: drv-net: Fix remote command checking in require_cmd()