From: Wey-Yi Guy Date: Fri, 21 Aug 2009 20:34:15 +0000 (-0700) Subject: iwlwifi: do not allow set tx power over channel power limit X-Git-Tag: v2.6.32-rc1~703^2~275^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08f2d58d0e573d13a8eb0afbb6f3122da37b9ce3;p=pandora-kernel.git iwlwifi: do not allow set tx power over channel power limit When setting tx power in sysfs, check against max channel tx power limit instead of IWL_TX_POWER_TARGET_POWER_MAX. Different devices have different max tx power limit; using IWL_TX_POWER_TARGET_POWER_MAX can excess the limitaion and give wrong information. Signed-off-by: Wey-Yi Guy Signed-off-by: Reinette Chatre Signed-off-by: John W. Linville --- Reading git-diff-tree failed