iwlwifi: fix power index handling
authorAmit Beka <amit.beka@intel.com>
Thu, 3 May 2012 21:22:04 +0000 (14:22 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 May 2012 21:27:53 +0000 (17:27 -0400)
commit11e116517be13da44da99f9532cfc23d08d9efb4
tree0821e2557d96cf167909f3ffd8aed35ef760482f
parentf6be8b7845434a509348afa125d967ffd6801bae
iwlwifi: fix power index handling

The power index that the user gives as module parameter
in in range 1-5, but we need to decrease it in order
to create an array index out of it (0-4) for the power
table command.

Signed-off-by: Amit Beka <amit.beka@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-power.c