|
| 1 | +From 026fb2665d043788ff73e764350376828ba5f322 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Franz Eitzinger < [email protected]> |
| 3 | +Date: Tue, 12 Aug 2025 10:47:22 +0200 |
| 4 | +Subject: [PATCH 2/2] Fix build with Kernel 6.17: Add support to get radio |
| 5 | + index |
| 6 | + |
| 7 | +--- |
| 8 | + os_dep/linux/ioctl_cfg80211.c | 12 +++++++++++- |
| 9 | + 1 file changed, 11 insertions(+), 1 deletion(-) |
| 10 | + |
| 11 | +diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c |
| 12 | +index d641305..4ccad87 100644 |
| 13 | +--- a/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_cfg80211.c |
| 14 | ++++ b/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_cfg80211.c |
| 15 | +@@ -3260,7 +3260,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy |
| 16 | + return ret; |
| 17 | + } |
| 18 | + |
| 19 | +-static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed) |
| 20 | ++static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, |
| 21 | ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) |
| 22 | ++ int radio_idx, |
| 23 | ++#endif |
| 24 | ++ u32 changed) |
| 25 | + { |
| 26 | + #if 0 |
| 27 | + struct iwm_priv *iwm = wiphy_to_iwm(wiphy); |
| 28 | +@@ -4165,6 +4169,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, |
| 29 | + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) |
| 30 | + struct wireless_dev *wdev, |
| 31 | + #endif |
| 32 | ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) |
| 33 | ++ int radio_idx, |
| 34 | ++#endif |
| 35 | + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE) |
| 36 | + enum nl80211_tx_power_setting type, int mbm) |
| 37 | + #else |
| 38 | +@@ -4205,6 +4212,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy, |
| 39 | + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) |
| 40 | + struct wireless_dev *wdev, |
| 41 | + #endif |
| 42 | ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) |
| 43 | ++ int radio_idx, |
| 44 | ++#endif |
| 45 | + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)) |
| 46 | + unsigned int link_id, |
| 47 | + #endif |
0 commit comments