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:
parent
368d1ebe56
commit
41e3209549
|
|
@ -27,10 +27,10 @@ usage() {
|
||||||
|
|
||||||
suspend_interfaces() {
|
suspend_interfaces() {
|
||||||
if hcitool -i hci0 dev >/dev/null 2>&1; then
|
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
|
fi
|
||||||
if grep -qs '^wlan0' /var/run/ifstate; then
|
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
|
fi
|
||||||
if grep -qs '^wlan' /proc/modules; then
|
if grep -qs '^wlan' /proc/modules; then
|
||||||
rmmod wlan
|
rmmod wlan
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue