svn commit: r238839 - in head/sys/dev/ath: . ath_hal
Adrian Chadd
adrian at FreeBSD.org
Fri Jul 27 11:43:11 UTC 2012
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 -
More information about the svn-src-head
mailing list