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