From 2c279d86a8e846c71f5302965d5205367531cccb Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Wed, 30 Jul 2008 07:15:40 +0000 Subject: Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tables with different versions for various ar5212 variants and add an extra table for PCI-E devices. This fixes support for various newer devices (like the 1st generation MacBook, T61 variants) but it still does not work on a number of other devices. Tested by many ok deraadt@ --- sys/dev/ic/ar5211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/ar5211.c') diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c index e50e595c800..7f8ecfbef15 100644 --- a/sys/dev/ic/ar5211.c +++ b/sys/dev/ic/ar5211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5211.c,v 1.36 2007/11/01 20:32:16 reyk Exp $ */ +/* $OpenBSD: ar5211.c,v 1.37 2008/07/30 07:15:39 reyk Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter @@ -507,7 +507,7 @@ ar5k_ar5211_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, /* * Write initial RF gain settings */ - if (ar5k_rfgain(hal, AR5K_INI_PHY_5111, freq) == AH_FALSE) + if (ar5k_rfgain(hal, freq) == AH_FALSE) return (AH_FALSE); AR5K_DELAY(1000); -- cgit v1.2.3