diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index 6509df3..532d6b3 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -15,9 +15,12 @@ #define _RTW_BR_EXT_C_ #ifdef __KERNEL__ + #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) #include +#endif #include #include #include @@ -948,6 +951,7 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method) } } +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) /* IPX */ if (ipx != NULL) { switch (method) { @@ -1016,8 +1020,12 @@ int nat25_db_handle(_adapter *priv, struct sk_buff *skb, int method) } } + /* AARP */ else if (ea != NULL) { +#else + if (ea != NULL) { +#endif /* Sanity check fields. */ if (ea->hw_len != ETH_ALEN || ea->pa_len != AARP_PA_ALEN) { DEBUG_WARN("NAT25: Appletalk AARP Sanity check fail!\n"); diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index da471c1..0c7273b 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -1831,11 +1831,13 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame) ptable->func = &OnAuth; else ptable->func = &OnAuthClient; + _mgt_dispatcher(padapter, ptable, precv_frame); #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) __attribute__ ((fallthrough)); #else __attribute__ ((__fallthrough__)); #endif + break; case WIFI_ASSOCREQ: case WIFI_REASSOCREQ: _mgt_dispatcher(padapter, ptable, precv_frame);