Added kernel v5.4 support + better handling of fallthroughs

This commit is contained in:
kimocoder
2020-01-24 20:41:12 +01:00
parent 31127cea4a
commit d2415df515
5 changed files with 9 additions and 18 deletions

View File

@@ -1831,7 +1831,11 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame)
ptable->func = &OnAuth;
else
ptable->func = &OnAuthClient;
/* pass through */
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
__attribute__ ((fallthrough));
#else
__attribute__ ((__fallthrough__));
#endif
case WIFI_ASSOCREQ:
case WIFI_REASSOCREQ:
_mgt_dispatcher(padapter, ptable, precv_frame);