svn commit: r187235 - user/sam/wifi/sys/dev/ath/ath_hal

Sam Leffler sam at FreeBSD.org
Wed Jan 14 12:03:51 PST 2009


Author: sam
Date: Wed Jan 14 20:03:50 2009
New Revision: 187235
URL: http://svn.freebsd.org/changeset/base/187235

Log:
  nuke ath_hal_ispublicsafetysku; now unused (and in general should never
  have existed)

Modified:
  user/sam/wifi/sys/dev/ath/ath_hal/ah.h
  user/sam/wifi/sys/dev/ath/ath_hal/ah_regdomain.c

Modified: user/sam/wifi/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- user/sam/wifi/sys/dev/ath/ath_hal/ah.h	Wed Jan 14 20:00:58 2009	(r187234)
+++ user/sam/wifi/sys/dev/ath/ath_hal/ah.h	Wed Jan 14 20:03:50 2009	(r187235)
@@ -883,11 +883,6 @@ extern uint16_t __ahdecl ath_hal_compute
 		uint16_t rateix, HAL_BOOL shortPreamble);
 
 /*
- * Return if device is public safety.
- */
-extern HAL_BOOL __ahdecl ath_hal_ispublicsafetysku(struct ath_hal *);
-
-/*
  * Return if device is operating in 900 MHz band.
  */
 extern HAL_BOOL ath_hal_isgsmsku(struct ath_hal *);

Modified: user/sam/wifi/sys/dev/ath/ath_hal/ah_regdomain.c
==============================================================================
--- user/sam/wifi/sys/dev/ath/ath_hal/ah_regdomain.c	Wed Jan 14 20:00:58 2009	(r187234)
+++ user/sam/wifi/sys/dev/ath/ath_hal/ah_regdomain.c	Wed Jan 14 20:03:50 2009	(r187235)
@@ -2146,27 +2146,6 @@ ath_hal_getwirelessmodes(struct ath_hal 
 }
 
 /*
- * Return if device is public safety.
- */
-HAL_BOOL
-ath_hal_ispublicsafetysku(struct ath_hal *ah)
-{
-	uint16_t rd = getEepromRD(ah);
-
-	switch (rd) {
-	case FCC4_FCCA:
-	case CTRY_UNITED_STATES_FCC49 | COUNTRY_ERD_FLAG:
-		return AH_TRUE;
-	case DEBUG_REG_DMN:
-	case NO_ENUMRD:
-		if (AH_PRIVATE(ah)->ah_countryCode == CTRY_UNITED_STATES_FCC49)
-			return AH_TRUE;
-		break;
-	}
-	return AH_FALSE;
-}
-
-/*
  * Return if device is actually operating in 900 MHz band.
  */
 HAL_BOOL


More information about the svn-src-user mailing list