Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 11:43:10 +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: r238839 - in head/sys/dev/ath: . ath_hal
Message-ID:  <201207271143.q6RBhA6w001294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Jul 27 11:43:10 2012
New Revision: 238839
URL: http://svn.freebsd.org/changeset/base/238839

Log:
  Introduce a couple more fields in the rate scenario setup as part of
  (future) TPC support in the AR9300 HAL.
  
  This is effectively a no-op for the moment as (a) TPC isn't really
  supported, (b) the AR9300 HAL isn't yet public, and (c) the existing
  HAL code doesn't use these fields.
  
  Obtained from:	Qualcomm Atheros

Modified:
  head/sys/dev/ath/ath_hal/ah.h
  head/sys/dev/ath/if_ath_tx_ht.c

Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h	Fri Jul 27 11:23:24 2012	(r238838)
+++ head/sys/dev/ath/ath_hal/ah.h	Fri Jul 27 11:43:10 2012	(r238839)
@@ -587,6 +587,8 @@ typedef struct {
 #define	HAL_RATESERIES_RTS_CTS		0x0001	/* use rts/cts w/this series */
 #define	HAL_RATESERIES_2040		0x0002	/* use ext channel for series */
 #define	HAL_RATESERIES_HALFGI		0x0004	/* use half-gi for series */
+	u_int	RateIndex;
+	u_int	tx_power_cap;
 } HAL_11N_RATE_SERIES;
 
 typedef enum {

Modified: head/sys/dev/ath/if_ath_tx_ht.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_ht.c	Fri Jul 27 11:23:24 2012	(r238838)
+++ head/sys/dev/ath/if_ath_tx_ht.c	Fri Jul 27 11:43:10 2012	(r238839)
@@ -511,6 +511,8 @@ ath_rateseries_setup(struct ath_softc *s
 			series[i].RateFlags |= HAL_RATESERIES_HALFGI;
 
 		series[i].Rate = rt->info[rc[i].rix].rateCode;
+		series[i].RateIndex = rc[i].rix;
+		series[i].tx_power_cap = 0x3f;	/* XXX for now */
 
 		/*
 		 * PktDuration doesn't include slot, ACK, RTS, etc timing -



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