Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224604
b: refs/heads/master
c: 3017047
h: refs/heads/master
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Nov 17, 2010
1 parent 0f70933 commit 2133d90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82259b77f6e55c5b81f5f4a2852f6216c196ef30
refs/heads/master: 3017047f564d5101009c8318b94bdacd3ca3312e
2 changes: 0 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ enum buffer_type {
#define bf_al bf_state.bfs_al
#define bf_frmlen bf_state.bfs_frmlen
#define bf_retries bf_state.bfs_retries
#define bf_keyix bf_state.bfs_keyix
#define bf_isht(bf) (bf->bf_state.bf_type & BUF_HT)
#define bf_isampdu(bf) (bf->bf_state.bf_type & BUF_AMPDU)
#define bf_isaggr(bf) (bf->bf_state.bf_type & BUF_AGGR)
Expand Down Expand Up @@ -221,7 +220,6 @@ struct ath_buf_state {
int bfs_retries;
u8 bf_type;
u8 bfs_paprd;
u32 bfs_keyix;
enum ath9k_internal_frame_type bfs_ftype;
};

Expand Down
14 changes: 8 additions & 6 deletions trunk/drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,12 +1604,8 @@ static struct ath_buf *ath_tx_setup_buffer(struct ieee80211_hw *hw,

bf->bf_flags = setup_tx_flags(skb);

if (tx_info->control.hw_key) {
if (tx_info->control.hw_key)
bf->bf_frmlen += tx_info->control.hw_key->icv_len;
bf->bf_keyix = tx_info->control.hw_key->hw_key_idx;
} else {
bf->bf_keyix = ATH9K_TXKEYIX_INVALID;
}

bf->bf_mpdu = skb;

Expand Down Expand Up @@ -1642,6 +1638,7 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
struct ath_atx_tid *tid;
struct ath_hw *ah = sc->sc_ah;
enum ath9k_key_type keytype;
u32 keyix;
int frm_type;
__le16 fc;
u8 tidno;
Expand All @@ -1656,8 +1653,13 @@ static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf,
ath9k_hw_set_desc_link(ah, ds, 0);

keytype = ath9k_cmn_get_hw_crypto_keytype(skb);
if (tx_info->control.hw_key)
keyix = tx_info->control.hw_key->hw_key_idx;
else
keyix = ATH9K_TXKEYIX_INVALID;

ath9k_hw_set11n_txdesc(ah, ds, bf->bf_frmlen, frm_type, MAX_RATE_POWER,
bf->bf_keyix, keytype, bf->bf_flags);
keyix, keytype, bf->bf_flags);

ath9k_hw_filltxdesc(ah, ds,
skb->len, /* segment length */
Expand Down

0 comments on commit 2133d90

Please sign in to comment.