aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch
blob: 81e6588e723a5f86f4a337673b2d88c2f536e96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -743,7 +743,7 @@ static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, const char *cmd,
 	}
 
 	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);
-- 
2.11.0