diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-11-24 01:37:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 09:47:49 -0500 |
commit | ff37e337beb838d4c2540fa93b2c4c632ee17750 (patch) | |
tree | 649d6dfedaef70558b222cc75e952193147449ed /drivers/net/wireless/ath9k/rc.c | |
parent | bf8c1ac6d81ba8c0e4dc2215f84f5e2a3c8227e8 (diff) |
ath9k: Code scrub
Merge core.c and base.c
Remove Antenna Diversity (unused now).
Remove unused chainmask handling code.
Comment, indentation scrub.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath9k/rc.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c index 7d1913d48d31..93dfea897ff2 100644 --- a/drivers/net/wireless/ath9k/rc.c +++ b/drivers/net/wireless/ath9k/rc.c | |||
@@ -1401,7 +1401,6 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, | |||
1401 | struct ath_softc *sc = priv; | 1401 | struct ath_softc *sc = priv; |
1402 | struct ath_rate_priv *ath_rc_priv = priv_sta; | 1402 | struct ath_rate_priv *ath_rc_priv = priv_sta; |
1403 | struct ath_tx_info_priv *tx_info_priv = NULL; | 1403 | struct ath_tx_info_priv *tx_info_priv = NULL; |
1404 | struct ath_node *an; | ||
1405 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1404 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1406 | struct ieee80211_hdr *hdr; | 1405 | struct ieee80211_hdr *hdr; |
1407 | int final_ts_idx, tx_status = 0, is_underrun = 0; | 1406 | int final_ts_idx, tx_status = 0, is_underrun = 0; |
@@ -1410,21 +1409,15 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband, | |||
1410 | hdr = (struct ieee80211_hdr *)skb->data; | 1409 | hdr = (struct ieee80211_hdr *)skb->data; |
1411 | fc = hdr->frame_control; | 1410 | fc = hdr->frame_control; |
1412 | tx_info_priv = ATH_TX_INFO_PRIV(tx_info); | 1411 | tx_info_priv = ATH_TX_INFO_PRIV(tx_info); |
1413 | an = (struct ath_node *)sta->drv_priv; | ||
1414 | final_ts_idx = tx_info_priv->tx.ts_rateindex; | 1412 | final_ts_idx = tx_info_priv->tx.ts_rateindex; |
1415 | 1413 | ||
1416 | if (!an || !priv_sta || !ieee80211_is_data(fc) || | 1414 | if (!priv_sta || !ieee80211_is_data(fc) || |
1417 | !tx_info_priv->update_rc) | 1415 | !tx_info_priv->update_rc) |
1418 | goto exit; | 1416 | goto exit; |
1419 | 1417 | ||
1420 | if (tx_info_priv->tx.ts_status & ATH9K_TXERR_FILT) | 1418 | if (tx_info_priv->tx.ts_status & ATH9K_TXERR_FILT) |
1421 | goto exit; | 1419 | goto exit; |
1422 | 1420 | ||
1423 | if (tx_info_priv->tx.ts_rssi > 0) { | ||
1424 | ATH_RSSI_LPF(an->an_chainmask_sel.tx_avgrssi, | ||
1425 | tx_info_priv->tx.ts_rssi); | ||
1426 | } | ||
1427 | |||
1428 | /* | 1421 | /* |
1429 | * If underrun error is seen assume it as an excessive retry only | 1422 | * If underrun error is seen assume it as an excessive retry only |
1430 | * if prefetch trigger level have reached the max (0x3f for 5416) | 1423 | * if prefetch trigger level have reached the max (0x3f for 5416) |