mac80211: use rate index in TX control
[deliverable/linux.git] / drivers / net / wireless / p54 / p54common.c
index 3d35fe6a8f5f743a7a701ee785e0765c6026e813..3ca9386561ffdd64fea99a76ccbdcebf8f78fb33 100644 (file)
@@ -592,7 +592,7 @@ static int p54_tx(struct ieee80211_hw *dev, struct sk_buff *skb,
        txhdr->padding2 = 0;
 
        /* TODO: add support for alternate retry TX rates */
-       rate = control->tx_rate->hw_value;
+       rate = ieee80211_get_tx_rate(dev, control)->hw_value;
        if (control->flags & IEEE80211_TXCTL_SHORT_PREAMBLE)
                rate |= 0x10;
        if (control->flags & IEEE80211_TXCTL_USE_RTS_CTS)
This page took 0.038175 seconds and 5 git commands to generate.