From f136e539874b70d48adc10dc7fcc047595c6f993 Mon Sep 17 00:00:00 2001 From: MJaoune Date: Wed, 8 Jan 2020 00:01:33 +0200 Subject: [PATCH] Fix compilation on kernel 5.4.0+ --- core/rtw_mlme_ext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 25651da..2b5deb5 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -709,7 +709,11 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame) ptable->func = &OnAuth; else ptable->func = &OnAuthClient; +#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);