aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/rc.h
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2009-07-14 20:14:13 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:17 -0400
commit922bac602255d4557c289cabba7857c5be332d34 (patch)
treec005286e01d8b2aa3849bdd5264d3b7ca795105a /drivers/net/wireless/ath/ath9k/rc.h
parentc41304653e120749dae8b04332b92ffb5f4dbbfd (diff)
ath9k: Nuke struct ath_tx_ratectrl_state
Move its only member (u8 per) to struct ath_rate_priv. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h
index c794d6c82ad4..fa21a628ddd0 100644
--- a/drivers/net/wireless/ath/ath9k/rc.h
+++ b/drivers/net/wireless/ath/ath9k/rc.h
@@ -122,10 +122,6 @@ struct ath_rate_table {
122 u8 initial_ratemax; 122 u8 initial_ratemax;
123}; 123};
124 124
125struct ath_tx_ratectrl_state {
126 u8 per; /* recent estimate of packet error rate (%) */
127};
128
129struct ath_rateset { 125struct ath_rateset {
130 u8 rs_nrates; 126 u8 rs_nrates;
131 u8 rs_rates[ATH_RATE_MAX]; 127 u8 rs_rates[ATH_RATE_MAX];
@@ -141,6 +137,7 @@ struct ath_rateset {
141 * @per_down_time: msec timestamp for last PER down step 137 * @per_down_time: msec timestamp for last PER down step
142 * @valid_phy_ratecnt: valid rate count 138 * @valid_phy_ratecnt: valid rate count
143 * @rate_max_phy: phy index for the max rate 139 * @rate_max_phy: phy index for the max rate
140 * @per: PER for every valid rate in %
144 * @probe_interval: interval for ratectrl to probe for other rates 141 * @probe_interval: interval for ratectrl to probe for other rates
145 * @prev_data_rix: rate idx of last data frame 142 * @prev_data_rix: rate idx of last data frame
146 * @ht_cap: HT capabilities 143 * @ht_cap: HT capabilities
@@ -157,12 +154,12 @@ struct ath_rate_priv {
157 u8 valid_phy_ratecnt[WLAN_RC_PHY_MAX]; 154 u8 valid_phy_ratecnt[WLAN_RC_PHY_MAX];
158 u8 valid_phy_rateidx[WLAN_RC_PHY_MAX][RATE_TABLE_SIZE]; 155 u8 valid_phy_rateidx[WLAN_RC_PHY_MAX][RATE_TABLE_SIZE];
159 u8 rate_max_phy; 156 u8 rate_max_phy;
157 u8 per[RATE_TABLE_SIZE];
160 u32 probe_time; 158 u32 probe_time;
161 u32 per_down_time; 159 u32 per_down_time;
162 u32 probe_interval; 160 u32 probe_interval;
163 u32 prev_data_rix; 161 u32 prev_data_rix;
164 u32 tx_triglevel_max; 162 u32 tx_triglevel_max;
165 struct ath_tx_ratectrl_state state[RATE_TABLE_SIZE];
166 struct ath_rateset neg_rates; 163 struct ath_rateset neg_rates;
167 struct ath_rateset neg_ht_rates; 164 struct ath_rateset neg_ht_rates;
168 struct ath_rate_softc *asc; 165 struct ath_rate_softc *asc;