430-hostapd_cli_ifdef.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- a/hostapd/hostapd_cli.c
  2. +++ b/hostapd/hostapd_cli.c
  3. @@ -69,7 +69,6 @@ static const char *const commands_help =
  4. #ifdef CONFIG_IEEE80211W
  5. " sa_query <addr> send SA Query to a station\n"
  6. #endif /* CONFIG_IEEE80211W */
  7. -#ifdef CONFIG_WPS
  8. " wps_pin <uuid> <pin> [timeout] [addr] add WPS Enrollee PIN\n"
  9. " wps_check_pin <PIN> verify PIN checksum\n"
  10. " wps_pbc indicate button pushed to initiate PBC\n"
  11. @@ -82,7 +81,6 @@ static const char *const commands_help =
  12. " wps_ap_pin <cmd> [params..] enable/disable AP PIN\n"
  13. " wps_config <SSID> <auth> <encr> <key> configure AP\n"
  14. " wps_get_status show current WPS status\n"
  15. -#endif /* CONFIG_WPS */
  16. " get_config show current configuration\n"
  17. " help show this usage help\n"
  18. " interface [ifname] show interfaces/select interface\n"
  19. @@ -418,7 +416,6 @@ static int hostapd_cli_cmd_sa_query(stru
  20. #endif /* CONFIG_IEEE80211W */
  21. -#ifdef CONFIG_WPS
  22. static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
  23. char *argv[])
  24. {
  25. @@ -644,7 +641,6 @@ static int hostapd_cli_cmd_wps_config(st
  26. ssid_hex, argv[1]);
  27. return wpa_ctrl_command(ctrl, buf);
  28. }
  29. -#endif /* CONFIG_WPS */
  30. static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
  31. @@ -1236,7 +1232,6 @@ static const struct hostapd_cli_cmd host
  32. #ifdef CONFIG_IEEE80211W
  33. { "sa_query", hostapd_cli_cmd_sa_query },
  34. #endif /* CONFIG_IEEE80211W */
  35. -#ifdef CONFIG_WPS
  36. { "wps_pin", hostapd_cli_cmd_wps_pin },
  37. { "wps_check_pin", hostapd_cli_cmd_wps_check_pin },
  38. { "wps_pbc", hostapd_cli_cmd_wps_pbc },
  39. @@ -1250,7 +1245,6 @@ static const struct hostapd_cli_cmd host
  40. { "wps_ap_pin", hostapd_cli_cmd_wps_ap_pin },
  41. { "wps_config", hostapd_cli_cmd_wps_config },
  42. { "wps_get_status", hostapd_cli_cmd_wps_get_status },
  43. -#endif /* CONFIG_WPS */
  44. { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent },
  45. { "ess_disassoc", hostapd_cli_cmd_ess_disassoc },
  46. { "bss_tm_req", hostapd_cli_cmd_bss_tm_req },