From: Reinette Chatre Date: Fri, 9 Oct 2009 20:20:25 +0000 (-0700) Subject: iwlwifi: fix userspace setting of sleep_level_override X-Git-Tag: v2.6.33-rc1~388^2~599^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a34c043802a213e719420ece395cf25c85cc7c5;p=pandora-kernel.git iwlwifi: fix userspace setting of sleep_level_override The sleep_level_override debugfs file is used by the user to request a static power index instead of the dynamic sleep values. Users are expected to provide value from 1 to 5 as an index or -1 to disable it. The problem at the moment is that users can also provide 0 to this file which, together with the value 1, is translated to index 1. This is confusing and even more so when users write 0 to sleep_level_override and then read 1 from it afterwards. Modify checking to treat 0 as invalid. Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- Reading git-diff-tree failed