From: Lee Hyuk Date: Wed, 22 Mar 2017 11:47:19 +0000 (+0900) Subject: Disable the SSP mode in headless device X-Git-Tag: accepted/tizen/4.0/unified/20170816.013919~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=5d5985b3233ce779296dd24b3a09ad5a393ef667;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git Disable the SSP mode in headless device Change-Id: I1463e130da878ac99376b661014809fd59bd27b9 Signed-off-by: Lee Hyuk --- diff --git a/scripts/bt-dev-start.sh b/scripts/bt-dev-start.sh index ff5e6d5..7dcf4ee 100755 --- a/scripts/bt-dev-start.sh +++ b/scripts/bt-dev-start.sh @@ -17,5 +17,11 @@ else echo "Registering Bluetooth device" /usr/bin/hciconfig hci0 up /usr/bin/hciconfig hci0 name $BT_PLATFORM_DEFAULT_HCI_NAME - /usr/bin/hciconfig hci0 sspmode 1 + if [ -e "/usr/lib/bt-plugin-headed.so" ]; then + echo "Bluetooth headed device" + /usr/bin/hciconfig hci0 sspmode 1 + else + echo "Bluetooth headless device" + /usr/bin/hciconfig hci0 sspmode 0 + fi fi