From a77cd1406d998ddcd1e8fcb3f504e017a35b9262 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 13 Nov 2015 16:11:25 +0100 Subject: [PATCH] meta-digi-arm: Remove wifi pre/post actions from suspend script The suspend script did a ifup/ifdown on wlan0 to workaround issues we had using wireless drivers on some platforms. Signed-off-by: Alex Gonzalez --- .../busybox/busybox-1.23.2/suspend | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend index 3a581e301..4eedd53a0 100755 --- a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend +++ b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend @@ -31,26 +31,6 @@ suspend_system_time() { fi } -suspend_interfaces() { - # 'wlan0' interface on some platforms (ccwmx5xjs, cwme9210, ccardwmx28js) - # has problems on suspend-resume, so we workaround it by bringing the - # interface down before suspend and bring it up again after resume. - # (#35777, #40082) - if grep -qs '^wlan0' /var/run/ifstate; then - ifdown wlan0 && up_wlan_on_resume="1" - fi -} - -resume_interfaces() { - # 'wlan0' interface on some platforms (ccwmx5xjs, cwme9210, ccardwmx28js) - # has problems on suspend-resume, so we workaround it by bringing the - # interface down before suspend and bring it up again after resume. - # (#35777, #40082) - if ! grep -qs '^wlan0' /var/run/ifstate; then - [ -n "${up_wlan_on_resume}" ] && ifup wlan0 - fi -} - resume_system_time() { if [ "$(echo /sys/class/rtc/rtc*)" != "/sys/class/rtc/rtc*" ]; then hwclock -s @@ -66,14 +46,12 @@ done if [ -f "${syspower}" ]; then # Pre-suspend actions suspend_system_time - suspend_interfaces # Suspend the device printf "mem" > ${syspower} sleep .5 # Post-resume actions - resume_interfaces resume_system_time else printf "\n[ERROR] File ${syspower} not found\n\n"