OSDN Git Service

ath10k: fix data rx for CCMP-256, GCMP and GCMP-256 in raw mode
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Fri, 27 Oct 2017 15:35:41 +0000 (18:35 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 20 Nov 2017 16:10:18 +0000 (18:10 +0200)
commit307aeb31af0d9ba63346466f88badd64e7ed9786
treef1a00405031a66b77196e78bd62d3e299171a461
parent1514f6fc136943c27364f164de1e86c2d51befa9
ath10k: fix data rx for CCMP-256, GCMP and GCMP-256 in raw mode

Make sure 16-byte mic is removed from the rx data packet
tail when CCMP-256, GCMP and GCMP-256 ciphers are used
in raw decap mode. This fixed rx traffic failures in those
ciphers in raw mode. Split the helper returning crypto
tail length into two, one to get the ICV length and other
to get the mic lengh for the cipher to make it clean.

Fixes: 2ea9f12cefe4 ("ath10k: add new cipher suite support")
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c