common/dpaax/caamflib: load correct HFN from desc buffer
authorFranck Lenormand <franck.lenormand@nxp.com>
Wed, 8 Sep 2021 06:59:48 +0000 (12:29 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 8 Sep 2021 10:08:38 +0000 (12:08 +0200)
commit7f9d9170f2ba991c1951aaec077967876265e9ab
tree46f1c7ef446c737bfeabdad2b950fcdc10afde00
parent2ed12d9b63c6fef17c779426b4231fc4ed72105c
common/dpaax/caamflib: load correct HFN from desc buffer

The offset of the HFN word and Bearer/Dir word is different
depending on type of PDB.

The wrong value was used.

This patch address this issue

Signed-off-by: Franck Lenormand <franck.lenormand@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/common/dpaax/caamflib/desc/pdcp.h
drivers/common/dpaax/caamflib/desc/sdap.h