|
|
@@ -1964,7 +1964,7 @@ exit:
|
|
|
|
|
|
static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
- int link_id,
|
|
|
+ int link_id,
|
|
|
#endif
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
u8 key_index, bool pairwise, const u8 *mac_addr)
|
|
|
@@ -1987,9 +1987,9 @@ static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
|
|
|
|
|
static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
|
|
struct net_device *ndev
|
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
, int link_id
|
|
|
-#endif
|
|
|
+ #endif
|
|
|
, u8 key_index
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
, bool unicast, bool multicast
|
|
|
@@ -2038,11 +2038,12 @@ static int cfg80211_rtw_set_default_key(struct wiphy *wiphy,
|
|
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30))
|
|
|
int cfg80211_rtw_set_default_mgmt_key(struct wiphy *wiphy,
|
|
|
- struct net_device *ndev,
|
|
|
+ struct net_device *ndev
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
|
|
|
- int link_idm,
|
|
|
+ , int link_idm
|
|
|
#endif
|
|
|
- u8 key_index)
|
|
|
+ , u8 key_index
|
|
|
+)
|
|
|
{
|
|
|
#define SET_DEF_KEY_PARAM_FMT " key_index=%d"
|
|
|
#define SET_DEF_KEY_PARAM_ARG , key_index
|