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)
commitc0a14369ebd3e7940e70e397ecc3dd7eaf81e9ab
treec54952a4ef1bd10b832c9324346ce1330f61d96a
parentf36bb0ca1be5bcb7148ad32263626f8609dfc0d7
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