diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 0a7a29e..ae2bd06 100755 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -1400,7 +1400,7 @@ void mgt_dispatcher(_adapter *padapter, union recv_frame *precv_frame) ptable->func = &OnAuth; else ptable->func = &OnAuthClient; - /* pass through */ + __attribute__ ((fallthrough));/* FALL THRU */ case WIFI_ASSOCREQ: case WIFI_REASSOCREQ: _mgt_dispatcher(padapter, ptable, precv_frame); diff --git a/hal/hal_intf.c b/hal/hal_intf.c index 9fbad0d..3d440ea 100644 --- a/hal/hal_intf.c +++ b/hal/hal_intf.c @@ -827,8 +827,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload) case C2H_EXTEND: sub_id = payload[0]; - /* no handle, goto default */ - + __attribute__ ((fallthrough));/* FALL THRU */ default: if (phydm_c2H_content_parsing(odm, id, plen, payload) != true) ret = _FAIL; diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c index 15fa429..3cd1182 100644 --- a/os_dep/ioctl_cfg80211.c +++ b/os_dep/ioctl_cfg80211.c @@ -1749,6 +1749,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, #if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)) case NL80211_IFTYPE_P2P_CLIENT: is_p2p = true; + __attribute__ ((fallthrough));/* FALL THRU */ #endif case NL80211_IFTYPE_STATION: networkType = Ndis802_11Infrastructure; @@ -1773,6 +1774,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy, #if defined(CONFIG_P2P) && ((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)) case NL80211_IFTYPE_P2P_GO: is_p2p = true; + __attribute__ ((fallthrough));/* FALL THRU */ #endif case NL80211_IFTYPE_AP: networkType = Ndis802_11APMode;