diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index bd7a8db..3549f11 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -1465,7 +1465,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/btc/halbtc8723d1ant.c b/hal/btc/halbtc8723d1ant.c index df0f4e9..bcbdaee 100644 --- a/hal/btc/halbtc8723d1ant.c +++ b/hal/btc/halbtc8723d1ant.c @@ -3576,6 +3576,7 @@ static void halbtc8723d1ant_psd_show_antenna_detect_result(IN struct btc_coexist case 11: CL_SPRINTF(cli_buf, BT_TMP_BUF_SIZE, "(BT is Disabled)"); + break; case 12: CL_SPRINTF(cli_buf, BT_TMP_BUF_SIZE, "(BT is available, result from BT"); diff --git a/hal/btc/halbtc8723d2ant.c b/hal/btc/halbtc8723d2ant.c index b4d122f..460a091 100644 --- a/hal/btc/halbtc8723d2ant.c +++ b/hal/btc/halbtc8723d2ant.c @@ -4160,6 +4160,7 @@ static void halbtc8723d2ant_psd_show_antenna_detect_result(IN struct btc_coexist case 11: CL_SPRINTF(cli_buf, BT_TMP_BUF_SIZE, "(BT is Disabled)"); + break; case 12: CL_SPRINTF(cli_buf, BT_TMP_BUF_SIZE, "(BT is available, result from BT"); diff --git a/hal/hal_intf.c b/hal/hal_intf.c index bf7a65f..feb1a07 100644 --- a/hal/hal_intf.c +++ b/hal/hal_intf.c @@ -811,6 +811,7 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload) case C2H_EXTEND: sub_id = payload[0]; + __attribute__((__fallthrough__)); /* no handle, goto default */ default: diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index cd1bfe7..564c2c5 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -1809,6 +1809,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__)); #endif case NL80211_IFTYPE_STATION: networkType = Ndis802_11Infrastructure; @@ -1833,6 +1834,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__)); #endif case NL80211_IFTYPE_AP: networkType = Ndis802_11APMode;