Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2012 04:26:49 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239704 - head/sys/dev/ath/ath_hal
Message-ID:  <201208260426.q7Q4Qnvk060005@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Aug 26 04:26:49 2012
New Revision: 239704
URL: http://svn.freebsd.org/changeset/base/239704

Log:
  Move this magic check to only occur if no eeprom data is given.
  
  Tested on:
  
  	* AP99 (AR7241+AR9287)

Modified:
  head/sys/dev/ath/ath_hal/ah_eeprom_9287.c

Modified: head/sys/dev/ath/ath_hal/ah_eeprom_9287.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_eeprom_9287.c	Sun Aug 26 04:26:25 2012	(r239703)
+++ head/sys/dev/ath/ath_hal/ah_eeprom_9287.c	Sun Aug 26 04:26:49 2012	(r239704)
@@ -310,12 +310,12 @@ ath_hal_9287EepromAttach(struct ath_hal 
 			    "%s Error reading Eeprom MAGIC\n", __func__);
 			return HAL_EEREAD;
 		}
-	}
-	HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s Eeprom Magic = 0x%x\n",
-	    __func__, magic);
-	if (magic != AR5416_EEPROM_MAGIC) {
-		HALDEBUG(ah, HAL_DEBUG_ANY, "Bad magic number\n");
-		return HAL_EEMAGIC;
+		HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s Eeprom Magic = 0x%x\n",
+		    __func__, magic);
+		if (magic != AR5416_EEPROM_MAGIC) {
+			HALDEBUG(ah, HAL_DEBUG_ANY, "Bad magic number\n");
+			return HAL_EEMAGIC;
+		}
 	}
 
 	ee = ath_hal_malloc(sizeof(HAL_EEPROM_9287));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208260426.q7Q4Qnvk060005>