Add basic change for v1453

Change-Id: I9497a61bbc3717f66413794a4e7dee0347c0bc33
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_eary b/mbtk/rootfs/etc/init.d/mbtk_boot_eary
new file mode 100755
index 0000000..e1ab3b6
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_eary
@@ -0,0 +1,109 @@
+#!/bin/sh
+
+#MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null`
+project=`cat /etc/mbtk_project`
+
+mbtk_start() {
+	echo "start : $1" > /dev/kmsg
+	
+	if [ -e $1 ];then
+		# stdout and stderr > /dev/null
+		#$@ &> /dev/null &
+		(while ! $@ &> /dev/null;           do echo "Restarting $@ ...";               done) &
+	fi
+}
+
+start_service() {
+	echo "--mbtk eary boot start--" > /dev/kmsg
+#	mbtk_start /bin/mbtk_test
+#	mbtk_start /bin/mbtk_test "eary" 123
+    # ɾ³ýÉÏ´Îgnss ÐÇÀú
+    if [ -f /etc/mbtk/rtm.bin ]
+    then
+	    echo "--mbtk eary boot rtm.bin " > /dev/kmsg
+        rm /etc/mbtk/rtm.bin
+    fi
+
+	mbtk_start /bin/mbtk_rild
+	
+	if [ -f /bin/mbtk_sdk_ready ]
+	then
+		mbtk_start /bin/mbtk_sdk_ready
+		echo "--mbtk platform mbtk_sdk_ready start--" > /dev/kmsg
+	fi
+	
+	if [ "$project" == "T108_2" ];then
+		i2cset -y -f 2 0x31 0x15 0x00
+		mbtk_start /bin/mbtk_gnssd 8122 /dev/ttyS3 0
+	elif [ "$project" == "L508_X6" ];then
+		mbtk_start /bin/mbtk_gnssd 5311 /dev/ttyS3 255
+	else
+		# Only auto open gnss but not open any port.
+		mbtk_start /bin/mbtk_gnssd 5311 /dev/ttyS2 255
+	fi
+
+	if [ "$project" == "L508_X6" -o "$project" == "L509" ]
+	then
+		#echo "$project"
+		i2cset -y -f 2 0x32 0x0d 0x00
+	fi
+
+	if [ "$project" == "T108_2" ]
+	then
+		i2cset -y -f 2 0x31 0x15 0x00
+	fi
+	echo "--mbtk eary boot end--" > /dev/kmsg
+}
+
+sleep_init()
+{
+	if [ -e /sys/devices/soc.0/d4000000.apb/mbtk-dev-op/gps_power ]
+	then
+		echo off  > /sys/devices/soc.0/d4000000.apb/mbtk-dev-op/gps_power
+	else
+		echo "/sys/devices/soc.0/d4000000.apb/mbtk-dev-op/gps_power can not write." > /dev/kmsg
+	fi
+	
+	if [ -e /sys/kernel/debug/spk_shdn_gpio ]
+	then
+		echo 0 > /sys/kernel/debug/spk_shdn_gpio
+	else
+		echo "/sys/kernel/debug/spk_shdn_gpio can not write." > /dev/kmsg
+	fi
+	
+	if [ -e /sys/devices/asr-rfkill.0/pwr_ctrl ]
+	then
+		echo 1 > /sys/devices/asr-rfkill.0/pwr_ctrl
+		sleep 1
+		echo 0 > /sys/devices/asr-rfkill.0/pwr_ctrl
+	else
+		echo "/sys/devices/asr-rfkill.0/pwr_ctrl can not write." > /dev/kmsg
+	fi
+
+	case "$project" in
+		PN1803)
+			echo 4 > /sys/class/gpio/export
+			echo out > /sys/class/gpio/gpio4/direction
+			echo 0 > /sys/class/gpio/gpio4/value
+			;;
+		L509)
+			echo 5 > /sys/class/gpio/export
+			echo out > /sys/class/gpio/gpio5/direction
+			echo 0 > /sys/class/gpio/gpio5/value
+			
+			echo 8 > /sys/class/gpio/export
+			echo out > /sys/class/gpio/gpio8/direction
+			echo 1 > /sys/class/gpio/gpio8/value
+			;;
+	esac
+	
+	if [ "$project" == "PN1803" -o "$project" == "L508" -o "$project" == "L509"]
+	then
+		echo 118 > /sys/class/gpio/export
+		echo out > /sys/class/gpio/gpio118/direction
+		echo 0 > /sys/class/gpio/gpio118/value
+	fi
+}
+
+start_service
+sleep_init
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_last b/mbtk/rootfs/etc/init.d/mbtk_boot_last
new file mode 100755
index 0000000..e660b6c
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_last
@@ -0,0 +1,28 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2011 OpenWrt.org
+
+START=98
+USE_PROCD=1
+
+#MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null`
+
+mbtk_start() {
+	echo "start : $1" > /dev/kmsg
+
+	if [ -e $1 ];then
+		procd_open_instance
+		procd_set_param command $@
+		procd_close_instance
+	fi
+}
+
+start_service() {
+	echo "--mbtk last boot start--" > /dev/kmsg
+#	mbtk_start /bin/mbtk_test
+#	mbtk_start /bin/mbtk_test "last" 123
+	
+	[ -e /bin/mbtk_otad ] && mbtk_start /bin/mbtk_otad -a fota
+	
+	echo "--mbtk last boot end--" > /dev/kmsg
+}
+
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_net_ready b/mbtk/rootfs/etc/init.d/mbtk_boot_net_ready
new file mode 100755
index 0000000..f00b0c2
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_net_ready
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+mbtk_start() {
+	echo "start : $1" > /dev/kmsg
+	
+	if [ -e $1 ];then
+		# stdout and stderr > /dev/null
+		#$@ &> /dev/null &
+		(while ! $@ &> /dev/null;           do echo "Restarting $@ ...";               done) &
+	fi
+}
+
+start_service() {
+	echo "--mbtk net ready boot start--" > /dev/kmsg
+
+	#mbtk_start /bin/mbtk_info_test
+
+
+	echo "--mbtk net ready boot end--" > /dev/kmsg
+}
+
+start_service
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_normal b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
new file mode 100755
index 0000000..5925837
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
@@ -0,0 +1,36 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2011 OpenWrt.org
+
+START=15
+USE_PROCD=1
+
+#MBTK_ADB=`getprop persist.mbtk.adb 2> /dev/null`
+
+mbtk_start() {
+	echo "start : $1" > /dev/kmsg
+
+	procd_open_instance
+	procd_set_param command $@
+	procd_close_instance
+}
+
+mbtk_start_with_try() {
+	echo "start_with_try : $1" > /dev/kmsg
+
+	procd_open_instance
+	procd_set_param command $@
+	procd_set_param respawn 3600 3 0
+	procd_close_instance
+}
+
+start_service() {
+	echo "--mbtk normal boot start--" > /dev/kmsg
+#	mbtk_start /bin/mbtk_test
+#	mbtk_start /bin/mbtk_test "normal" 123
+	
+	[ -e /bin/mbtk_adbd ] && mbtk_start /bin/mbtk_adbd
+	[ -e /bin/mbtk_servicesd ] && mbtk_start_with_try /bin/mbtk_servicesd
+	
+	echo "--mbtk normal boot end--" > /dev/kmsg
+}
+
diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_server_ready b/mbtk/rootfs/etc/init.d/mbtk_boot_server_ready
new file mode 100755
index 0000000..7d50c92
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_server_ready
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+mbtk_start() {
+	echo "start : $1" > /dev/kmsg
+	
+	if [ -e $1 ];then
+		# stdout and stderr > /dev/null
+		#$@ &> /dev/null &
+		(while ! $@ &> /dev/null;           do echo "Restarting $@ ...";               done) &
+	fi
+}
+
+start_service() {
+	echo "--mbtk server ready boot start--" > /dev/kmsg
+
+	#mbtk_start /bin/mbtk_info_test
+	#mbtk_start /bin/mbtk_logd
+
+	echo "--mbtk server ready boot end--" > /dev/kmsg
+}
+
+start_service
diff --git a/mbtk/rootfs/etc/init.d/mbtk_platform_version b/mbtk/rootfs/etc/init.d/mbtk_platform_version
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/mbtk/rootfs/etc/init.d/mbtk_platform_version
diff --git a/mbtk/rootfs/etc/jacana_fw.bin b/mbtk/rootfs/etc/jacana_fw.bin
new file mode 100755
index 0000000..8685cc4
--- /dev/null
+++ b/mbtk/rootfs/etc/jacana_fw.bin
Binary files differ
diff --git a/mbtk/rootfs/etc/jacana_pvt.bin b/mbtk/rootfs/etc/jacana_pvt.bin
new file mode 100755
index 0000000..c97c12f
--- /dev/null
+++ b/mbtk/rootfs/etc/jacana_pvt.bin
Binary files differ
diff --git a/mbtk/rootfs/etc/mbtk/mbtk_log.json b/mbtk/rootfs/etc/mbtk/mbtk_log.json
new file mode 100755
index 0000000..663c923
--- /dev/null
+++ b/mbtk/rootfs/etc/mbtk/mbtk_log.json
@@ -0,0 +1,114 @@
+{
+    "logd": "enable",
+
+    /* (mandatory) alternate ring buffer list */
+    "buffer_list" :
+    [
+        {
+            "enable": 1,
+            /* (mandatory) alternate ring buffer name, 'main', 'system', 'events' */
+            "name" : "syslog",
+            /* log output format : log type, time, pid, tid, tag, msg */
+            /* log type : k->kernel, e->events, s->system, m->main */
+            /* (mandatory) log file path */
+            "log_file":"/var/log/sys_log.txt",
+            "emmc_protect": 0,
+            /* (optional) remote server ip and port */
+            /* "log_stream":"118.114.239.159:30177", */
+
+            /* (optional) rotate log every kbytes, default is unlimit */
+            "rotate_file_size":  1024,
+            /* (optional) max number of rotated logs,  -1 is unlimit */
+            "rotate_file_count": 5,
+
+            /* (optional) log format, default or csv */
+            "log_format":"default",
+            /* (mandatory) filter */
+            "filter_list" :
+            [
+                {
+                    /* (optional) priority, 'v(VERBOSE)', 'd(DEBUG)', 'i(INFO)', 'w(WARN)',  'e(ERROR)', 'f(FATAL)', '*(all)' */
+                    "priority":"d"
+                },
+                {
+                    "tag":"gnss_test",
+                    "priority":"*"
+                }
+            ]
+        },
+        {
+            "enable": 1,
+            "name" : "radio",
+            /* (mandatory) log file path */
+            "log_file":"/tmp/log/radio_log.txt",
+	    "emmc_protect": 0,
+            /* (optional) rotate log every kbytes, default is unlimit */
+            "rotate_file_size":  1024,
+            /* (optional) max number of rotated logs, -1 is unlimit */
+            "rotate_file_count": 8,
+
+            /* (optional) log format, default or csv */
+            "log_format":"default",
+            "filter_list" :
+            [
+                {
+                    "tag":"mbtk_api",
+                    "priority":"*"
+                },
+				{
+                    "tag":"MBTK_RIL",
+                    "priority":"*"
+                },
+				{
+                    "tag":"tcp_cli",
+                    "priority":"*"
+                },
+                {
+                    "priority":"e"
+                }
+            ]
+        },
+        {
+            "enable": 0,
+            "name" : "/dev/ttyS1",
+            /* (mandatory) log file path */
+            "log_file":"/tmp/log/uart_log.txt",
+	    "emmc_protect": 0,
+            /* (optional) rotate log every kbytes, default is unlimit */
+            "rotate_file_size":  8,
+            /* (optional) max number of rotated logs, -1 is unlimit */
+            "rotate_file_count": 8,
+
+            /* (optional) log format, default or csv */
+            "log_format":"default",
+            "filter_list" :
+            [
+                {
+                    "tag":"mbtk_uart",
+                    "priority":"*"
+                }
+            ]
+        },
+        {
+            "enable": 0,
+            "name" : "local_socket",
+            /* (mandatory) log file path */
+            "log_file":"/tmp/log/signal_log.txt",
+	    "emmc_protect": 0,
+            /* (optional) rotate log every kbytes, default is unlimit */
+            "rotate_file_size":  8,
+            /* (optional) max number of rotated logs, -1 is unlimit */
+            "rotate_file_count": 8,
+
+            /* (optional) log format, default or csv */
+            "log_format":"default",
+            "filter_list" :
+            [
+                {
+                    "tag":"mbtk_socket",
+                    "priority":"*"
+                }
+            ]
+        }
+    ]
+}
diff --git a/mbtk/rootfs/etc/mbtk_project b/mbtk/rootfs/etc/mbtk_project
new file mode 100755
index 0000000..01e912b
--- /dev/null
+++ b/mbtk/rootfs/etc/mbtk_project
@@ -0,0 +1 @@
+T108_2
diff --git a/mbtk/rootfs/etc/mbtk_wifi.sh b/mbtk/rootfs/etc/mbtk_wifi.sh
new file mode 100755
index 0000000..eef87de
--- /dev/null
+++ b/mbtk/rootfs/etc/mbtk_wifi.sh
@@ -0,0 +1,171 @@
+#!/bin/sh
+
+STA_NET_CONF=/etc/wifi/sta_network.conf
+
+function help()
+{
+	echo "mbtk_wifi.sh ap/sta start/stop"
+}
+
+function wifi_check()
+{
+	if [ ! -f /etc/wifi/aic8800_bsp.ko ];then
+		echo "No found file: /etc/wifi/aic8800_bsp.ko"
+		exit 1
+	fi
+	
+	if [ ! -f /etc/wifi/aic8800_fdrv.ko ];then
+		echo "No found file: /etc/wifi/aic8800_fdrv.ko"
+		exit 1
+	fi
+	
+	if [ ! -f /etc/wifi/hostapd.conf ];then
+		echo "No found file: /etc/wifi/hostapd.conf"
+		exit 1
+	fi
+	
+	if [ ! -f /etc/wifi/wpa_supplicant.conf ];then
+		echo "No found file: /etc/wifi/wpa_supplicant.conf"
+		exit 1
+	fi
+	
+	if [ ! -f $STA_NET_CONF ];then
+		echo "No found file: $STA_NET_CONF"
+		exit 1
+	fi
+}
+
+function driver_insmod()
+{
+	cfg80211_insmod=`lsmod | grep cfg80211`
+	if [ -z "$cfg80211_insmod" ];then
+		modprobe cfg80211
+	else
+		echo "cfg80211 has insmod."
+	fi
+	
+	aic8800_bsp_insmod=`lsmod | grep aic8800_bsp`
+	if [ -z "$aic8800_bsp_insmod" ];then
+		insmod /etc/wifi/aic8800_bsp.ko sdio_f0=0 sdio_clk=150000000
+	else
+		echo "aic8800_bsp has insmod."
+	fi
+	
+	aic8800_fdrv_insmod=`lsmod | grep aic8800_fdrv`
+	if [ -z "$aic8800_fdrv_insmod" ];then
+		insmod /etc/wifi/aic8800_fdrv.ko
+	else
+		echo "aic8800_fdrv has insmod."
+	fi
+}
+
+function driver_rmmod()
+{
+	aic8800_fdrv_insmod=`lsmod | grep aic8800_fdrv`
+	if [ -z "$aic8800_fdrv_insmod" ];then
+		echo "aic8800_fdrv not insmod."
+	else
+		rmmod aic8800_fdrv
+	fi
+	
+	aic8800_bsp_insmod=`lsmod | grep aic8800_bsp`
+	if [ -z "$aic8800_bsp_insmod" ];then
+		echo "aic8800_bsp not insmod."
+	else
+		rmmod aic8800_bsp
+	fi
+	
+	cfg80211_insmod=`lsmod | grep cfg80211`
+	if [ -z "$cfg80211_insmod" ];then
+		echo "cfg80211 not insmod."
+	else
+		rmmod cfg80211
+	fi
+}
+
+function wifi_ap_start()
+{
+	hostapd /etc/wifi/hostapd.conf -B
+	sleep 5s
+	
+	brctl addif br-lan wlan0
+	iptables -t nat -A POSTROUTING -o ccinet0 -j MASQUERADE --random
+}
+
+function wifi_ap_stop()
+{
+	killall hostapd
+}
+
+function wifi_sta_start()
+{
+	wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wifi/wpa_supplicant.conf -B
+	sleep 5s
+	
+	SSID=`cat $STA_NET_CONF | grep -w 'SSID'   | cut -d '=' -f 2`
+	PASSWORD=`cat $STA_NET_CONF | grep -w 'PASSWORD'   | cut -d '=' -f 2`
+	prefix=\"
+	subfix=\"
+	str1=$prefix$SSID$subfix
+	str2=$prefix$PASSWORD$subfix
+	
+	echo "SSID = $str1"
+	echo "PSK = $str2"
+
+	wpa_cli -p/var/run/wpa_supplicant remove_network 0
+	wpa_cli -p/var/run/wpa_supplicant ap_scan 1
+	wpa_cli -p/var/run/wpa_supplicant add_network
+	wpa_cli -p/var/run/wpa_supplicant set_network 0 ssid $str1
+	wpa_cli -p/var/run/wpa_supplicant set_network 0 key_mgmt WPA-PSK
+	wpa_cli -p/var/run/wpa_supplicant set_network 0 psk $str2
+	wpa_cli -p/var/run/wpa_supplicant select_network 0
+
+	udhcpc -i wlan0
+}
+
+function wifi_sta_stop()
+{
+	killall wpa_supplicant
+}
+
+wifi_check
+
+if [ -n "$2" ] ;then	#有参数
+	case "$1" in
+		ap)
+			case "$2" in
+				start)
+					driver_insmod
+					
+					wifi_ap_start
+					;;
+				stop)
+					wifi_ap_stop
+					;;
+				*)
+					help
+					;;
+			esac
+			;;
+		sta)
+			case "$2" in
+				start)
+					driver_insmod
+					
+					wifi_sta_start
+					;;
+				stop)
+					wifi_sta_stop
+					;;
+				*)
+					help
+					;;
+			esac
+			;;
+		*)
+            help
+			;;
+	esac
+else
+	help
+fi
\ No newline at end of file
diff --git a/mbtk/rootfs/etc/wifi/hostapd.accept b/mbtk/rootfs/etc/wifi/hostapd.accept
new file mode 100755
index 0000000..4331b6f
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/hostapd.accept
@@ -0,0 +1 @@
+DC:10:57:AA:BB:DF
\ No newline at end of file
diff --git a/mbtk/rootfs/etc/wifi/hostapd.conf b/mbtk/rootfs/etc/wifi/hostapd.conf
new file mode 100755
index 0000000..cdcdab7
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/hostapd.conf
@@ -0,0 +1,36 @@
+interface=wlan0
+#bridge=br0
+ssid=mbtk
+hw_mode=a
+channel=36
+auth_algs=1
+driver=nl80211
+wme_enabled=1
+wpa=2
+wpa_passphrase=12345678
+ieee80211n=1
+ieee80211ac=1
+ieee80211ax=1
+#ieee80211w=2
+vht_oper_chwidth=1
+vht_oper_centr_freq_seg0_idx=42
+#vht_oper_centr_freq_seg1_idx=4
+he_oper_chwidth=1
+he_oper_centr_freq_seg0_idx=42
+#he_oper_centr_freq_seg1_idx=8
+he_basic_mcs_nss_set=65534
+he_su_beamformee=1
+he_twt_required=0
+vht_capab=[SHORT-GI-80][VHT40+][VHT40-][MAX-A-MPDU-LEN-EXP7][RX-STBC-1][RX-LDPC]
+ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+][HT40-][LDPC][RX-STBC1]
+#wpa_key_mgmt=SAE
+wpa_key_mgmt=WPA-PSK
+rsn_pairwise=CCMP
+ignore_broadcast_ssid=0
+country_code=CN
+max_num_sta=32
+macaddr_acl=0
+deny_mac_file=/etc/wifi/hostapd.deny
+accept_mac_file=/etc/wifi/hostapd.accept
+ctrl_interface=/var/run/hostapd
+
diff --git a/mbtk/rootfs/etc/wifi/hostapd.deny b/mbtk/rootfs/etc/wifi/hostapd.deny
new file mode 100755
index 0000000..4331b6f
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/hostapd.deny
@@ -0,0 +1 @@
+DC:10:57:AA:BB:DF
\ No newline at end of file
diff --git a/mbtk/rootfs/etc/wifi/mbtk_wifi_driver.sh b/mbtk/rootfs/etc/wifi/mbtk_wifi_driver.sh
new file mode 100755
index 0000000..c4f955d
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/mbtk_wifi_driver.sh
@@ -0,0 +1,89 @@
+function driver_insmod()
+{
+	cfg80211_insmod=`lsmod | grep cfg80211`
+	if [ -z "$cfg80211_insmod" ];then
+		modprobe cfg80211
+	else
+		echo "cfg80211 has insmod."
+	fi
+	
+	aic8800_bsp_insmod=`lsmod | grep aic8800_bsp`
+	if [ -z "$aic8800_bsp_insmod" ];then
+		insmod /etc/wifi/aic8800_bsp.ko sdio_f0=0 sdio_clk=150000000
+	else
+		echo "aic8800_bsp has insmod."
+	fi
+	
+	aic8800_fdrv_insmod=`lsmod | grep aic8800_fdrv`
+	if [ -z "$aic8800_fdrv_insmod" ];then
+		insmod /etc/wifi/aic8800_fdrv.ko
+	else
+		echo "aic8800_fdrv has insmod."
+	fi
+}
+
+function driver_rmmod()
+{
+	aic8800_fdrv_insmod=`lsmod | grep aic8800_fdrv`
+	if [ -z "$aic8800_fdrv_insmod" ];then
+		echo "aic8800_fdrv not insmod."
+	else
+		rmmod aic8800_fdrv
+	fi
+	
+	aic8800_bsp_insmod=`lsmod | grep aic8800_bsp`
+	if [ -z "$aic8800_bsp_insmod" ];then
+		echo "aic8800_bsp not insmod."
+	else
+		rmmod aic8800_bsp
+	fi
+	
+	cfg80211_insmod=`lsmod | grep cfg80211`
+	if [ -z "$cfg80211_insmod" ];then
+		echo "cfg80211 not insmod."
+	else
+		rmmod cfg80211
+	fi
+}
+
+
+if [ -n "$2" ] ;then	#有参数
+	case "$1" in
+		ap)
+			case "$2" in
+				start)
+					driver_insmod
+					
+					#wifi_ap_start
+					;;
+				stop)
+					#wifi_ap_stop
+					;;
+				*)
+					help
+					;;
+			esac
+			;;
+		sta)
+			case "$2" in
+				start)
+					driver_insmod
+					
+					#wifi_sta_start
+					;;
+				stop)
+                    driver_rmmod
+					#wifi_sta_stop
+					;;
+				*)
+					help
+					;;
+			esac
+			;;
+		*)
+            help
+			;;
+	esac
+else
+	help
+fi
\ No newline at end of file
diff --git a/mbtk/rootfs/etc/wifi/sta_network.conf b/mbtk/rootfs/etc/wifi/sta_network.conf
new file mode 100755
index 0000000..2f31745
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/sta_network.conf
@@ -0,0 +1,2 @@
+SSID=MERCURY_7EBB
+PASSWORD=mbtk1234
diff --git a/mbtk/rootfs/etc/wifi/wpa_supplicant.conf b/mbtk/rootfs/etc/wifi/wpa_supplicant.conf
new file mode 100755
index 0000000..1994a6c
--- /dev/null
+++ b/mbtk/rootfs/etc/wifi/wpa_supplicant.conf
@@ -0,0 +1,6 @@
+ctrl_interface=/var/run/wpa_supplicant
+ap_scan=1
+
+network={
+  key_mgmt=NONE
+}