rt2800: add chipset revision RT5390R support
authorAnisse Astier <anisse@astier.eu>
Mon, 23 Apr 2012 10:33:11 +0000 (12:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:37:42 +0000 (15:37 -0400)
commit0586a11b5cc51413240e6688936e2edac9c2918e
tree974415fc4bad725bbc48ebb6955e57ffebe2f213
parent218d2e26dceb241e4b253c5c4702ee1b38b715cc
rt2800: add chipset revision RT5390R support

About 70% of the chips with revision RT5390R initialize incorrectly, using
the auxiliary antenna instead of the main one. The net result is that
signal reception is very poor (no AP further than 1M).

This chipset differs from RT5390 and RT5390F by its support of hardware
antenna diversity. Therefore antenna selection should be done
differently, by disabling software features and previously selected
antenna.

This changeset does just that, and makes all RT5390R work properly.

This is based on Ralink's 2012_03_22_RT5572_Linux_STA_v2.6.0.0_DPO
driver.

Signed-off-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800.h
drivers/net/wireless/rt2x00/rt2800lib.c