[rdkb][common][app][Refactor tdk to support tri-band]

[Description]
Refactor tdk to support tri-band and runtime get radio band number.

[Release-log]
N/A

Change-Id: If06ef106feb258c66d3b9fb810067b1623ca8701
diff --git a/recipes-extended/tdkb/tdk-b.bbappend b/recipes-extended/tdkb/tdk-b.bbappend
index 602c1be..41a7c58 100644
--- a/recipes-extended/tdkb/tdk-b.bbappend
+++ b/recipes-extended/tdkb/tdk-b.bbappend
@@ -6,9 +6,11 @@
 do_fetch[vardeps] += "SRCREV_tdkbturris"
 SRCREV_FORMAT = "tdk_tdkbturris"
 
-FILESEXTRAPATHS_prepend := "${THISDIR}:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
-SRC_URI += "file://*.patch;apply=no"
+SRC_URI += "file://*.patch;apply=no \
+    file://Set_properties.sh;subdir=git \
+"
 
 do_mtk_patches() {
     cd ${S}
@@ -24,19 +26,7 @@
     install -d ${D}/etc
     install -p -m 755 ${S}/platform/turris/agent/scripts/*.sh ${D}${tdkdir}
     install -p -m 755 ${S}/platform/turris/agent/scripts/tdk_platform.properties ${D}/etc/
-
-    sed -i "s/\(AP_IF_NAME_2G *= *\).*/\1wifi0/" ${D}/etc/tdk_platform.properties
-    sed -i "s/\(AP_IF_NAME_5G *= *\).*/\1wifi1/" ${D}/etc/tdk_platform.properties
-    sed -i "s/\(RADIO_IF_2G *= *\).*/\1wlan0/" ${D}/etc/tdk_platform.properties
-    sed -i "s/\(RADIO_IF_5G *= *\).*/\1wlan1/" ${D}/etc/tdk_platform.properties
-    echo "DEFAULT_CHANNEL_BANDWIDTH=20MHz,20MHz" >> ${D}/etc/tdk_platform.properties
-    echo "APINDEX_2G_PUBLIC_WIFI=0" >> ${D}/etc/tdk_platform.properties
-    echo "APINDEX_5G_PUBLIC_WIFI=1" >> ${D}/etc/tdk_platform.properties
-    echo "RADIO_MODES_2G=n:11NGHT40MINUS:4,n:11NGHT40MINUS:8,ax:11AXHE40MINUS:32,ax:11AXHE40MINUS:0" >> ${D}/etc/tdk_platform.properties
-    echo "RADIO_MODES_5G=ac:11ACVHT80:16,n:11NAHT40MINUS:8,ax:11AXHE80:32,ax:11AXHE80:0" >> ${D}/etc/tdk_platform.properties
-    echo "getAp0DTIMInterval=1" >> ${D}/etc/tdk_platform.properties
-    echo "getAp1DTIMInterval=1" >> ${D}/etc/tdk_platform.properties
-
+    install -p -m 755 ${S}/Set_properties.sh ${D}${tdkdir}
 }
 
 FILES_${PN} += "${prefix}/ccsp/"