Skip to content

Commit

Permalink
rt2800pci: fix comment about IV/EIV fields
Browse files Browse the repository at this point in the history
The bit tested by hardware is TXD_W3_WIV and its value
equals the negated value of ENTRY_TXD_ENCRYPT_IV bit.

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>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and John W. Linville committed Nov 4, 2009
1 parent 8807bb8 commit 77dba49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/rt2x00/rt2800pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,8 +2206,8 @@ static void rt2800pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,

/*
* Always write 0 to IV/EIV fields, hardware will insert the IV
* from the IVEIV register when ENTRY_TXD_ENCRYPT_IV is set to 0.
* When ENTRY_TXD_ENCRYPT_IV is set to 1 it will use the IV data
* from the IVEIV register when TXD_W3_WIV is set to 0.
* When TXD_W3_WIV is set to 1 it will use the IV data
* from the descriptor. The TXWI_W1_WIRELESS_CLI_ID indicates which
* crypto entry in the registers should be used to encrypt the frame.
*/
Expand Down

0 comments on commit 77dba49

Please sign in to comment.