From debb41d220cd6c0289de84bae22bfd83797dd09f Mon Sep 17 00:00:00 2001 From: fsantini Date: Tue, 18 Aug 2020 08:07:37 +0200 Subject: [PATCH] Compilation fix for kernel 5.8 Avoid the redefinition of sha256_state struct --- include/rtw_security.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rtw_security.h b/include/rtw_security.h index 340a7d7..5d84945 100644 --- a/include/rtw_security.h +++ b/include/rtw_security.h @@ -191,6 +191,8 @@ struct security_priv u8 bWepDefaultKeyIdxSet; }; +/* fix compilation for 5.8 kernel to avoid redefinition of struct */ +#define sha256_state sha256_state_rtl8812 struct sha256_state { u64 length; u32 state[8], curlen;