rt2x00: Optimize IV/EIV handling
authorIvo van Doorn <ivdoorn@gmail.com>
Tue, 2 Dec 2008 17:19:48 +0000 (18:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Dec 2008 14:35:50 +0000 (09:35 -0500)
commit1ce9cdac482f0dfbbd22ba4b3e5c016a05543a42
tree90ffda49f6558137efc2760f4badac6de791c49a
parentaac9207e45b1ec1f36d67e57d94f59ac036d37ee
rt2x00: Optimize IV/EIV handling

IV and EIV belong to eachother and don't require
2 seperate fields. Instead they can logically be
merged into a single array with size 2.

With this approach we can simplify the code in
rt2x00crypto.c by using a single memcpy() when
copying the iv/eiv data. Additionally we can
move some code out of if-statements because the
if-statement would always be true.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00crypto.c
drivers/net/wireless/rt2x00/rt2x00queue.h
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c