]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: rt2800lib: add default_power3 field for three-chain devices
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 14:08:28 +0000 (16:08 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:33 +0000 (16:54 -0400)
commit1774f14263db91309f838af3d2621f759848db7e
treec54952a4ef1bd10b832c9324346ce1330f61d96a
parent545bff78eb5ea683c091591d920a989e18a47cf1
rt2x00: rt2800lib: add default_power3 field for three-chain devices

The actual code uses two default TX power values.
This is enough for 1T and for 2T devices however
on 3T devices another value is needed for the third
chain.

Add a new field to struct channel_info and initialize
it from the 'rt2800_probe_hw_mode' function. Also modify
the 'rt2800_config_channel' to handle the new field as
well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt2x00.h