ccimx6ul: suspend: remove delays

Remove preventive delays during the removal of Bluetooth and Wireless
interfaces. Tests revealed they are not needed.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2016-11-30 13:17:46 +01:00
parent 368d1ebe56
commit 41e3209549
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ usage() {
suspend_interfaces() {
if hcitool -i hci0 dev >/dev/null 2>&1; then
hciconfig hci0 down && up_hci0_on_resume="1" && sleep 0.5
hciconfig hci0 down && up_hci0_on_resume="1"
fi
if grep -qs '^wlan0' /var/run/ifstate; then
ifdown wlan0 && up_wlan_on_resume="1" && sleep 0.5
ifdown wlan0 && up_wlan_on_resume="1"
fi
if grep -qs '^wlan' /proc/modules; then
rmmod wlan