diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-01-05 16:06:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-05 16:06:25 -0500 |
commit | c96e96354a6c9456cdf1f150eca504e2ea35301e (patch) | |
tree | 751bec601fb8152116b8e31e0f1f83d687a37d6f /drivers/net/wireless/ath/ath9k/rc.c | |
parent | dbbe68bb12b34f3e450da7a73c20e6fa1f85d63a (diff) | |
parent | 33af88138b859f515b365a074e0a014d7cdbf846 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
net/bluetooth/Makefile
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 896d12986b1e..e45147820eae 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -400,7 +400,7 @@ static void ath_rc_sort_validrates(const struct ath_rate_table *rate_table, | |||
400 | } | 400 | } |
401 | } | 401 | } |
402 | 402 | ||
403 | static void ath_rc_init_valid_txmask(struct ath_rate_priv *ath_rc_priv) | 403 | static void ath_rc_init_valid_rate_idx(struct ath_rate_priv *ath_rc_priv) |
404 | { | 404 | { |
405 | u8 i; | 405 | u8 i; |
406 | 406 | ||
@@ -408,7 +408,7 @@ static void ath_rc_init_valid_txmask(struct ath_rate_priv *ath_rc_priv) | |||
408 | ath_rc_priv->valid_rate_index[i] = 0; | 408 | ath_rc_priv->valid_rate_index[i] = 0; |
409 | } | 409 | } |
410 | 410 | ||
411 | static inline void ath_rc_set_valid_txmask(struct ath_rate_priv *ath_rc_priv, | 411 | static inline void ath_rc_set_valid_rate_idx(struct ath_rate_priv *ath_rc_priv, |
412 | u8 index, int valid_tx_rate) | 412 | u8 index, int valid_tx_rate) |
413 | { | 413 | { |
414 | BUG_ON(index > ath_rc_priv->rate_table_size); | 414 | BUG_ON(index > ath_rc_priv->rate_table_size); |
@@ -489,7 +489,7 @@ static u8 ath_rc_init_validrates(struct ath_rate_priv *ath_rc_priv, | |||
489 | 489 | ||
490 | ath_rc_priv->valid_phy_rateidx[phy][valid_rate_count] = i; | 490 | ath_rc_priv->valid_phy_rateidx[phy][valid_rate_count] = i; |
491 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; | 491 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; |
492 | ath_rc_set_valid_txmask(ath_rc_priv, i, 1); | 492 | ath_rc_set_valid_rate_idx(ath_rc_priv, i, 1); |
493 | hi = i; | 493 | hi = i; |
494 | } | 494 | } |
495 | } | 495 | } |
@@ -532,7 +532,7 @@ static u8 ath_rc_setvalid_rates(struct ath_rate_priv *ath_rc_priv, | |||
532 | ath_rc_priv->valid_phy_rateidx[phy] | 532 | ath_rc_priv->valid_phy_rateidx[phy] |
533 | [valid_rate_count] = j; | 533 | [valid_rate_count] = j; |
534 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; | 534 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; |
535 | ath_rc_set_valid_txmask(ath_rc_priv, j, 1); | 535 | ath_rc_set_valid_rate_idx(ath_rc_priv, j, 1); |
536 | hi = A_MAX(hi, j); | 536 | hi = A_MAX(hi, j); |
537 | } | 537 | } |
538 | } | 538 | } |
@@ -568,7 +568,7 @@ static u8 ath_rc_setvalid_htrates(struct ath_rate_priv *ath_rc_priv, | |||
568 | ath_rc_priv->valid_phy_rateidx[phy] | 568 | ath_rc_priv->valid_phy_rateidx[phy] |
569 | [ath_rc_priv->valid_phy_ratecnt[phy]] = j; | 569 | [ath_rc_priv->valid_phy_ratecnt[phy]] = j; |
570 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; | 570 | ath_rc_priv->valid_phy_ratecnt[phy] += 1; |
571 | ath_rc_set_valid_txmask(ath_rc_priv, j, 1); | 571 | ath_rc_set_valid_rate_idx(ath_rc_priv, j, 1); |
572 | hi = A_MAX(hi, j); | 572 | hi = A_MAX(hi, j); |
573 | } | 573 | } |
574 | } | 574 | } |
@@ -1210,7 +1210,7 @@ static void ath_rc_init(struct ath_softc *sc, | |||
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | /* Determine the valid rates */ | 1212 | /* Determine the valid rates */ |
1213 | ath_rc_init_valid_txmask(ath_rc_priv); | 1213 | ath_rc_init_valid_rate_idx(ath_rc_priv); |
1214 | 1214 | ||
1215 | for (i = 0; i < WLAN_RC_PHY_MAX; i++) { | 1215 | for (i = 0; i < WLAN_RC_PHY_MAX; i++) { |
1216 | for (j = 0; j < MAX_TX_RATE_PHY; j++) | 1216 | for (j = 0; j < MAX_TX_RATE_PHY; j++) |
@@ -1321,7 +1321,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, | |||
1321 | struct ath_rate_priv *ath_rc_priv = priv_sta; | 1321 | struct ath_rate_priv *ath_rc_priv = priv_sta; |
1322 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1322 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1323 | struct ieee80211_hdr *hdr; | 1323 | struct ieee80211_hdr *hdr; |
1324 | int final_ts_idx = 0, tx_status = 0, is_underrun = 0; | 1324 | int final_ts_idx = 0, tx_status = 0; |
1325 | int long_retry = 0; | 1325 | int long_retry = 0; |
1326 | __le16 fc; | 1326 | __le16 fc; |
1327 | int i; | 1327 | int i; |
@@ -1358,7 +1358,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, | |||
1358 | tx_status = 1; | 1358 | tx_status = 1; |
1359 | 1359 | ||
1360 | ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status, | 1360 | ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status, |
1361 | (is_underrun) ? sc->hw->max_rate_tries : long_retry); | 1361 | long_retry); |
1362 | 1362 | ||
1363 | /* Check if aggregation has to be enabled for this tid */ | 1363 | /* Check if aggregation has to be enabled for this tid */ |
1364 | if (conf_is_ht(&sc->hw->conf) && | 1364 | if (conf_is_ht(&sc->hw->conf) && |