iwlwifi: use sleep interval succession
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 28 Aug 2009 16:44:48 +0000 (09:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 31 Aug 2009 18:42:10 +0000 (14:42 -0400)
commit4c561a02291326c50f9b1f647eae891af9d1f3b2
tree6953c5d26d45745aa27824208b902891e91c6322
parent31513be8a06874eb359908b7b735929837831a9a
iwlwifi: use sleep interval succession

Some concerns were raised about the automatic adjustment
of sleep intervals to all the same, potentially high,
value, and I can imagine the hardware behaving better
when we don't ask too much of it.

So let's convert to use a succession of sleep levels
when requesting to go to deeper sleeps (which can only
happen with large DTIM intervals), using the succession
values from power level three, which have the benefit of
also having been tested extensively already.

As a result, the automatic sleep level adjustment will
now be mostly equivalent to power level three, except
for the RX/TX timeouts and possibly using smaller sleep
vectors to account for networking latency.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-power.c