diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 3f16ad66bdb5..32ee351a7650 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -1323,7 +1323,8 @@ ath5k_txbuf_setup(struct ath5k_softc *sc, struct ath5k_buf *bf, | |||
1323 | 1323 | ||
1324 | ret = ah->ah_setup_tx_desc(ah, ds, pktlen, | 1324 | ret = ah->ah_setup_tx_desc(ah, ds, pktlen, |
1325 | ieee80211_get_hdrlen_from_skb(skb), AR5K_PKT_TYPE_NORMAL, | 1325 | ieee80211_get_hdrlen_from_skb(skb), AR5K_PKT_TYPE_NORMAL, |
1326 | (sc->power_level * 2), ctl->tx_rate->hw_value, | 1326 | (sc->power_level * 2), |
1327 | ieee80211_get_tx_rate(sc->hw, ctl)->hw_value, | ||
1327 | ctl->retry_limit, keyidx, 0, flags, 0, 0); | 1328 | ctl->retry_limit, keyidx, 0, flags, 0, 0); |
1328 | if (ret) | 1329 | if (ret) |
1329 | goto err_unmap; | 1330 | goto err_unmap; |
@@ -2046,7 +2047,8 @@ ath5k_beacon_setup(struct ath5k_softc *sc, struct ath5k_buf *bf, | |||
2046 | ret = ah->ah_setup_tx_desc(ah, ds, skb->len, | 2047 | ret = ah->ah_setup_tx_desc(ah, ds, skb->len, |
2047 | ieee80211_get_hdrlen_from_skb(skb), | 2048 | ieee80211_get_hdrlen_from_skb(skb), |
2048 | AR5K_PKT_TYPE_BEACON, (sc->power_level * 2), | 2049 | AR5K_PKT_TYPE_BEACON, (sc->power_level * 2), |
2049 | ctl->tx_rate->hw_value, 1, AR5K_TXKEYIX_INVALID, | 2050 | ieee80211_get_tx_rate(sc->hw, ctl)->hw_value, |
2051 | 1, AR5K_TXKEYIX_INVALID, | ||
2050 | antenna, flags, 0, 0); | 2052 | antenna, flags, 0, 0); |
2051 | if (ret) | 2053 | if (ret) |
2052 | goto err_unmap; | 2054 | goto err_unmap; |
@@ -2654,7 +2656,7 @@ ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
2654 | memmove(skb->data, skb->data+pad, hdrlen); | 2656 | memmove(skb->data, skb->data+pad, hdrlen); |
2655 | } | 2657 | } |
2656 | 2658 | ||
2657 | sc->led_txrate = ctl->tx_rate->hw_value; | 2659 | sc->led_txrate = ieee80211_get_tx_rate(hw, ctl)->hw_value; |
2658 | 2660 | ||
2659 | spin_lock_irqsave(&sc->txbuflock, flags); | 2661 | spin_lock_irqsave(&sc->txbuflock, flags); |
2660 | if (list_empty(&sc->txbuf)) { | 2662 | if (list_empty(&sc->txbuf)) { |