broadcom-wl-fix-linux-6.1.patch 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. From a63a5f70e5cf05f6bce4cda2e0dd67462e1d76a5 Mon Sep 17 00:00:00 2001
  2. From: Joan Bruguera <joanbrugueram@gmail.com>
  3. Date: Mon, 29 Aug 2022 00:06:53 +0200
  4. Subject: [PATCH] Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.1-rc1
  5. Applies on top of all the patches applied to broadcom-wl-dkms 6.30.223.271-35 on Arch Linux
  6. ---
  7. src/wl/sys/wl_cfg80211_hybrid.c | 21 +++++++++++++--------
  8. 1 file changed, 13 insertions(+), 8 deletions(-)
  9. diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c
  10. index 4fef22a..50d1e34 100644
  11. --- a/src/wl/sys/wl_cfg80211_hybrid.c
  12. +++ b/src/wl/sys/wl_cfg80211_hybrid.c
  13. @@ -105,20 +105,25 @@ static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wd
  14. static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm);
  15. #endif
  16. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
  17. +#define MAYBE_INT_LINK_ID int link_id,
  18. +#else
  19. +#define MAYBE_INT_LINK_ID
  20. +#endif
  21. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
  22. static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
  23. - struct net_device *dev, u8 key_idx, bool unicast, bool multicast);
  24. + struct net_device *dev, MAYBE_INT_LINK_ID u8 key_idx, bool unicast, bool multicast);
  25. #else
  26. static s32 wl_cfg80211_config_default_key(struct wiphy *wiphy,
  27. struct net_device *dev, u8 key_idx);
  28. #endif
  29. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
  30. static s32 wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
  31. - u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params);
  32. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params);
  33. static s32 wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
  34. - u8 key_idx, bool pairwise, const u8 *mac_addr);
  35. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr);
  36. static s32 wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
  37. - u8 key_idx, bool pairwise, const u8 *mac_addr,
  38. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr,
  39. void *cookie, void (*callback) (void *cookie, struct key_params *params));
  40. #else
  41. static s32 wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
  42. @@ -1165,7 +1170,7 @@ static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm)
  43. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38)
  44. static s32
  45. wl_cfg80211_config_default_key(struct wiphy *wiphy,
  46. - struct net_device *dev, u8 key_idx, bool unicast, bool multicast)
  47. + struct net_device *dev, MAYBE_INT_LINK_ID u8 key_idx, bool unicast, bool multicast)
  48. #else
  49. static s32
  50. wl_cfg80211_config_default_key(struct wiphy *wiphy,
  51. @@ -1190,7 +1195,7 @@ wl_cfg80211_config_default_key(struct wiphy *wiphy,
  52. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
  53. static s32
  54. wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
  55. - u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params)
  56. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr, struct key_params *params)
  57. #else
  58. static s32
  59. wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
  60. @@ -1311,7 +1316,7 @@ wl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *dev,
  61. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
  62. static s32
  63. wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
  64. - u8 key_idx, bool pairwise, const u8 *mac_addr)
  65. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr)
  66. #else
  67. static s32
  68. wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
  69. @@ -1354,7 +1359,7 @@ wl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *dev,
  70. #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
  71. static s32
  72. wl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *dev,
  73. - u8 key_idx, bool pairwise, const u8 *mac_addr, void *cookie,
  74. + MAYBE_INT_LINK_ID u8 key_idx, bool pairwise, const u8 *mac_addr, void *cookie,
  75. void (*callback) (void *cookie, struct key_params * params))
  76. #else
  77. static s32
  78. --
  79. 2.37.2