@@ -1648,6 +1648,9 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
1648
1648
}
1649
1649
1650
1650
static int cfg80211_rtw_add_key (struct wiphy * wiphy , struct net_device * ndev
1651
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
1652
+ , int link_id
1653
+ #endif
1651
1654
, u8 key_index
1652
1655
#if (LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 37 )) || defined(COMPAT_KERNEL_RELEASE )
1653
1656
, bool pairwise
@@ -1792,6 +1795,9 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev
1792
1795
}
1793
1796
1794
1797
static int cfg80211_rtw_get_key (struct wiphy * wiphy , struct net_device * ndev
1798
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
1799
+ , int link_id
1800
+ #endif
1795
1801
, u8 keyid
1796
1802
#if (LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 37 )) || defined(COMPAT_KERNEL_RELEASE )
1797
1803
, bool pairwise
@@ -1957,6 +1963,9 @@ static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
1957
1963
}
1958
1964
1959
1965
static int cfg80211_rtw_del_key (struct wiphy * wiphy , struct net_device * ndev ,
1966
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
1967
+ int link_id ,
1968
+ #endif
1960
1969
#if (LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 37 )) || defined(COMPAT_KERNEL_RELEASE )
1961
1970
u8 key_index , bool pairwise , const u8 * mac_addr )
1962
1971
#else /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) */
@@ -1977,7 +1986,11 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
1977
1986
}
1978
1987
1979
1988
static int cfg80211_rtw_set_default_key (struct wiphy * wiphy ,
1980
- struct net_device * ndev , u8 key_index
1989
+ struct net_device * ndev
1990
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
1991
+ , int link_id
1992
+ #endif
1993
+ , u8 key_index
1981
1994
#if (LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 38 )) || defined(COMPAT_KERNEL_RELEASE )
1982
1995
, bool unicast , bool multicast
1983
1996
#endif
@@ -2025,7 +2038,12 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
2025
2038
2026
2039
#if (LINUX_VERSION_CODE >= KERNEL_VERSION (2 , 6 , 30 ))
2027
2040
int cfg80211_rtw_set_default_mgmt_key (struct wiphy * wiphy ,
2028
- struct net_device * ndev , u8 key_index )
2041
+ struct net_device * ndev
2042
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 1 , 0 ))
2043
+ , int link_idm
2044
+ #endif
2045
+ , u8 key_index
2046
+ )
2029
2047
{
2030
2048
#define SET_DEF_KEY_PARAM_FMT " key_index=%d"
2031
2049
#define SET_DEF_KEY_PARAM_ARG , key_index
0 commit comments