mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
rtl8188eu: Fix builds for kernel 5.8
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
08c73adb19
commit
aaca953824
3 changed files with 10 additions and 6 deletions
|
@ -2070,7 +2070,7 @@ BIP_exit:
|
|||
#endif /* CONFIG_IEEE80211W */
|
||||
|
||||
/* compress 512-bits */
|
||||
static int sha256_compress(struct sha256_state *md, unsigned char *buf)
|
||||
static int sha256_compress(struct sha256_state_rtk *md, unsigned char *buf)
|
||||
{
|
||||
u32 S[8], W[64], t0, t1;
|
||||
u32 t;
|
||||
|
@ -2118,7 +2118,7 @@ static int sha256_compress(struct sha256_state *md, unsigned char *buf)
|
|||
}
|
||||
|
||||
/* Initialize the hash state */
|
||||
static void sha256_init(struct sha256_state *md)
|
||||
static void sha256_init(struct sha256_state_rtk *md)
|
||||
{
|
||||
md->curlen = 0;
|
||||
md->length = 0;
|
||||
|
@ -2139,7 +2139,7 @@ static void sha256_init(struct sha256_state *md)
|
|||
@param inlen The length of the data (octets)
|
||||
@return CRYPT_OK if successful
|
||||
*/
|
||||
static int sha256_process(struct sha256_state *md, unsigned char *in,
|
||||
static int sha256_process(struct sha256_state_rtk *md, unsigned char *in,
|
||||
unsigned long inlen)
|
||||
{
|
||||
unsigned long n;
|
||||
|
@ -2180,7 +2180,7 @@ static int sha256_process(struct sha256_state *md, unsigned char *in,
|
|||
@param out [out] The destination of the hash (32 bytes)
|
||||
@return CRYPT_OK if successful
|
||||
*/
|
||||
static int sha256_done(struct sha256_state *md, unsigned char *out)
|
||||
static int sha256_done(struct sha256_state_rtk *md, unsigned char *out)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -2230,7 +2230,7 @@ static int sha256_done(struct sha256_state *md, unsigned char *out)
|
|||
static int sha256_vector(size_t num_elem, u8 *addr[], size_t *len,
|
||||
u8 *mac)
|
||||
{
|
||||
struct sha256_state ctx;
|
||||
struct sha256_state_rtk ctx;
|
||||
size_t i;
|
||||
|
||||
sha256_init(&ctx);
|
||||
|
|
|
@ -227,7 +227,7 @@ struct security_priv {
|
|||
#endif /* DBG_SW_SEC_CNT */
|
||||
};
|
||||
|
||||
struct sha256_state {
|
||||
struct sha256_state_rtk {
|
||||
u64 length;
|
||||
u32 state[8], curlen;
|
||||
u8 buf[64];
|
||||
|
|
|
@ -5750,6 +5750,7 @@ exit:
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
|
||||
static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
|
||||
struct wireless_dev *wdev,
|
||||
|
@ -5793,6 +5794,7 @@ static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
|
|||
exit:
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_TDLS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
|
||||
static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
|
||||
|
@ -6778,7 +6780,9 @@ static struct cfg80211_ops rtw_cfg80211_ops = {
|
|||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
.mgmt_tx = cfg80211_rtw_mgmt_tx,
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
|
||||
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
|
||||
#endif
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34) && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
|
||||
.action = cfg80211_rtw_mgmt_tx,
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue