Browse Source

Don't redeclare sha256_state

Tomás Pinho 5 years ago
parent
commit
e614942851
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/rtw_security.h

+ 2 - 0
include/rtw_security.h

@@ -249,11 +249,13 @@ struct security_priv {
 #define SEC_IS_BIP_KEY_INSTALLED(sec) _FALSE
 #define SEC_IS_BIP_KEY_INSTALLED(sec) _FALSE
 #endif
 #endif
 
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
 struct sha256_state {
 struct sha256_state {
 	u64 length;
 	u64 length;
 	u32 state[8], curlen;
 	u32 state[8], curlen;
 	u8 buf[64];
 	u8 buf[64];
 };
 };
+#endif
 
 
 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\
 #define GET_ENCRY_ALGO(psecuritypriv, psta, encry_algo, bmcst)\
 	do {\
 	do {\