h69k/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch

12 lines
304 B
Diff
Raw Normal View History

2024-09-29 14:35:28 +00:00
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -757,7 +757,7 @@ static int wpa_ctrl_command_sta(struct w
}
buf[len] = '\0';
- if (memcmp(buf, "FAIL", 4) == 0)
+ if (memcmp(buf, "FAIL", 4) == 0 || memcmp(buf, "UNKNOWN COMMAND", 15) == 0)
return -1;
if (print)
printf("%s", buf);