kernel/modules: snd-pcm-dmaengine only if CONFIG_SND_DMAENGINE_PCM is set
[openwrt.git] / 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 @@ -79,7 +78,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 @@ -340,7 +338,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 @@ -559,7 +556,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 @@ -805,7 +801,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 @@ -818,7 +813,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         { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent },
49         { "ess_disassoc", hostapd_cli_cmd_ess_disassoc },
50         { "get_config", hostapd_cli_cmd_get_config },