diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-02-25 22:25:31 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-02-25 22:25:31 +0000 |
commit | 7a5ae57cf7496a38699cd390f874fc3359242511 (patch) | |
tree | 620ba16fed20c23692826978981c99dcb2171f35 /sys/dev/ic/ar5212.c | |
parent | eaf739340cc437965c78359443b2c66b50cc3f23 (diff) |
add support for the atheros ar5211 802.11A/B/g wireless chipset.
ok deraadt@
Diffstat (limited to 'sys/dev/ic/ar5212.c')
-rw-r--r-- | sys/dev/ic/ar5212.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index a12555ca234..e539b0de8e7 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5212.c,v 1.2 2005/02/19 17:57:15 reyk Exp $ */ +/* $OpenBSD: ar5212.c,v 1.3 2005/02/25 22:25:30 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -38,8 +38,6 @@ static const struct ar5k_ar5212_ini ar5212_ini[] = AR5K_AR5212_INI; static const struct ar5k_ar5212_ini_mode ar5212_mode[] = AR5K_AR5212_INI_MODE; -static const struct ar5k_ar5212_ini_rfgain ar5212_rfgain[] = - AR5K_AR5212_INI_RFGAIN; AR5K_HAL_FUNCTIONS(extern, ar5k_ar5212,); @@ -516,9 +514,8 @@ ar5k_ar5212_reset(hal, op_mode, channel, change_channel, status) * Write initial RF gain settings */ phy = ar5112 == AH_TRUE ? AR5K_INI_PHY_5112 : AR5K_INI_PHY_5111; - for (i = 0; i < AR5K_ELEMENTS(ar5212_rfgain); i++) - AR5K_REG_WRITE((u_int32_t)ar5212_rfgain[i].rfg_register, - ar5212_rfgain[i].rfg_value[phy][freq]); + if (ar5k_rfgain(hal, phy, freq) == AH_FALSE) + return (AH_FALSE); AR5K_DELAY(1000); |