rtl8188eu: Fix builds for kernel 5.15

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2021-10-28 11:44:11 -05:00
parent 5fbebcb35b
commit 373d98d270
2 changed files with 7 additions and 1 deletions

View file

@ -19,9 +19,12 @@
******************************************************************************/
#define _RTW_BR_EXT_C_
#include <linux/version.h>
#include <linux/if_arp.h>
#include <net/ip.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
#include <net/ipx.h>
#endif
#include <linux/atalk.h>
#include <linux/udp.h>
#include <linux/if_pppox.h>
@ -664,6 +667,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
return -1;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
/* IPX */
if (ipx != NULL) {
switch (method) {
@ -795,6 +799,7 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
return -1;
}
}
#endif
return -1;
} else if ((protocol == ETH_P_PPP_DISC) ||

View file

@ -476,7 +476,8 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame)
ptable->func = &OnAuth;
else
ptable->func = &OnAuthClient;
/* fall through */
_mgt_dispatcher(padapter, ptable, precv_frame);
break;
case WIFI_ASSOCREQ:
case WIFI_REASSOCREQ:
_mgt_dispatcher(padapter, ptable, precv_frame);