Created
February 3, 2025 00:17
-
-
Save joanbm/b711bafdcb065d57364a701061b902a3 to your computer and use it in GitHub Desktop.
Tentative patch for broadcom-wl 6.30.223.271 driver for Linux 6.14-rc1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1dce6fd0b32d31e897143c4ac04eb9a8929bc1e5 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <[email protected]> | |
Date: Sun, 8 Dec 2024 17:57:43 +0000 | |
Subject: [PATCH] Tentative fix for broadcom-wl 6.30.223.271 driver for Linux | |
6.14-rc1 | |
Related to the new parameter for get_tx_power introduced in | |
"wifi: cfg80211: send MLO links tx power info in GET_INTERFACE" | |
(Rameshkumar Sundaram, 25 Nov 2024). | |
As the driver doesn't support Multi-Link, we just ignore it afterwards. | |
--- | |
src/wl/sys/wl_cfg80211_hybrid.c | 10 ++++++++-- | |
1 file changed, 8 insertions(+), 2 deletions(-) | |
diff --git a/src/wl/sys/wl_cfg80211_hybrid.c b/src/wl/sys/wl_cfg80211_hybrid.c | |
index 7926f2a..ba86ace 100644 | |
--- a/src/wl/sys/wl_cfg80211_hybrid.c | |
+++ b/src/wl/sys/wl_cfg80211_hybrid.c | |
@@ -99,7 +99,10 @@ static s32 wl_cfg80211_set_tx_power(struct wiphy *wiphy, | |
enum tx_power_setting type, s32 dbm); | |
#endif | |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) | |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0) | |
+static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, | |
+ unsigned int link_id, s32 *dbm); | |
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) | |
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, s32 *dbm); | |
#else | |
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm); | |
@@ -1152,7 +1155,10 @@ wl_cfg80211_set_tx_power(struct wiphy *wiphy, enum tx_power_setting type, s32 db | |
return err; | |
} | |
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) | |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0) | |
+static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, | |
+ unsigned int link_id, s32 *dbm) | |
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) | |
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, s32 *dbm) | |
#else | |
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm) | |
-- | |
2.48.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment