430-hostapd_cli_ifdef.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/hostapd/hostapd_cli.c
  2. +++ b/hostapd/hostapd_cli.c
  3. @@ -447,7 +447,6 @@ static int hostapd_cli_cmd_sa_query(stru
  4. #endif /* CONFIG_IEEE80211W */
  5. -#ifdef CONFIG_WPS
  6. static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
  7. char *argv[])
  8. {
  9. @@ -673,7 +672,6 @@ static int hostapd_cli_cmd_wps_config(st
  10. ssid_hex, argv[1]);
  11. return wpa_ctrl_command(ctrl, buf);
  12. }
  13. -#endif /* CONFIG_WPS */
  14. static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
  15. @@ -1367,7 +1365,6 @@ static const struct hostapd_cli_cmd host
  16. { "sa_query", hostapd_cli_cmd_sa_query, NULL,
  17. "<addr> = send SA Query to a station" },
  18. #endif /* CONFIG_IEEE80211W */
  19. -#ifdef CONFIG_WPS
  20. { "wps_pin", hostapd_cli_cmd_wps_pin, NULL,
  21. "<uuid> <pin> [timeout] [addr] = add WPS Enrollee PIN" },
  22. { "wps_check_pin", hostapd_cli_cmd_wps_check_pin, NULL,
  23. @@ -1392,7 +1389,6 @@ static const struct hostapd_cli_cmd host
  24. "<SSID> <auth> <encr> <key> = configure AP" },
  25. { "wps_get_status", hostapd_cli_cmd_wps_get_status, NULL,
  26. "= show current WPS status" },
  27. -#endif /* CONFIG_WPS */
  28. { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent, NULL, NULL },
  29. { "ess_disassoc", hostapd_cli_cmd_ess_disassoc, NULL, NULL },
  30. { "bss_tm_req", hostapd_cli_cmd_bss_tm_req, NULL, NULL },