hostapd: enter DFS state if no available channel is found
[openwrt/staging/dedeckeh.git] / package / network / services / hostapd / patches / 430-hostapd_cli_ifdef.patch
1 --- a/hostapd/hostapd_cli.c
2 +++ b/hostapd/hostapd_cli.c
3 @@ -388,7 +388,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 @@ -401,7 +400,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 static int hostapd_cli_cmd_sa_query(struct wpa_ctrl *ctrl, int argc,
19 @@ -418,7 +416,6 @@ static int hostapd_cli_cmd_sa_query(stru
20 }
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 @@ -644,7 +641,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 @@ -1532,13 +1528,10 @@ 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 { "sa_query", hostapd_cli_cmd_sa_query, hostapd_complete_stations,
44 "<addr> = send SA Query to a station" },
45 -#ifdef CONFIG_WPS
46 { "wps_pin", hostapd_cli_cmd_wps_pin, NULL,
47 "<uuid> <pin> [timeout] [addr] = add WPS Enrollee PIN" },
48 { "wps_check_pin", hostapd_cli_cmd_wps_check_pin, NULL,
49 @@ -1563,7 +1556,6 @@ static const struct hostapd_cli_cmd host
50 "<SSID> <auth> <encr> <key> = configure AP" },
51 { "wps_get_status", hostapd_cli_cmd_wps_get_status, NULL,
52 "= show current WPS status" },
53 -#endif /* CONFIG_WPS */
54 { "disassoc_imminent", hostapd_cli_cmd_disassoc_imminent, NULL,
55 "= send Disassociation Imminent notification" },
56 { "ess_disassoc", hostapd_cli_cmd_ess_disassoc, NULL,