Commit ddf4a2db authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by John W. Linville

ath9k: Remove unused members from rate control structure

Signed-off-by: default avatarVasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 39a4cafe
This diff is collapsed.
...@@ -112,8 +112,6 @@ struct ath_rate_table { ...@@ -112,8 +112,6 @@ struct ath_rate_table {
u8 short_preamble; u8 short_preamble;
u8 dot11rate; u8 dot11rate;
u8 ctrl_rate; u8 ctrl_rate;
int8_t rssi_ack_validmin;
int8_t rssi_ack_deltamin;
u8 base_index; u8 base_index;
u8 cw40index; u8 cw40index;
u8 sgi_index; u8 sgi_index;
...@@ -126,7 +124,6 @@ struct ath_rate_table { ...@@ -126,7 +124,6 @@ struct ath_rate_table {
}; };
struct ath_tx_ratectrl_state { struct ath_tx_ratectrl_state {
int8_t rssi_thres; /* required rssi for this rate (dB) */
u8 per; /* recent estimate of packet error rate (%) */ u8 per; /* recent estimate of packet error rate (%) */
}; };
...@@ -138,16 +135,7 @@ struct ath_rateset { ...@@ -138,16 +135,7 @@ struct ath_rateset {
/** /**
* struct ath_rate_priv - Rate Control priv data * struct ath_rate_priv - Rate Control priv data
* @state: RC state * @state: RC state
* @rssi_last: last ACK rssi
* @rssi_last_lookup: last ACK rssi used for lookup
* @rssi_last_prev: previous last ACK rssi
* @rssi_last_prev2: 2nd previous last ACK rssi
* @rssi_sum_cnt: count of rssi_sum for averaging
* @rssi_sum_rate: rate that we are averaging
* @rssi_sum: running sum of rssi for averaging
* @probe_rate: rate we are probing at * @probe_rate: rate we are probing at
* @rssi_time: msec timestamp for last ack rssi
* @rssi_down_time: msec timestamp for last down step
* @probe_time: msec timestamp for last probe * @probe_time: msec timestamp for last probe
* @hw_maxretry_pktcnt: num of packets since we got HW max retry error * @hw_maxretry_pktcnt: num of packets since we got HW max retry error
* @max_valid_rate: maximum number of valid rate * @max_valid_rate: maximum number of valid rate
...@@ -161,13 +149,6 @@ struct ath_rateset { ...@@ -161,13 +149,6 @@ struct ath_rateset {
* @neg_ht_rates: Negotiated HT rates * @neg_ht_rates: Negotiated HT rates
*/ */
struct ath_rate_priv { struct ath_rate_priv {
int8_t rssi_last;
int8_t rssi_last_lookup;
int8_t rssi_last_prev;
int8_t rssi_last_prev2;
int32_t rssi_sum_cnt;
int32_t rssi_sum_rate;
int32_t rssi_sum;
u8 rate_table_size; u8 rate_table_size;
u8 probe_rate; u8 probe_rate;
u8 hw_maxretry_pktcnt; u8 hw_maxretry_pktcnt;
...@@ -177,8 +158,6 @@ struct ath_rate_priv { ...@@ -177,8 +158,6 @@ struct ath_rate_priv {
u8 valid_phy_ratecnt[WLAN_RC_PHY_MAX]; u8 valid_phy_ratecnt[WLAN_RC_PHY_MAX];
u8 valid_phy_rateidx[WLAN_RC_PHY_MAX][RATE_TABLE_SIZE]; u8 valid_phy_rateidx[WLAN_RC_PHY_MAX][RATE_TABLE_SIZE];
u8 rate_max_phy; u8 rate_max_phy;
u32 rssi_time;
u32 rssi_down_time;
u32 probe_time; u32 probe_time;
u32 per_down_time; u32 per_down_time;
u32 probe_interval; u32 probe_interval;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment