]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: do not allow set tx power over channel power limit
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 21 Aug 2009 20:34:15 +0000 (13:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:36 +0000 (14:40 -0400)
commit42162b98d9392498141f20893ca5fd26ca125a04
tree10822731a1a25cfe8bdec396f6a76ffb6939c15d
parent7ca36b900d54e6d65699fe882f0f1fc54370ac7f
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 <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c