diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2018-01-19 13:53:45 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2018-01-19 14:14:15 +0900 |
commit | 3502b6337b3fdba13158ed13df61c431402b5f81 (patch) | |
tree | 18298cccb0c07d63c388449f2525a672ae9a9d2f | |
parent | 862f1171420094612f461bc7d7a9a0ca18b6dda5 (diff) | |
download | bluetooth-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-x | scripts/bt-dev-end.sh | 3 | ||||
-rwxr-xr-x | scripts/bt-dev-start.sh | 5 |
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 |