X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fhostapd%2Fpatches%2F500-scan_wait.patch;h=d4c5938de20a6f8b7b560c8f5308b3575d752900;hp=7f1c749b35fb5141b59021b9c3c0cf1fec517ae0;hb=6278df8bf9d3b1bc8445d291eac698edce6a5e07;hpb=3894e48dd16a2138c9cc4900dafd5c8eb28bb7be diff --git a/package/hostapd/patches/500-scan_wait.patch b/package/hostapd/patches/500-scan_wait.patch index 7f1c749b3..d4c5938de 100644 --- a/package/hostapd/patches/500-scan_wait.patch +++ b/package/hostapd/patches/500-scan_wait.patch @@ -10,7 +10,7 @@ /* hostapd.c */ --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c -@@ -790,6 +790,9 @@ int hostapd_setup_interface_complete(str +@@ -807,6 +807,9 @@ int hostapd_setup_interface_complete(str wpa_printf(MSG_DEBUG, "%s: Setup of interface done.", iface->bss[0]->conf->iface); @@ -31,7 +31,7 @@ struct hapd_interfaces { -@@ -163,6 +165,15 @@ static void hostapd_logger_cb(void *ctx, +@@ -163,6 +165,16 @@ static void hostapd_logger_cb(void *ctx, } #endif /* CONFIG_NO_HOSTAPD_LOGGER */ @@ -42,12 +42,13 @@ + return -1; + } + daemonize = 0; ++ return 0; +} + /** * hostapd_init - Allocate and initialize per-interface data -@@ -184,6 +195,7 @@ static struct hostapd_iface * hostapd_in +@@ -184,6 +196,7 @@ static struct hostapd_iface * hostapd_in if (hapd_iface == NULL) goto fail; @@ -55,7 +56,7 @@ hapd_iface->reload_config = hostapd_reload_config; hapd_iface->config_read_cb = hostapd_config_read; hapd_iface->config_fname = os_strdup(config_file); -@@ -399,7 +411,7 @@ static int hostapd_global_init(struct ha +@@ -399,7 +412,7 @@ static int hostapd_global_init(struct ha } @@ -64,7 +65,7 @@ { #ifdef EAP_SERVER_TNC tncs_global_deinit(); -@@ -419,8 +431,7 @@ static void hostapd_global_deinit(const +@@ -419,8 +432,7 @@ static void hostapd_global_deinit(const } @@ -74,7 +75,7 @@ { #ifdef EAP_SERVER_TNC int tnc = 0; -@@ -441,11 +452,6 @@ static int hostapd_global_run(struct hap +@@ -441,11 +453,6 @@ static int hostapd_global_run(struct hap } #endif /* EAP_SERVER_TNC */ @@ -86,7 +87,7 @@ eloop_run(); return 0; -@@ -501,8 +507,7 @@ int main(int argc, char *argv[]) +@@ -501,8 +508,7 @@ int main(int argc, char *argv[]) struct hapd_interfaces interfaces; int ret = 1; size_t i; @@ -96,7 +97,7 @@ const char *log_file = NULL; if (os_program_init()) -@@ -576,7 +581,7 @@ int main(int argc, char *argv[]) +@@ -576,7 +582,7 @@ int main(int argc, char *argv[]) goto out; } @@ -105,7 +106,7 @@ goto out; ret = 0; -@@ -587,7 +592,7 @@ int main(int argc, char *argv[]) +@@ -587,7 +593,7 @@ int main(int argc, char *argv[]) hostapd_interface_deinit_free(interfaces.iface[i]); os_free(interfaces.iface); @@ -127,7 +128,7 @@ } else if (os_strcmp(buf, "ht_capab") == 0) { --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h -@@ -389,6 +389,7 @@ struct hostapd_config { +@@ -390,6 +390,7 @@ struct hostapd_config { int ht_op_mode_fixed; u16 ht_capab;