aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/main.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:39:30 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:32 -0500
commitc428839008f6638317a0db102d4e65d631c288a6 (patch)
tree64decdccf35485d1a40ec54bf00c379cd1f0fa01 /drivers/net/wireless/ath9k/main.c
parent2c5a744d43a6a08666930906742fbe704739ba6f (diff)
ath9k: Move TX completion routine to xmit.c
Also, use a helper function to setup RC status data when processing completed TX descriptors. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath9k/main.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 9a798245b1bc..54d89abce478 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -341,37 +341,6 @@ void ath_get_beaconconfig(struct ath_softc *sc,
341 conf->bmiss_timeout = ATH_DEFAULT_BMISS_LIMIT * conf->listen_interval; 341 conf->bmiss_timeout = ATH_DEFAULT_BMISS_LIMIT * conf->listen_interval;
342} 342}
343 343
344void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
345 struct ath_xmit_status *tx_status)
346{
347 struct ieee80211_hw *hw = sc->hw;
348 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
349 struct ath_tx_info_priv *tx_info_priv = ATH_TX_INFO_PRIV(tx_info);
350
351 DPRINTF(sc, ATH_DBG_XMIT,
352 "%s: TX complete: skb: %p\n", __func__, skb);
353
354 if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK ||
355 tx_info->flags & IEEE80211_TX_STAT_TX_FILTERED) {
356 kfree(tx_info_priv);
357 tx_info->rate_driver_data[0] = NULL;
358 }
359
360 if (tx_status->flags & ATH_TX_BAR) {
361 tx_info->flags |= IEEE80211_TX_STAT_AMPDU_NO_BACK;
362 tx_status->flags &= ~ATH_TX_BAR;
363 }
364
365 if (!(tx_status->flags & (ATH_TX_ERROR | ATH_TX_XRETRY))) {
366 /* Frame was ACKed */
367 tx_info->flags |= IEEE80211_TX_STAT_ACK;
368 }
369
370 tx_info->status.rates[0].count = tx_status->retries + 1;
371
372 ieee80211_tx_status(hw, skb);
373}
374
375/********************************/ 344/********************************/
376/* LED functions */ 345/* LED functions */
377/********************************/ 346/********************************/