hostapd: slightly clean up patches
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 250-hostapd_cli_ifdef.patch
1 From: Felix Fietkau <nbd@openwrt.org>
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
6 --- a/hostapd/hostapd_cli.c
7 +++ b/hostapd/hostapd_cli.c
8 @@ -401,7 +401,6 @@ static int hostapd_cli_cmd_disassociate(
9 }
10
11
12 -#ifdef CONFIG_TAXONOMY
13 static int hostapd_cli_cmd_signature(struct wpa_ctrl *ctrl, int argc,
14 char *argv[])
15 {
16 @@ -414,7 +413,6 @@ static int hostapd_cli_cmd_signature(str
17 os_snprintf(buf, sizeof(buf), "SIGNATURE %s", argv[0]);
18 return wpa_ctrl_command(ctrl, buf);
19 }
20 -#endif /* CONFIG_TAXONOMY */
21
22
23 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
24 @@ -431,7 +429,6 @@ static int hostapd_cli_cmd_sa_query(stru
25 }
26
27
28 -#ifdef CONFIG_WPS
29 static int hostapd_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc,
30 char *argv[])
31 {
32 @@ -657,7 +654,6 @@ static int hostapd_cli_cmd_wps_config(st
33 ssid_hex, argv[1]);
34 return wpa_ctrl_command(ctrl, buf);
35 }
36 -#endif /* CONFIG_WPS */
37
38
39 static int hostapd_cli_cmd_disassoc_imminent(struct wpa_ctrl *ctrl, int argc,
40 @@ -1670,13 +1666,10 @@ static const struct hostapd_cli_cmd host
41 { "disassociate", hostapd_cli_cmd_disassociate,
42 hostapd_complete_stations,
43 "<addr> = disassociate a station" },
44 -#ifdef CONFIG_TAXONOMY
45 { "signature", hostapd_cli_cmd_signature, hostapd_complete_stations,
46 "<addr> = get taxonomy signature for a station" },
47 -#endif /* CONFIG_TAXONOMY */
48 { "sa_query", hostapd_cli_cmd_sa_query, hostapd_complete_stations,
49 "<addr> = send SA Query to a station" },
50 -#ifdef CONFIG_WPS
51 { "wps_pin", hostapd_cli_cmd_wps_pin, NULL,
52 "<uuid> <pin> [timeout] [addr] = add WPS Enrollee PIN" },
53 { "wps_check_pin", hostapd_cli_cmd_wps_check_pin, NULL,
54 @@ -1701,7 +1694,6 @@ static const struct hostapd_cli_cmd host
55 "<SSID> <auth> <encr> <key> = configure AP" },
56 { "wps_get_status", hostapd_cli_cmd_wps_get_status, NULL,
57 "= show current WPS status" },
58 -#endif /* CONFIG_WPS */
59 { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent, NULL,
60 "= send Disassociation Imminent notification" },
61 { "ess_disassoc", hostapd_cli_cmd_ess_disassoc, NULL,