svn commit: r223615 - in head/sys/dev/ath/ath_hal: . ar9002
Adrian Chadd
adrian at FreeBSD.org
Tue Jun 28 00:01:55 UTC 2011
Author: adrian
Date: Tue Jun 28 00:01:55 2011
New Revision: 223615
URL: http://svn.freebsd.org/changeset/base/223615
Log:
Make sure the extended regdomain word is initialised.
As with the AR9285, the AR9287 has a default word of 0x1F which means
all the various bits in that field are set on by default.
Modified:
head/sys/dev/ath/ath_hal/ah_eeprom_9287.h
head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c
Modified: head/sys/dev/ath/ath_hal/ah_eeprom_9287.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_eeprom_9287.h Mon Jun 27 22:13:15 2011 (r223614)
+++ head/sys/dev/ath/ath_hal/ah_eeprom_9287.h Tue Jun 28 00:01:55 2011 (r223615)
@@ -31,6 +31,8 @@
#define AR9287_EEP_MINOR_VER_b AR9287_EEP_MINOR_VER
#define AR9287_EEP_NO_BACK_VER AR9287_EEP_MINOR_VER_1
+#define AR9287_RDEXT_DEFAULT 0x1F
+
#define AR9287_EEP_START_LOC 128
#define AR9287_HTC_EEP_START_LOC 256
#define AR9287_NUM_2G_CAL_PIERS 3
Modified: head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Mon Jun 27 22:13:15 2011 (r223614)
+++ head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c Tue Jun 28 00:01:55 2011 (r223615)
@@ -320,6 +320,7 @@ ar9287Attach(uint16_t devid, HAL_SOFTC s
/* Read Reg Domain */
AH_PRIVATE(ah)->ah_currentRD =
ath_hal_eepromGet(ah, AR_EEP_REGDMN_0, AH_NULL);
+ AH_PRIVATE(ah)->ah_currentRDext = AR9287_RDEXT_DEFAULT;
/*
* ah_miscMode is populated by ar5416FillCapabilityInfo()
More information about the svn-src-all
mailing list