mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 20:58:14 -04:00
staging: wilc1000: apply power management regardless of open interfaces
Don't ignore power management if 2 interfaces are open Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com> Link: https://lore.kernel.org/r/20190725213125.2810-6-adham.abozaeid@microchip.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ded11ab181
commit
7e0cf3e3bf
@@ -2010,9 +2010,6 @@ int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout)
|
||||
int result;
|
||||
s8 power_mode;
|
||||
|
||||
if (wilc_wlan_get_num_conn_ifcs(vif->wilc) == 2 && enabled)
|
||||
return 0;
|
||||
|
||||
if (enabled)
|
||||
power_mode = WILC_FW_MIN_FAST_PS;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user