[rdk-b][common][bsp][Refactor and sync kernel/wifi from Openwrt]

[Description]
Refactor and sync kernel/wifi from Openwrt
1. eagle build hostapd-2.10.3(not real,just id for new mt76)

[Release-log]
N/A

diff --git a/conf/machine/filogic880.conf b/conf/machine/filogic880.conf
index 4e2f2af..1563f49 100644
--- a/conf/machine/filogic880.conf
+++ b/conf/machine/filogic880.conf
@@ -30,8 +30,8 @@
 #PREFERRED_VERSION_wpa-supplicant = "2.11"
 PREFERRED_VERSION_linux-mac80211 = "6.%"
 PREFERRED_VERSION_linux-mt76 = "3.%"
-PREFERRED_VERSION_hostapd = "2.10"
-PREFERRED_VERSION_wpa-supplicant = "2.10"
+PREFERRED_VERSION_hostapd = "2.10.3"
+PREFERRED_VERSION_wpa-supplicant = "2.10.3"
 #PREFERRED_VERSION_linux-mac80211 = "5.15.%"
 #PREFERRED_VERSION_linux-mt76 = "2.%"
 
diff --git a/mtk_scripts/filogic-sync-openwrt-wifi.sh b/mtk_scripts/filogic-sync-openwrt-wifi.sh
index 72cbbd4..01ffe58 100755
--- a/mtk_scripts/filogic-sync-openwrt-wifi.sh
+++ b/mtk_scripts/filogic-sync-openwrt-wifi.sh
@@ -191,4 +191,20 @@
 #rm -rf meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x/*revert-for-backports*.patch
 #sed -i 's/4003-mt76-revert-for-backports-5.15-wireless-stack.patch/&;apply=no/' meta-filogic/recipes-wifi/linux-mt76/files/patches-3.x/patches.inc
 
+echo "gen new hostapd patches for mt76_3.x"
+cp meta-cmf-filogic/mtk_scripts/rdkb_inc_helper mac80211_package/package/network/services/hostapd
+cd mac80211_package/package/network/services/hostapd
+rm -rf patches/999*mtk*.patch
+./rdkb_inc_helper patches
+mv patches.inc patches
+echo "some patch do not apply to RDKB"
+sed -i 's/450-scan_wait.patch/&;apply=no/' patches/patches.inc
+#define new hostapd version
+new_hostapd_ver=2.10.3
+cd -
+rm -rf meta-filogic/recipes-wifi/hostapd/files/patches-${new_hostapd_ver}
+rm -rf meta-filogic/recipes-wifi/wpa-supplicant/files/patches-${new_hostapd_ver}
+cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/hostapd/files/patches-${new_hostapd_ver}
+cp -rf mac80211_package/package/network/services/hostapd/patches meta-filogic/recipes-wifi/wpa-supplicant/files/patches-${new_hostapd_ver}
+
 echo "Sync from OpenWRT done , ready to commit meta-filogic!!!"