iwlwifi: mvm: Fix the keep_alive calculation
authorAvri Altman <avri.altman@intel.com>
Tue, 11 Nov 2014 05:29:59 +0000 (07:29 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 23 Nov 2014 17:59:19 +0000 (19:59 +0200)
commit5387b348b7af299c2aa8e0318498fa7d889da4fd
tree29210ae2bee4db3be18731a0b1f483cda2df3e4a
parent886ca9f5dd1129df2ca31ab2f43299658568cbbe
iwlwifi: mvm: Fix the keep_alive calculation

The driver must set the keep alive period regardless of power
management state. The keep alive period must be greater or equal to
both the NIC's maximum sleep period, and the listen interval.
However, we were confusing time units (TU) and msec, so fix that.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/power.c