Remove an incorrect mask to fix antenna diversity on some chips.
-/* $OpenBSD: ar5416.c,v 1.9 2010/07/15 19:07:43 damien Exp $ */
+/* $OpenBSD: ar5416.c,v 1.10 2010/07/15 19:29:00 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
modal = &eep->modalHeader[IEEE80211_IS_CHAN_2GHZ(c)];
- AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon & 0xffff);
+ AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon);
for (i = 0; i < AR5416_MAX_CHAINS; i++) {
if (AR_SREV_5416_20_OR_LATER(sc) &&
-/* $OpenBSD: ar9280.c,v 1.8 2010/07/15 19:07:43 damien Exp $ */
+/* $OpenBSD: ar9280.c,v 1.9 2010/07/15 19:29:00 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
modal = &eep->modalHeader[IEEE80211_IS_CHAN_2GHZ(c)];
- AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon & 0xffff);
+ AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon);
for (i = 0; i < AR9280_MAX_CHAINS; i++) {
if (sc->rxchainmask == 0x5 || sc->txchainmask == 0x5)
-/* $OpenBSD: ar9285.c,v 1.9 2010/07/15 19:07:43 damien Exp $ */
+/* $OpenBSD: ar9285.c,v 1.10 2010/07/15 19:29:00 damien Exp $ */
/*-
* Copyright (c) 2009-2010 Damien Bergamini <damien.bergamini@free.fr>
uint8_t ob[5], db1[5], db2[5];
uint8_t txRxAtten;
- AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon & 0xffff);
+ AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon);
AR_WRITE(sc, AR_PHY_SWITCH_CHAIN_0, modal->antCtrlChain);
reg = AR_READ(sc, AR_PHY_TIMING_CTRL4_0);
-/* $OpenBSD: ar9287.c,v 1.12 2010/07/15 19:07:43 damien Exp $ */
+/* $OpenBSD: ar9287.c,v 1.13 2010/07/15 19:29:00 damien Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
uint32_t reg, offset;
int i;
- AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon & 0xffff);
+ AR_WRITE(sc, AR_PHY_SWITCH_COM, modal->antCtrlCommon);
for (i = 0; i < AR9287_MAX_CHAINS; i++) {
offset = i * 0x1000;