250-hostapd_cli_ifdef.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From: Felix Fietkau <[email protected]>
  2. Date: Thu, 13 Sep 2012 12:39:14 +0000
  3. Subject: [PATCH] hostapd: support wps in hostapd_cli even when built from the
  4. mini variant
  5. --- a/hostapd/hostapd_cli.c
  6. +++ b/hostapd/hostapd_cli.c
  7. @@ -409,7 +409,6 @@ static int hostapd_cli_cmd_disassociate(
  8. }
  9. -#ifdef CONFIG_TAXONOMY
  10. static int hostapd_cli_cmd_signature(struct wpa_ctrl *ctrl, int argc,
  11. char *argv[])
  12. {
  13. @@ -422,7 +421,6 @@ static int hostapd_cli_cmd_signature(str
  14. os_snprintf(buf, sizeof(buf), "SIGNATURE %s", argv[0]);
  15. return wpa_ctrl_command(ctrl, buf);
  16. }
  17. -#endif /* CONFIG_TAXONOMY */
  18. static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
  19. @@ -439,7 +437,6 @@ static int hostapd_cli_cmd_sa_query(stru
  20. }
  21. -#ifdef CONFIG_WPS
  22. static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
  23. char *argv[])
  24. {
  25. @@ -665,7 +662,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. @@ -1694,13 +1690,10 @@ static const struct hostapd_cli_cmd host
  32. { "disassociate", hostapd_cli_cmd_disassociate,
  33. hostapd_complete_stations,
  34. "<addr> = disassociate a station" },
  35. -#ifdef CONFIG_TAXONOMY
  36. { "signature", hostapd_cli_cmd_signature, hostapd_complete_stations,
  37. "<addr> = get taxonomy signature for a station" },
  38. -#endif /* CONFIG_TAXONOMY */
  39. { "sa_query", hostapd_cli_cmd_sa_query, hostapd_complete_stations,
  40. "<addr> = send SA Query to a station" },
  41. -#ifdef CONFIG_WPS
  42. { "wps_pin", hostapd_cli_cmd_wps_pin, NULL,
  43. "<uuid> <pin> [timeout] [addr] = add WPS Enrollee PIN" },
  44. { "wps_check_pin", hostapd_cli_cmd_wps_check_pin, NULL,
  45. @@ -1725,7 +1718,6 @@ static const struct hostapd_cli_cmd host
  46. "<SSID> <auth> <encr> <key> = configure AP" },
  47. { "wps_get_status", hostapd_cli_cmd_wps_get_status, NULL,
  48. "= show current WPS status" },
  49. -#endif /* CONFIG_WPS */
  50. { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent, NULL,
  51. "= send Disassociation Imminent notification" },
  52. { "ess_disassoc", hostapd_cli_cmd_ess_disassoc, NULL,