430-hostapd_cli_ifdef.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --- a/hostapd/hostapd_cli.c
  2. +++ b/hostapd/hostapd_cli.c
  3. @@ -385,7 +385,6 @@ static int hostapd_cli_cmd_disassociate(
  4. }
  5. -#ifdef CONFIG_TAXONOMY
  6. static int hostapd_cli_cmd_signature(struct wpa_ctrl *ctrl, int argc,
  7. char *argv[])
  8. {
  9. @@ -398,7 +397,6 @@ static int hostapd_cli_cmd_signature(str
  10. os_snprintf(buf, sizeof(buf), "SIGNATURE %s", argv[0]);
  11. return wpa_ctrl_command(ctrl, buf);
  12. }
  13. -#endif /* CONFIG_TAXONOMY */
  14. #ifdef CONFIG_IEEE80211W
  15. @@ -417,7 +415,6 @@ static int hostapd_cli_cmd_sa_query(stru
  16. #endif /* CONFIG_IEEE80211W */
  17. -#ifdef CONFIG_WPS
  18. static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
  19. char *argv[])
  20. {
  21. @@ -643,7 +640,6 @@ static int hostapd_cli_cmd_wps_config(st
  22. ssid_hex, argv[1]);
  23. return wpa_ctrl_command(ctrl, buf);
  24. }
  25. -#endif /* CONFIG_WPS */
  26. static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
  27. @@ -1538,15 +1534,12 @@ static const struct hostapd_cli_cmd host
  28. { "disassociate", hostapd_cli_cmd_disassociate,
  29. hostapd_complete_stations,
  30. "<addr> = disassociate a station" },
  31. -#ifdef CONFIG_TAXONOMY
  32. { "signature", hostapd_cli_cmd_signature, hostapd_complete_stations,
  33. "<addr> = get taxonomy signature for a station" },
  34. -#endif /* CONFIG_TAXONOMY */
  35. #ifdef CONFIG_IEEE80211W
  36. { "sa_query", hostapd_cli_cmd_sa_query, hostapd_complete_stations,
  37. "<addr> = send SA Query to a station" },
  38. #endif /* CONFIG_IEEE80211W */
  39. -#ifdef CONFIG_WPS
  40. { "wps_pin", hostapd_cli_cmd_wps_pin, NULL,
  41. "<uuid> <pin> [timeout] [addr] = add WPS Enrollee PIN" },
  42. { "wps_check_pin", hostapd_cli_cmd_wps_check_pin, NULL,
  43. @@ -1571,7 +1564,6 @@ static const struct hostapd_cli_cmd host
  44. "<SSID> <auth> <encr> <key> = configure AP" },
  45. { "wps_get_status", hostapd_cli_cmd_wps_get_status, NULL,
  46. "= show current WPS status" },
  47. -#endif /* CONFIG_WPS */
  48. { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent, NULL,
  49. "= send Disassociation Imminent notification" },
  50. { "ess_disassoc", hostapd_cli_cmd_ess_disassoc, NULL,