rt2x00: rt2800lib: fix band selection and LNA PE control for RT3593 PCIe cards
authorGabor Juhos <juhosg@openwrt.org>
Wed, 11 Sep 2013 17:56:45 +0000 (19:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Sep 2013 19:13:48 +0000 (15:13 -0400)
commit60751001e814cd70220fee7868c5a0368bdf984a
tree17749de119623b6fcc0a9227e8b89b6f7607dd88
parent3001f0d00bcb77d818efa331864d69a9338550e6
rt2x00: rt2800lib: fix band selection and LNA PE control for RT3593 PCIe cards

The band selection and PE control code for the
RT3593 chipsets only handles USB based devices
currently. Due to this limitation RT3593 based
PCIe cards are not working correctly.

On PCIe cards band selection is controlled via
GPIO #8 which is identical to the USB devices.
The LNA PE control is slightly different, all
LNA PEs are controlled by GPIO #4.

Update the code to configure the GPIO_CTRL register
correctly on PCIe devices.

Cc: Steven Liu <steven.liu@mediatek.com>
Cc: JasonYS Cheng <jasonys.cheng@mediatek.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c