Added kernel v5.4 support + better handling of fallthroughs

This commit is contained in:
kimocoder
2020-01-24 20:41:12 +01:00
parent 31127cea4a
commit d2415df515
5 changed files with 9 additions and 18 deletions

View File

@@ -2367,6 +2367,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
case NL80211_IFTYPE_P2P_CLIENT:
is_p2p = _TRUE;
#endif
__attribute__ ((__fallthrough__));
case NL80211_IFTYPE_STATION:
networkType = Ndis802_11Infrastructure;
@@ -2391,6 +2392,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
case NL80211_IFTYPE_P2P_GO:
is_p2p = _TRUE;
#endif
__attribute__ ((__fallthrough__));
case NL80211_IFTYPE_AP:
networkType = Ndis802_11APMode;