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 a87cdcd65..597b441c2 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 @@ -26,12 +26,15 @@ usage() { } 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 + if grep -qs '^wlan0' /var/run/ifstate; then + ifdown wlan0 && up_wlan_on_resume="1" && sleep 0.5 + fi + if grep -qs '^wlan' /proc/modules; then + rmmod wlan + fi } resume_interfaces() {