381-hostapd_cli_UNKNOWN-COMMAND.patch 304 B

1234567891011
  1. --- a/hostapd/hostapd_cli.c
  2. +++ b/hostapd/hostapd_cli.c
  3. @@ -743,7 +743,7 @@ static int wpa_ctrl_command_sta(struct w
  4. }
  5. buf[len] = '\0';
  6. - if (memcmp(buf, "FAIL", 4) == 0)
  7. + if (memcmp(buf, "FAIL", 4) == 0 || memcmp(buf, "UNKNOWN COMMAND", 15) == 0)
  8. return -1;
  9. if (print)
  10. printf("%s", buf);