iwlwifi: mvm: set inactivity timeouts also for PS-poll
authorSara Sharon <sara.sharon@intel.com>
Sun, 17 Oct 2021 13:59:46 +0000 (16:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Oct 2021 07:49:04 +0000 (10:49 +0300)
commitc0ad5c49252133975b97afd4e2536d21fd38829b
tree7e2509a6039c47822b4a05f71cecefbb2593654a
parent2fd8aaaeb87441e2577e8e55373e9b3b221dc4b0
iwlwifi: mvm: set inactivity timeouts also for PS-poll

Code tried to avoid setting ACs for PS-poll by an early return.
However as a result the timeouts weren't set as well.

Inactivity timeout of zero means we will always try to go back to
sleep immediately after moving to AM, which doesn't make much sense,
and isn't supported by FW.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017165728.dda7f6ba0b22.Ia107bfe496b84e8a2edb33d9f39a5d2b56ed63f7@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/power.c