blob: e9083f6ecc6d583d3575826605d7daf4c5c935af [file] [log] [blame]
developer29c4d2d2022-12-26 19:41:22 +08001--- a/hostapd/hostapd_cli.c
2+++ b/hostapd/hostapd_cli.c
developer505c9432023-05-12 18:58:17 +08003@@ -757,7 +757,7 @@ static int wpa_ctrl_command_sta(struct w
developer29c4d2d2022-12-26 19:41:22 +08004 }
5
6 buf[len] = '\0';
7- if (memcmp(buf, "FAIL", 4) == 0)
8+ if (memcmp(buf, "FAIL", 4) == 0 || memcmp(buf, "UNKNOWN COMMAND", 15) == 0)
9 return -1;
10 if (print)
11 printf("%s", buf);