Root/package/network/services/hostapd/patches/590-hostapd_cli_ifdef.patch

1--- a/hostapd/hostapd_cli.c
2+++ b/hostapd/hostapd_cli.c
3@@ -67,7 +67,6 @@ static const char *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 *commands_help =
12 #endif /* CONFIG_WPS_NFC */
13 " wps_ap_pin <cmd> [params..] enable/disable AP PIN\n"
14 " wps_config <SSID> <auth> <encr> <key> configure AP\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@@ -343,7 +341,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@@ -573,7 +570,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_ess_disassoc(struct wpa_ctrl *ctrl, int argc,
35@@ -799,7 +795,6 @@ static struct hostapd_cli_cmd hostapd_cl
36 #ifdef CONFIG_IEEE80211W
37     { "sa_query", hostapd_cli_cmd_sa_query },
38 #endif /* CONFIG_IEEE80211W */
39-#ifdef CONFIG_WPS
40     { "wps_pin", hostapd_cli_cmd_wps_pin },
41     { "wps_check_pin", hostapd_cli_cmd_wps_check_pin },
42     { "wps_pbc", hostapd_cli_cmd_wps_pbc },
43@@ -814,7 +809,6 @@ static struct hostapd_cli_cmd hostapd_cl
44 #endif /* CONFIG_WPS_NFC */
45     { "wps_ap_pin", hostapd_cli_cmd_wps_ap_pin },
46     { "wps_config", hostapd_cli_cmd_wps_config },
47-#endif /* CONFIG_WPS */
48     { "ess_disassoc", hostapd_cli_cmd_ess_disassoc },
49     { "get_config", hostapd_cli_cmd_get_config },
50     { "help", hostapd_cli_cmd_help },
51

Archive Download this file



interactive