summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2018-01-19 13:53:45 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2018-01-19 14:14:15 +0900
commit3502b6337b3fdba13158ed13df61c431402b5f81 (patch)
tree18298cccb0c07d63c388449f2525a672ae9a9d2f
parent862f1171420094612f461bc7d7a9a0ca18b6dda5 (diff)
downloadbluetooth-firmware-marvell-3502b6337b3fdba13158ed13df61c431402b5f81.tar.gz
bluetooth-firmware-marvell-3502b6337b3fdba13158ed13df61c431402b5f81.tar.bz2
bluetooth-firmware-marvell-3502b6337b3fdba13158ed13df61c431402b5f81.zip
Revert "Remove the rfkill"
This reverts commit 862f1171420094612f461bc7d7a9a0ca18b6dda5. Change-Id: Ief9135be12d600c6d413b49d2c2d86904c31607f Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rwxr-xr-xscripts/bt-dev-end.sh3
-rwxr-xr-xscripts/bt-dev-start.sh5
2 files changed, 8 insertions, 0 deletions
diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh
index d489378..69aea9a 100755
--- a/scripts/bt-dev-end.sh
+++ b/scripts/bt-dev-end.sh
@@ -4,3 +4,6 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
# Device down
/usr/bin/hciconfig hci0 down
+# Turn off Bluetooth Chip
+/usr/sbin/rfkill block bluetooth
+
diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh
index 5f94ebb..c7e9ad8 100755
--- a/scripts/bt-dev-start.sh
+++ b/scripts/bt-dev-start.sh
@@ -5,6 +5,7 @@
#
SETBD=/usr/etc/bluetooth/bt-set-addr.sh
+RFKILL=/usr/sbin/rfkill
GREP=/usr/bin/pgrep
HCI_CONFIG=/usr/bin/hciconfig
CP="/bin/cp"
@@ -20,6 +21,9 @@ echo "Insert BT driver module"
echo "create bd address and write bd address via /sys/module/bt8xxx/parameters/bt_mac"
${SETBD}
+echo "Unblock bluetooth RFKILL"
+${RFKILL} unblock bluetooth
+
echo "Power On"
echo 1 > /sys/devices/platform/sd8x-rfkill/pwr_ctrl
@@ -32,6 +36,7 @@ do
if [ $i -eq $TIMEOUT ]
then
echo "time expired happen $i"
+ ${RFKILL} block bluetooth
exit 1
fi