Merge "[Bugfix][API-1423]Fix the problem that oemapp is not mounted-- mtk patch" into GSW3.0-No-Connman
diff --git a/meta/meta-mediatek-mt2735/recipes-kernel/modules/files/wg870_drv_insmod.sh b/meta/meta-mediatek-mt2735/recipes-kernel/modules/files/wg870_drv_insmod.sh
index edb3f18..2515181 100755
--- a/meta/meta-mediatek-mt2735/recipes-kernel/modules/files/wg870_drv_insmod.sh
+++ b/meta/meta-mediatek-mt2735/recipes-kernel/modules/files/wg870_drv_insmod.sh
@@ -18,7 +18,14 @@
 	nvram_file=/etc/wg870/cyw989570fcref_rev1.58.txt
 fi
 
-insmod /lib/modules/4.19.98/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko firmware_path=/etc/wg870/config_pcie.trxse nvram_path=$nvram_file clm_path=/etc/wg870/89570_mobiltek_ivi_v4.clm_blob || exit 1
+DebugFwTest="/data/DebugFw.trxse"
+if [ -f $DebugFwTest ]; then
+	        echo insmod wg870 debug DebugFw.trxse
+                insmod /data/bcmdhd.ko firmware_path=$DebugFwTest nvram_path=$nvram_file clm_path=/etc/wg870/89570_mobiltek_ivi_v4.clm_blob || exit 1
+        else
+                echo insmod wg870 driver
+                insmod /lib/modules/4.19.98/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko firmware_path=/etc/wg870/config_pcie.trxse nvram_path=$nvram_file clm_path=/etc/wg870/89570_mobiltek_ivi_v4.clm_blob || exit 1
+fi
 
 wpa_supplicant -g/var/run/wpa_wlan0_cmd -dd -t -u &