staging:r8188eu: move IV/ICV trimming into decrypt() and also place it after rtl88eu_...
authorIvan Safonov <insafonov@gmail.com>
Tue, 2 May 2017 06:01:39 +0000 (09:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:59 +0000 (07:41 +0200)
commit2ba8444c97b1ff72a80219d9baeec5e75995c926
tree8c7c33cc0d3434ed587c4cbf231e8d77a849538f
parent1d6c26224b8346efb8b08b8c1d6bc6bf58c5d2bf
staging:r8188eu: move IV/ICV trimming into decrypt() and also place it after rtl88eu_mon_recv_hook()

IV/ICV should be trimmed immediately after decoding
(this is a decryptor job).

Trim IV/ICV inside decrypt() for SW decrypted frames,
for HW decrypted - before rtl88eu_mon_recv_hook().

Adopt frames receive process to work without IV/ICV fields.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_recv.c