When read BBP registers, avoid writing to BBPCSR until it is no longer busy.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 12 Apr 2007 12:54:07 +0000 (12:54 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 12 Apr 2007 12:54:07 +0000 (12:54 +0000)
commitdd8ea05f8d30bd38ecd334718e4263d8c56ce67a
tree23e230c484c3471f2787fbadeec47fdf2b514015
parentd1be458118d7b047d9d5ea5395c98d0df76be263
When read BBP registers, avoid writing to BBPCSR until it is no longer busy.
After this bug fixing, TX/RX antenna setup can be safely put after BBP
initialization, which is a correct place for it, since BBP initialization
will overwrite RX antenna BBP register with default value.  Before this bug
fixing, putting TX/RX antenna setup after BBP initailization always results
in strange TX/RX problems, which I experienced when I fiddled with my ASUS
WL-107G; and some OpenBSD folks had this problems too, before Damien reverted
related changes in OpenBSD.

2526 RF does not require special I/Q flipping during TX/RX antenna setup.

Obtained-from: Ralink RT2500 Linux driver
sys/dev/netif/ral/rt2560.c