kern/170904: commit references a PR

dfilter service dfilter at FreeBSD.ORG
Fri Aug 24 17:40:19 UTC 2012


The following reply was made to PR kern/170904; it has been noted by GNATS.

From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/170904: commit references a PR
Date: Fri, 24 Aug 2012 17:38:05 +0000 (UTC)

 Author: adrian
 Date: Fri Aug 24 17:37:51 2012
 New Revision: 239657
 URL: http://svn.freebsd.org/changeset/base/239657
 
 Log:
   Correctly handle the "pe_enabled" flag - both when configuring DFS and
   fetching the current DFS configuration.
   
   PR:		kern/170904
 
 Modified:
   head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
 
 Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c
 ==============================================================================
 --- head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c	Fri Aug 24 17:37:12 2012	(r239656)
 +++ head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c	Fri Aug 24 17:37:51 2012	(r239657)
 @@ -1160,7 +1160,12 @@ ar5212EnableDfs(struct ath_hal *ah, HAL_
  		val &= ~AR_PHY_RADAR_0_INBAND;
  		val |= SM(pe->pe_inband, AR_PHY_RADAR_0_INBAND);
  	}
 -	OS_REG_WRITE(ah, AR_PHY_RADAR_0, val | AR_PHY_RADAR_0_ENA);
 +	if (pe->pe_enabled)
 +		val |= AR_PHY_RADAR_0_ENA;
 +	else
 +		val &= ~ AR_PHY_RADAR_0_ENA;
 +
 +	OS_REG_WRITE(ah, AR_PHY_RADAR_0, val);
  }
  
  /*
 @@ -1206,6 +1211,7 @@ ar5212GetDfsThresh(struct ath_hal *ah, H
  	pe->pe_height =  MS(val, AR_PHY_RADAR_0_HEIGHT);
  	pe->pe_prssi = MS(val, AR_PHY_RADAR_0_PRSSI);
  	pe->pe_inband = MS(val, AR_PHY_RADAR_0_INBAND);
 +	pe->pe_enabled = !! (val & AR_PHY_RADAR_0_ENA);
  
  	pe->pe_relpwr = 0;
  	pe->pe_relstep = 0;
 _______________________________________________
 svn-src-all at freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
 


More information about the freebsd-wireless mailing list