]> git.baikalelectronics.ru Git - kernel.git/commit
orinoco: Use shash instead of ahash for MIC calculations
authorAndrew Lutomirski <luto@kernel.org>
Mon, 12 Dec 2016 20:55:55 +0000 (12:55 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 12:10:38 +0000 (14:10 +0200)
commit0b22698f32884f477c9c19375c22e31ee72c8edb
tree20fb26d2f4629df85951a89c204b2307d821ee77
parent8319d96b8076962878befd4aed40cce3875ecde9
orinoco: Use shash instead of ahash for MIC calculations

Eric Biggers pointed out that the orinoco driver pointed scatterlists
at the stack.

Fix it by switching from ahash to shash.  The result should be
simpler, faster, and more correct.

kvalo: cherry picked from commit 1fef293b8a9850cfa124a53c1d8878d355010403 as I
accidentally applied this patch to wireless-drivers-next when I was supposed to
apply this wireless-drivers

Cc: stable@vger.kernel.org # 4.9 only
Reported-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/orinoco/mic.c
drivers/net/wireless/intersil/orinoco/mic.h
drivers/net/wireless/intersil/orinoco/orinoco.h