diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/recv.c')
-rw-r--r-- | drivers/net/wireless/ath9k/recv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c index 000e189e104a..20f83779278a 100644 --- a/drivers/net/wireless/ath9k/recv.c +++ b/drivers/net/wireless/ath9k/recv.c | |||
@@ -140,8 +140,9 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds, | |||
140 | struct ieee80211_rx_status *rx_status, bool *decrypt_error, | 140 | struct ieee80211_rx_status *rx_status, bool *decrypt_error, |
141 | struct ath_softc *sc) | 141 | struct ath_softc *sc) |
142 | { | 142 | { |
143 | struct ath_rate_table *rate_table = sc->hw_rate_table[sc->sc_curmode]; | ||
143 | struct ieee80211_hdr *hdr; | 144 | struct ieee80211_hdr *hdr; |
144 | int ratekbps; | 145 | int ratekbps, rix; |
145 | u8 ratecode; | 146 | u8 ratecode; |
146 | __le16 fc; | 147 | __le16 fc; |
147 | 148 | ||
@@ -196,7 +197,8 @@ static int ath_rx_prepare(struct sk_buff *skb, struct ath_desc *ds, | |||
196 | } | 197 | } |
197 | 198 | ||
198 | ratecode = ds->ds_rxstat.rs_rate; | 199 | ratecode = ds->ds_rxstat.rs_rate; |
199 | ratekbps = sc->sc_hwmap[ratecode].rateKbps; | 200 | rix = rate_table->rateCodeToIndex[ratecode]; |
201 | ratekbps = rate_table->info[rix].ratekbps; | ||
200 | 202 | ||
201 | /* HT rate */ | 203 | /* HT rate */ |
202 | if (ratecode & 0x80) { | 204 | if (ratecode & 0x80) { |