779773a0de
This backports a compile fix form the hostapd project. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
11 lines
304 B
Diff
11 lines
304 B
Diff
--- a/hostapd/hostapd_cli.c
|
|
+++ b/hostapd/hostapd_cli.c
|
|
@@ -743,7 +743,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);
|