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:
parent
e7a21cdad0
commit
368d1ebe56
|
|
@ -39,7 +39,7 @@ suspend_interfaces() {
|
|||
|
||||
resume_interfaces() {
|
||||
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
|
||||
[ -n "${up_hci0_on_resume}" ] && hciconfig hci0 up
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue