[rdkb][common][bsp][Refactor hostapd and wpa-supplicant bb file]

[Description]
Refactor hostapd and wpa-supplicant bb file
1. due to align ucode ,hostapd and wpa-supplicant should depend on libnl-tiny not libnl.
otherwise hostapd with ucode will crash at bootup

[Release-log]

Change-Id: If8d1589b1c059633abd3a00bc4e8a021a14c84b8
diff --git a/recipes-wifi/wpa-supplicant/wpa-supplicant_2.10.3.bb b/recipes-wifi/wpa-supplicant/wpa-supplicant_2.10.3.bb
index 76c69a7..e23b9c3 100644
--- a/recipes-wifi/wpa-supplicant/wpa-supplicant_2.10.3.bb
+++ b/recipes-wifi/wpa-supplicant/wpa-supplicant_2.10.3.bb
@@ -6,7 +6,7 @@
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://hostapd/README;md5=c905478466c90f1cefc0df987c40e172"
 
-DEPENDS = "dbus libnl ubus ucode"
+DEPENDS = "dbus libnl-tiny ubus ucode"
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 FILESEXTRAPATHS_prepend := "${THISDIR}/files/patches-${PV}:"
 
@@ -64,7 +64,8 @@
 
 	# RDKB
 	echo "CONFIG_BUILD_WPA_CLIENT_SO=y" >> wpa_supplicant/.config
-
+	echo "CFLAGS +=-I${STAGING_INCDIR}/libnl-tiny -D_GNU_SOURCE" >> wpa_supplicant/.config
+	echo "DRV_CFLAGS +=-I${STAGING_INCDIR}/libnl-tiny" >> wpa_supplicant/.config
 	# mtk add
 	echo "CONFIG_MBO=y" >> wpa_supplicant/.config
 	echo "CONFIG_WPS_UPNP=y" >> wpa_supplicant/.config
@@ -87,6 +88,8 @@
 	echo "CONFIG_HE_OVERRIDES=y" >> wpa_supplicant/.config
 	echo "CONFIG_EHT_OVERRIDES=y" >> wpa_supplicant/.config
 	echo "CONFIG_UCODE=y" >> wpa_supplicant/.config
+	echo "CONFIG_LIBNL20=y" >> wpa_supplicant/.config
+	echo "CONFIG_LIBNL_TINY=y" >> wpa_supplicant/.config
 }
 
 do_compile () {