From 5e35a9ca0003f660de161677066472e7fec6507a Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Wed, 27 Jul 2016 09:39:27 +0200 Subject: [PATCH] recipes-core: suspend: down the bluetooth interface before entering suspend Down the bluetooth interface before entering suspend and up it after resuming if it is present and up. https://jira.digi.com/browse/DEL-2806 Signed-off-by: Isaac Hermida --- .../recipes-core/busybox/busybox-1.23.2/ccimx6ul/suspend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/ccimx6ul/suspend b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/ccimx6ul/suspend index d597339b6..a87cdcd65 100755 --- a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/ccimx6ul/suspend +++ b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/ccimx6ul/suspend @@ -29,12 +29,16 @@ suspend_interfaces() { if grep -qs '^wlan0' /var/run/ifstate; then ifdown wlan0 && up_wlan_on_resume="1" && sleep 0.5 && rmmod wlan fi + if hcitool -i hci0 dev >/dev/null 2>&1; then + hciconfig hci0 down && up_hci0_on_resume="1" && sleep 0.5 + fi } resume_interfaces() { if ! grep -qs '^wlan0' /var/run/ifstate; then [ -n "${up_wlan_on_resume}" ] && modprobe wlan && sleep 0.5 && ifup wlan0 fi + [ -n "${up_hci0_on_resume}" ] && hciconfig hci0 up } while getopts "h" c; do