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)
commit570b90fa230b8021f51a67fab2245fe8df6fe37d
tree20fb26d2f4629df85951a89c204b2307d821ee77
parentf5a0aab84b74de68523599817569c057c7ac1622
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