diff --git a/meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/fix_num_probereq_cb_clearing.patch b/meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/fix_num_probereq_cb_clearing.patch deleted file mode 100644 index df48d5f99..000000000 --- a/meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/fix_num_probereq_cb_clearing.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 24fd20438f00a6f1bdeb6f23358ef60c2696b488 Mon Sep 17 00:00:00 2001 -From: "Chen, Yi" -Date: Wed, 2 Sep 2015 21:25:01 +0530 -Subject: WPS: Fix num_probereq_cb clearing on DISABLE to avoid segfault - -Reset hapd->num_probereq_cb to 0 on an interface deinit to avoid -unexpected behavior if the same interface is enabled again without fully -freeing the data structures. hostapd_register_probereq_cb() increments -hapd->num_probereq_cb by one and leaves all old values unchanged. In -this deinit+init case, that would result in the first entry in the list -having an uninitialized pointer and the next Probe Request frame -processing would likely cause the process to terminate on segmentation -fault. - -This issue could be hit when hostapd was used with WPS enabled (non-zero -wps_state configuration parameter) and control interface command DISABLE -and ENABLE were used. - -Signed-off-by: Jouni Malinen ---- - src/ap/hostapd.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c -index e4d7bfc..c09c17a 100644 ---- a/src/ap/hostapd.c -+++ b/src/ap/hostapd.c -@@ -261,6 +261,7 @@ static void hostapd_free_hapd_data(struct hostapd_data *hapd) - { - os_free(hapd->probereq_cb); - hapd->probereq_cb = NULL; -+ hapd->num_probereq_cb = 0; - - #ifdef CONFIG_P2P - wpabuf_free(hapd->p2p_beacon_ie); --- -cgit v0.12 - diff --git a/meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/defconfig b/meta-digi-dey/recipes-connectivity/hostapd/hostapd/defconfig similarity index 100% rename from meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/defconfig rename to meta-digi-dey/recipes-connectivity/hostapd/hostapd/defconfig diff --git a/meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/hostapd.conf b/meta-digi-dey/recipes-connectivity/hostapd/hostapd/hostapd.conf similarity index 100% rename from meta-digi-dey/recipes-connectivity/hostapd/hostapd-2.4/hostapd.conf rename to meta-digi-dey/recipes-connectivity/hostapd/hostapd/hostapd.conf diff --git a/meta-digi-dey/recipes-connectivity/hostapd/hostapd_%.bbappend b/meta-digi-dey/recipes-connectivity/hostapd/hostapd_%.bbappend new file mode 100644 index 000000000..08ff287bc --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/hostapd/hostapd_%.bbappend @@ -0,0 +1,13 @@ +# Copyright (C) 2016,2017 Digi International. + +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +SRC_URI += "file://hostapd.conf" + +do_install_append() { + # Overwrite the default hostapd.conf with our custom file + install -m 0644 ${WORKDIR}/hostapd.conf ${D}${sysconfdir} +} + +# Do not autostart hostapd daemon, it will conflict with wpa-supplicant. +INITSCRIPT_PARAMS = "remove" diff --git a/meta-digi-dey/recipes-connectivity/hostapd/hostapd_2.4.bbappend b/meta-digi-dey/recipes-connectivity/hostapd/hostapd_2.4.bbappend deleted file mode 100644 index 5233799ab..000000000 --- a/meta-digi-dey/recipes-connectivity/hostapd/hostapd_2.4.bbappend +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2016 Digi International. - -FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:" - -# The recipe uses a different "$S" directory so point the patch to the hostapd -# tarball directory. -SRC_URI += " \ - file://fix_num_probereq_cb_clearing.patch;patchdir=.. \ - file://hostapd.conf \ -" - -do_install_append() { - # Overwrite the default hostapd.conf with our custom file - install -m 0644 ${WORKDIR}/hostapd.conf ${D}${sysconfdir}/hostapd.conf -} - -# Do not autostart hostapd daemon, it will conflict with wpa-supplicant. -INITSCRIPT_PARAMS = "remove"