Parcourir la source

Fix compilation on kernel 5.4.0+

MJaoune il y a 5 ans
Parent
commit
f136e53987
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;
 			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);