HARDWARE_MODEL=`@BIN_DIR@/grep Hardware /proc/cpuinfo | @BIN_DIR@/awk "{print \\$3}"`
@BIN_DIR@/echo "Hardware Model=${HARDWARE_MODEL}"
- if [ -e @TZ_SYS_ETC@/p2p_supp.conf ]; then
- echo "File exist: @TZ_SYS_ETC@/p2p_supp.conf"
- else
- echo "File not exist. Reinstall: @TZ_SYS_ETC@/p2p_supp.conf"
- @BIN_DIR@/cp @TZ_SYS_RO_ETC@/wifi-direct/p2p_supp.conf @TZ_SYS_ETC@/
- fi
## For Hawk-P Platform, Hardware model is Samsung
if [ $HARDWARE_MODEL = "Samsung" ];then
- @SBIN_DIR@/wpa_supplicant -t -B -ddd -Dnl80211 -ip2p0 -c@TZ_SYS_ETC@/p2p_supp.conf -g@TZ_SYS_RUN@/wpa_global -f/opt/usr/data/network/wpa_supplicant.log
+# @SBIN_DIR@/wpa_supplicant -t -B -ddd -Dnl80211 -ip2p0 -c@TZ_SYS_ETC@/wpa_supplicant/wpa_supplicant.conf -g@TZ_SYS_RUN@/wpa_global -f/opt/usr/data/network/wpa_supplicant.log
else
- @BIN_DIR@/wpa_supplicant -t -B -ddd -O @TZ_SYS_RUN@/wpa_supplicant-Dnl80211 -iwlan0 -c@TZ_SYS_ETC@/p2p_supp.conf -f/opt/usr/data/network/wpa_supplicant.log
+# @BIN_DIR@/wpa_supplicant -t -B -ddd -O @TZ_SYS_RUN@/wpa_supplicant-Dnl80211 -iwlan0 -c@TZ_SYS_ETC@/wpa_supplicant/wpa_supplicant.conf -f/opt/usr/data/network/wpa_supplicant.log
fi
}
start_p2p0()
{
- if [ -e @TZ_SYS_ETC@/p2p_supp.conf ]; then
- echo "File exist: @TZ_SYS_ETC@/p2p_supp.conf"
- else
- echo "File not exist. Reinstall: @TZ_SYS_ETC@/p2p_supp.conf"
- @BIN_DIR@/cp @TZ_SYS_RO_ETC@/wifi-direct/p2p_supp.conf @TZ_SYS_ETC@/
- fi
- @BIN_DIR@/wpa_supplicant -t -B -ddd -Dnl80211 -ip2p0 -c@TZ_SYS_ETC@/p2p_supp.conf -f/opt/usr/data/network/wpa_supplicant.log
+# @BIN_DIR@/wpa_supplicant -t -B -ddd -Dnl80211 -ip2p0 -c@TZ_SYS_ETC@/wpa_supplicant/wpa_supplicant.conf -f/opt/usr/data/network/wpa_supplicant.log
}
start_dbus()
run=`@BIN_DIR@/ps -eo comm| @BIN_DIR@/grep ${program}`
if [ "X${run}" == "X" ]; then
echo "${program} is not running"
- if [ -e @TZ_SYS_ETC@/p2p_supp.conf ]; then
- echo "File exist: @TZ_SYS_ETC@/p2p_supp.conf"
- else
- echo "File not exist. Reinstall: @TZ_SYS_ETC@/p2p_supp.conf"
- @BIN_DIR@/cp @TZ_SYS_RO_ETC@/wifi-direct/p2p_supp.conf @TZ_SYS_ETC@/
- fi
- @BIN_DIR@/wpa_supplicant -t -B -u -ddd -O @TZ_SYS_RUN@/wpa_supplicant -g/var/run/wpa_global -K -f/opt/usr/data/network/wpa_supplicant.log
+# @BIN_DIR@/wpa_supplicant -t -B -u -ddd -O @TZ_SYS_RUN@/wpa_supplicant -g/var/run/wpa_global -K -f/opt/usr/data/network/wpa_supplicant.log
else
echo "${program} is already running"
fi
stop()
{
- @BIN_DIR@/pkill -x wpa_supplicant
+# @BIN_DIR@/pkill -x wpa_supplicant
}
case $1 in