]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: reg: restore previous behaviour of chan->max_power calculations
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 24 Jul 2012 06:35:39 +0000 (08:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 25 Jul 2012 14:11:12 +0000 (16:11 +0200)
commit5d23304f54e29c42fd06b076eb61ea2674594576
tree604c118db641c5787baeaa0aaa24bb8f9b2e35fa
parent8a1acbbcccb493ffbbe881ec372bbaae95c0a5ce
wireless: reg: restore previous behaviour of chan->max_power calculations

commit 0fb204512d59bd453abe692cdf5f0c29f0cec91b
Author: Hong Wu <Hong.Wu@dspg.com>
Date:   Wed Jan 11 20:33:39 2012 +0200

    wireless: Save original maximum regulatory transmission power for the calucation of the local maximum transmit pow

changed the way we calculate chan->max_power as min(chan->max_power,
chan->max_reg_power). That broke rt2x00 (and perhaps some other
drivers) that do not set chan->max_power. It is not so easy to fix this
problem correctly in rt2x00.

According to commit 0fb204512 changelog, change claim only to save
maximum regulatory power - changing setting of chan->max_power was side
effect. This patch restore previous calculations of chan->max_power and
do not touch chan->max_reg_power.

Cc: stable@vger.kernel.org # 3.4+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c