Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17616310 authored by Benoit PAPILLAULT's avatar Benoit PAPILLAULT Committed by John W. Linville
Browse files

rt2x00: Fix crypto in TX frame for rt2800usb

parent 66ed1e5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1994,7 +1994,7 @@ static void rt2800usb_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_WIRELESS_CLI_ID,
			   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,
			   skb->len - txdesc->l2pad);
	rt2x00_set_field32(&word, TXWI_W1_PACKETID,