summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-18 13:57:43 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-18 13:57:43 +0000
commitb2b614475d81fcc2ed2d6d91c4323adf3a377a0c (patch)
treeebcbd38352ea311be053e62a693f5fc0e00061d0 /sys/dev/usb
parentae0893a33963c3f89e4889ba46af05bc0d7c001b (diff)
only update the flags part of PHY_CSR5 and PHY_CSR6. this makes OFDM
modulation working and improves tx signal.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_ral.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 52cfffbc901..11f33059b8f 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.7 2005/03/18 13:53:31 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.8 2005/03/18 13:57:42 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -1822,12 +1822,12 @@ ural_set_txantenna(struct ural_softc *sc, int antenna)
ural_bbp_write(sc, RAL_BBP_TX, tx);
- /* update values with PHY_CSR5 and PHY_CSR6 */
- tmp = ural_read(sc, RAL_PHY_CSR5) & ~0xff;
- ural_write(sc, RAL_PHY_CSR5, tmp | tx);
+ /* update flags in PHY_CSR5 and PHY_CSR6 too */
+ tmp = ural_read(sc, RAL_PHY_CSR5) & ~0x7;
+ ural_write(sc, RAL_PHY_CSR5, tmp | (tx & 0x7));
- tmp = ural_read(sc, RAL_PHY_CSR6) & ~0xff;
- ural_write(sc, RAL_PHY_CSR6, tmp | tx);
+ tmp = ural_read(sc, RAL_PHY_CSR6) & ~0x7;
+ ural_write(sc, RAL_PHY_CSR6, tmp | (tx & 0x7));
}
Static void