diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-02 19:27:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 17:09:02 -0500 |
commit | 5008f3727b05b5eb970ce703721aa5897a088e30 (patch) | |
tree | dc1b6375341339f0270a0f31a0e9b919c4ed7c29 | |
parent | 76d5a9e83b6e72ebe651c08e6dc247a58469ddda (diff) |
ath9k: use the right hw on ath_tx_setup_buffer() for HT
When using virtual wiphys the base sc->hw was being used, the correct
hw is passed along the caller already so just use that.
Cc: Jouni.Malinen <Jouni.Malinen@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 6d7f0bcc6dd7..fc06768e8231 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1576,7 +1576,7 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf, | |||
1576 | 1576 | ||
1577 | bf->bf_frmlen = skb->len + FCS_LEN - (hdrlen & 3); | 1577 | bf->bf_frmlen = skb->len + FCS_LEN - (hdrlen & 3); |
1578 | 1578 | ||
1579 | if (conf_is_ht(&sc->hw->conf) && !is_pae(skb)) | 1579 | if (conf_is_ht(&hw->conf) && !is_pae(skb)) |
1580 | bf->bf_state.bf_type |= BUF_HT; | 1580 | bf->bf_state.bf_type |= BUF_HT; |
1581 | 1581 | ||
1582 | bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq); | 1582 | bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq); |