diff --git
a/meta-oe/recipes-connectivity/hostapd/hostap-daemon-1.0/defconfig
b/meta-oe/recipes-connectivity/hostapd/hostap-daemon-1.0/defconfig
index 1f3c6f4..2789640 100644
--- a/meta-oe/recipes-connectivity/hostapd/hostap-daemon-1.0/defconfig
+++ b/meta-oe/recipes-connectivity/hostapd/hostap-daemon-1.0/defconfig
@@ -24,7 +24,7 @@ CONFIG_DRIVER_PRISM54=y
 
 # Driver interface for drivers using the nl80211 kernel interface
CONFIG_DRIVER_NL80211=y -CONFIG_LIBNL20=y
+CONFIG_LIBNL32=y
 # driver_nl80211.c requires a rather new libnl (version 1.1) which may not
be  # shipped with your distribution yet. If that is the case, you need to
build  # newer libnl version and point the hostapd build to use it.
diff --git a/meta-oe/recipes-connectivity/hostapd/hostap-daemon_1.0.bb
b/meta-oe/recipes-connectivity/hostapd/hostap-daemon_1.0.bb
index 310e8aa..e62531f 100644
--- a/meta-oe/recipes-connectivity/hostapd/hostap-daemon_1.0.bb
+++ b/meta-oe/recipes-connectivity/hostapd/hostap-daemon_1.0.bb
@@ -26,6 +26,7 @@ do_configure() {
 }
 
 do_compile() {
+	export CFLAGS="-MMD -O2 -Wall -g -I${STAGING_INCDIR}/libnl3"
 	make
 }
 
