1 From 0d4900ccd1c7ec5c5ffecf5040f9c07a6a32deef Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Thu, 3 May 2018 13:12:35 +0200
4 Subject: [PATCH 2/2] Revert "wpa_supplicant: Rename wpas_event_*() to
7 This reverts commit 2dd5fbbff884af488870a37e339b4817c83954de.
9 wpa_supplicant/ap.c | 20 ++++++++++----------
10 wpa_supplicant/ap.h | 18 +++++++++---------
11 wpa_supplicant/events.c | 13 ++++++-------
12 3 files changed, 25 insertions(+), 26 deletions(-)
14 --- a/wpa_supplicant/ap.c
15 +++ b/wpa_supplicant/ap.c
16 @@ -1537,8 +1537,8 @@ int wpas_ap_pmksa_cache_add_external(str
20 -void wpas_ap_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
21 - struct dfs_event *radar)
22 +void wpas_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
23 + struct dfs_event *radar)
25 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0])
27 @@ -1550,8 +1550,8 @@ void wpas_ap_event_dfs_radar_detected(st
31 -void wpas_ap_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
32 - struct dfs_event *radar)
33 +void wpas_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
34 + struct dfs_event *radar)
36 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0])
38 @@ -1562,8 +1562,8 @@ void wpas_ap_event_dfs_cac_started(struc
42 -void wpas_ap_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
43 - struct dfs_event *radar)
44 +void wpas_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
45 + struct dfs_event *radar)
47 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0])
49 @@ -1574,8 +1574,8 @@ void wpas_ap_event_dfs_cac_finished(stru
53 -void wpas_ap_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
54 - struct dfs_event *radar)
55 +void wpas_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
56 + struct dfs_event *radar)
58 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0])
60 @@ -1586,8 +1586,8 @@ void wpas_ap_event_dfs_cac_aborted(struc
64 -void wpas_ap_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
65 - struct dfs_event *radar)
66 +void wpas_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
67 + struct dfs_event *radar)
69 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0])
71 --- a/wpa_supplicant/ap.h
72 +++ b/wpa_supplicant/ap.h
73 @@ -89,16 +89,16 @@ int wpas_ap_pmksa_cache_list_mesh(struct
74 char *buf, size_t len);
75 int wpas_ap_pmksa_cache_add_external(struct wpa_supplicant *wpa_s, char *cmd);
77 -void wpas_ap_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
78 - struct dfs_event *radar);
79 -void wpas_ap_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
80 +void wpas_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
81 struct dfs_event *radar);
82 -void wpas_ap_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
83 - struct dfs_event *radar);
84 -void wpas_ap_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
85 - struct dfs_event *radar);
86 -void wpas_ap_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
87 - struct dfs_event *radar);
88 +void wpas_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
89 + struct dfs_event *radar);
90 +void wpas_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
91 + struct dfs_event *radar);
92 +void wpas_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
93 + struct dfs_event *radar);
94 +void wpas_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
95 + struct dfs_event *radar);
97 void ap_periodic(struct wpa_supplicant *wpa_s);
99 --- a/wpa_supplicant/events.c
100 +++ b/wpa_supplicant/events.c
101 @@ -4220,25 +4220,24 @@ void wpa_supplicant_event(void *ctx, enu
103 case EVENT_DFS_RADAR_DETECTED:
105 - wpas_ap_event_dfs_radar_detected(wpa_s,
107 + wpas_event_dfs_radar_detected(wpa_s, &data->dfs_event);
109 case EVENT_DFS_CAC_STARTED:
111 - wpas_ap_event_dfs_cac_started(wpa_s, &data->dfs_event);
112 + wpas_event_dfs_cac_started(wpa_s, &data->dfs_event);
114 case EVENT_DFS_CAC_FINISHED:
116 - wpas_ap_event_dfs_cac_finished(wpa_s, &data->dfs_event);
117 + wpas_event_dfs_cac_finished(wpa_s, &data->dfs_event);
119 case EVENT_DFS_CAC_ABORTED:
121 - wpas_ap_event_dfs_cac_aborted(wpa_s, &data->dfs_event);
122 + wpas_event_dfs_cac_aborted(wpa_s, &data->dfs_event);
124 case EVENT_DFS_NOP_FINISHED:
126 - wpas_ap_event_dfs_cac_nop_finished(wpa_s,
128 + wpas_event_dfs_cac_nop_finished(wpa_s,
131 #endif /* NEED_AP_MLME */
132 #endif /* CONFIG_AP */