forked from Minki/linux
rt2800pci: fix crypto in TX frame
Based on rt2800usb patch from Benoit PAPILLAULT
(commit 1761631083
).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a8ea2b23f6
commit
f644fea1a8
@ -2195,7 +2195,7 @@ static void rt2800pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
|
|||||||
rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->ba_size);
|
rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->ba_size);
|
||||||
rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID,
|
rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID,
|
||||||
test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags) ?
|
test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags) ?
|
||||||
(skbdesc->entry->entry_idx + 1) : 0xff);
|
txdesc->key_idx : 0xff);
|
||||||
rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT,
|
rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT,
|
||||||
skb->len - txdesc->l2pad);
|
skb->len - txdesc->l2pad);
|
||||||
rt2x00_set_field32(&word, TXWI_W1_PACKETID,
|
rt2x00_set_field32(&word, TXWI_W1_PACKETID,
|
||||||
|
Loading…
Reference in New Issue
Block a user