ccimx6ul: suspend: do not load the wireless module on resume

The loading of the wireless module without proper arguments does nothing.
Besides, if the interface was down before going to suspend, there is no
need for the wireless module to be loaded.

The wireless module will be loaded nevertheless (with proper arguments)
when the interface is brought up.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-3241
This commit is contained in:
Hector Palacios 2016-11-30 12:15:08 +01:00
parent e7a21cdad0
commit 368d1ebe56
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ suspend_interfaces() {
resume_interfaces() { resume_interfaces() {
if ! grep -qs '^wlan0' /var/run/ifstate; then if ! grep -qs '^wlan0' /var/run/ifstate; then
[ -n "${up_wlan_on_resume}" ] && modprobe wlan && sleep 0.5 && ifup wlan0 [ -n "${up_wlan_on_resume}" ] && ifup wlan0
fi fi
[ -n "${up_hci0_on_resume}" ] && hciconfig hci0 up [ -n "${up_hci0_on_resume}" ] && hciconfig hci0 up
} }