Fix for kernel 5.15

Fixed compilation warnings with GCC 11
Fix libc6 dependency 2.34
This commit is contained in:
Carlos Garcés
2021-10-09 12:24:15 +02:00
parent 5464196753
commit 59fd03940c
8 changed files with 34 additions and 22 deletions

View File

@@ -2401,8 +2401,8 @@ 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
/* fallthrough */
case NL80211_IFTYPE_STATION:
networkType = Ndis802_11Infrastructure;
@@ -2426,8 +2426,8 @@ 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
/* fallthrough */
case NL80211_IFTYPE_AP:
networkType = Ndis802_11APMode;