X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/225812219e043068663d61b472d57714fa541a0c..c96723ae75c8eed3057200151c8d03adba062840:/package/hostapd/patches/452-ctrl_iface_reload.patch diff --git a/package/hostapd/patches/452-ctrl_iface_reload.patch b/package/hostapd/patches/452-ctrl_iface_reload.patch index e07ab6d44..cf972fe8e 100644 --- a/package/hostapd/patches/452-ctrl_iface_reload.patch +++ b/package/hostapd/patches/452-ctrl_iface_reload.patch @@ -1,14 +1,14 @@ --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c -@@ -35,6 +35,7 @@ - #include "ap/wps_hostapd.h" - #include "ap/ctrl_iface_ap.h" +@@ -33,6 +33,7 @@ + #include "wps/wps.h" + #include "config_file.h" #include "ctrl_iface.h" +#include "config_file.h" struct wpa_ctrl_dst { -@@ -45,6 +46,7 @@ struct wpa_ctrl_dst { +@@ -43,6 +44,7 @@ struct wpa_ctrl_dst { int errors; }; @@ -16,9 +16,9 @@ static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level, const char *buf, size_t len); -@@ -315,6 +317,66 @@ static int hostapd_ctrl_iface_wps_oob(st - #endif /* CONFIG_WPS_OOB */ - #endif /* CONFIG_WPS */ +@@ -152,6 +154,66 @@ static int hostapd_ctrl_iface_new_sta(st + return 0; + } +static int hostapd_ctrl_iface_set_down(struct hostapd_data *hapd) +{ @@ -81,9 +81,9 @@ + iface->config_read_cb = hostapd_config_read; +} - static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx, - void *sock_ctx) -@@ -379,6 +441,10 @@ static void hostapd_ctrl_iface_receive(i + #ifdef CONFIG_IEEE80211W + #ifdef NEED_AP_MLME +@@ -710,6 +772,10 @@ static void hostapd_ctrl_iface_receive(i reply_len += res; } #endif /* CONFIG_NO_RADIUS */