diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-08-17 12:55:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:36:01 -0400 |
commit | 534aff0288f49a2366b7e6fbb67ff035dea814d3 (patch) | |
tree | 1ebcf7b3d1c4edc01e1df70a7097c66a12b39ac6 /drivers/net/wireless/rt2x00/rt2800usb.c | |
parent | 0fefe0fda4376eff97be965a41714da38fe4a36d (diff) |
rt2x00: wireless CLI ID and packet ID must not be 0
In the TX descriptor the Packet ID must not be 0,
so add 1 to the ID. The wireless CLI ID is not allowed
to be 0 either, but also must be initialized with the
wcid value rather then keyid.
Based on a patch for rt2800pci from Benoit
Signed-off-by: Benoit PAPILLAULT <benoit.papillault@free.fr>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 6de2edab51e..3633e5878ee 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -1995,11 +1995,11 @@ static void rt2800usb_write_tx_desc(struct rt2x00_dev *rt2x00dev, | |||
1995 | rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->ba_size); | 1995 | rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->ba_size); |
1996 | rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID, | 1996 | rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID, |
1997 | test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags) ? | 1997 | test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags) ? |
1998 | txdesc->key_idx : 0xff); | 1998 | (skbdesc->entry->entry_idx + 1) : 0xff); |
1999 | rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT, | 1999 | rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT, |
2000 | skb->len - txdesc->l2pad); | 2000 | skb->len - txdesc->l2pad); |
2001 | rt2x00_set_field32(&word, TXWI_W1_PACKETID, | 2001 | rt2x00_set_field32(&word, TXWI_W1_PACKETID, |
2002 | skbdesc->entry->entry_idx); | 2002 | skbdesc->entry->queue->qid + 1); |
2003 | rt2x00_desc_write(txwi, 1, word); | 2003 | rt2x00_desc_write(txwi, 1, word); |
2004 | 2004 | ||
2005 | /* | 2005 | /* |