mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: s_vSWencryption replace CRCdwGetCrc32Ex
Replace with ether_crc_le which gives the same result. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a06978bc6d
commit
929cb313fb
|
@ -304,7 +304,7 @@ static void s_vSWencryption(struct vnt_private *pDevice,
|
|||
if (pTransmitKey->byCipherSuite == KEY_CTL_WEP) {
|
||||
//=======================================================================
|
||||
// Append ICV after payload
|
||||
dwICV = CRCdwGetCrc32Ex(pbyPayloadHead, wPayloadSize, dwICV);//ICV(Payload)
|
||||
dwICV = ether_crc_le(wPayloadSize, pbyPayloadHead);
|
||||
pdwICV = (u32 *)(pbyPayloadHead + wPayloadSize);
|
||||
// finally, we must invert dwCRC to get the correct answer
|
||||
*pdwICV = cpu_to_le32(~dwICV);
|
||||
|
@ -315,7 +315,7 @@ static void s_vSWencryption(struct vnt_private *pDevice,
|
|||
} else if (pTransmitKey->byCipherSuite == KEY_CTL_TKIP) {
|
||||
//=======================================================================
|
||||
//Append ICV after payload
|
||||
dwICV = CRCdwGetCrc32Ex(pbyPayloadHead, wPayloadSize, dwICV);//ICV(Payload)
|
||||
dwICV = ether_crc_le(wPayloadSize, pbyPayloadHead);
|
||||
pdwICV = (u32 *)(pbyPayloadHead + wPayloadSize);
|
||||
// finally, we must invert dwCRC to get the correct answer
|
||||
*pdwICV = cpu_to_le32(~dwICV);
|
||||
|
|
Loading…
Reference in New Issue