mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 15:14:38 +00:00
Handle new header name in kernels >=6.12, handle 6.13 lib80211 code merge into libiw and fix pointer mismatch compiler error for 6.14 [flow: adjust commit message] Closes: https://bugs.gentoo.org/947928 Closes: https://bugs.gentoo.org/948947 Closes: https://github.com/gentoo/gentoo/pull/40391 Signed-off-by: Sam Petch <111785134+spetch0x5F@users.noreply.github.com> Signed-off-by: Florian Schmaus <flow@gentoo.org>
89 lines
4.1 KiB
Diff
89 lines
4.1 KiB
Diff
--- a/src/wl/sys/wl_cfg80211_hybrid.c
|
|
+++ b/src/wl/sys/wl_cfg80211_hybrid.c
|
|
@@ -105,14 +105,28 @@ static s32 wl_cfg80211_get_tx_power(stru
|
|
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm);
|
|
#endif
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
|
|
+ struct net_device *dev, int link_id, u8 key_idx, bool unicast,
|
|
+ bool multicast);
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
|
|
static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
|
|
struct net_device *dev, u8 key_idx, bool unicast, bool multicast);
|
|
#else
|
|
static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
|
|
struct net_device *dev, u8 key_idx);
|
|
#endif
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32 wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr,
|
|
+ struct key_params *params);
|
|
+static s32 wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr);
|
|
+static s32 wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr,
|
|
+ void *cookie,
|
|
+ void (*callback) (void *cookie, struct key_params *params));
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
static s32 wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
|
|
u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params);
|
|
static s32 wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
|
|
@@ -1161,7 +1175,12 @@ static s32 wl_cfg80211_get_tx_power(stru
|
|
return err;
|
|
}
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32
|
|
+wl_cfg80211_config_default_key(struct wiphy *wiphy,
|
|
+ struct net_device *dev, int link_id, u8 key_idx, bool unicast,
|
|
+ bool multicast)
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
|
|
static s32
|
|
wl_cfg80211_config_default_key(struct wiphy *wiphy,
|
|
struct net_device *dev, u8 key_idx, bool unicast, bool multicast)
|
|
@@ -1186,7 +1205,12 @@ wl_cfg80211_config_default_key(struct wi
|
|
return 0;
|
|
}
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32
|
|
+wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr,
|
|
+ struct key_params *params)
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
static s32
|
|
wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
|
|
u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params)
|
|
@@ -1307,7 +1331,11 @@ wl_cfg80211_add_key(struct wiphy *wiphy,
|
|
return err;
|
|
}
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32
|
|
+wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr)
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
static s32
|
|
wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
|
|
u8 key_idx, bool pairwise, const u8 *mac_addr)
|
|
@@ -1350,7 +1378,13 @@ wl_cfg80211_del_key(struct wiphy *wiphy,
|
|
return err;
|
|
}
|
|
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
|
+static s32
|
|
+wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
|
|
+ int link_id, u8 key_idx, bool pairwise, const u8 *mac_addr,
|
|
+ void *cookie,
|
|
+ void (*callback) (void *cookie, struct key_params * params))
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
|
|
static s32
|
|
wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
|
|
u8 key_idx, bool pairwise, const u8 *mac_addr, void *cookie,
|