mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 07:04:12 +00:00
Fix multiple warnings when using clang
This commit is contained in:
parent
b3bf74abe3
commit
4b6c218e95
@ -258,7 +258,6 @@ void rtw_txpwr_init_regd(struct rf_ctl_t *rfctl)
|
|||||||
);
|
);
|
||||||
if (rfctl->regd_name)
|
if (rfctl->regd_name)
|
||||||
break;
|
break;
|
||||||
__attribute__ ((__fallthrough__));
|
|
||||||
default:
|
default:
|
||||||
rfctl->regd_name = regd_str(TXPWR_LMT_WW);
|
rfctl->regd_name = regd_str(TXPWR_LMT_WW);
|
||||||
RTW_PRINT("assign %s for default case\n", regd_str(TXPWR_LMT_WW));
|
RTW_PRINT("assign %s for default case\n", regd_str(TXPWR_LMT_WW));
|
||||||
@ -1343,11 +1342,6 @@ 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));
|
|
||||||
#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);
|
||||||
|
@ -1082,7 +1082,6 @@ s32 c2h_handler(_adapter *adapter, u8 id, u8 seq, u8 plen, u8 *payload)
|
|||||||
case C2H_EXTEND:
|
case C2H_EXTEND:
|
||||||
sub_id = payload[0];
|
sub_id = payload[0];
|
||||||
/* no handle, goto default */
|
/* no handle, goto default */
|
||||||
__attribute__ ((__fallthrough__));
|
|
||||||
default:
|
default:
|
||||||
if (phydm_c2H_content_parsing(adapter_to_phydm(adapter), id, plen, payload) != TRUE)
|
if (phydm_c2H_content_parsing(adapter_to_phydm(adapter), id, plen, payload) != TRUE)
|
||||||
ret = _FAIL;
|
ret = _FAIL;
|
||||||
|
@ -2471,7 +2471,6 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
|||||||
case NL80211_IFTYPE_P2P_CLIENT:
|
case NL80211_IFTYPE_P2P_CLIENT:
|
||||||
is_p2p = _TRUE;
|
is_p2p = _TRUE;
|
||||||
#endif
|
#endif
|
||||||
__attribute__ ((__fallthrough__));
|
|
||||||
case NL80211_IFTYPE_STATION:
|
case NL80211_IFTYPE_STATION:
|
||||||
networkType = Ndis802_11Infrastructure;
|
networkType = Ndis802_11Infrastructure;
|
||||||
|
|
||||||
@ -2496,7 +2495,6 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
|||||||
case NL80211_IFTYPE_P2P_GO:
|
case NL80211_IFTYPE_P2P_GO:
|
||||||
is_p2p = _TRUE;
|
is_p2p = _TRUE;
|
||||||
#endif
|
#endif
|
||||||
__attribute__ ((__fallthrough__));
|
|
||||||
case NL80211_IFTYPE_AP:
|
case NL80211_IFTYPE_AP:
|
||||||
networkType = Ndis802_11APMode;
|
networkType = Ndis802_11APMode;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user