Browse Source

Fix compilation on kernel 5.4.0+

MJaoune 5 years ago
parent
commit
f136e53987
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/rtw_mlme_ext.c

+ 4 - 0
core/rtw_mlme_ext.c

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