mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
48 lines
1.7 KiB
Diff
48 lines
1.7 KiB
Diff
From 026fb2665d043788ff73e764350376828ba5f322 Mon Sep 17 00:00:00 2001
|
|
From: Franz Eitzinger <43846023+etzngr@users.noreply.github.com>
|
|
Date: Tue, 12 Aug 2025 10:47:22 +0200
|
|
Subject: [PATCH 2/2] Fix build with Kernel 6.17: Add support to get radio
|
|
index
|
|
|
|
---
|
|
os_dep/linux/ioctl_cfg80211.c | 12 +++++++++++-
|
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
|
|
index d641305..4ccad87 100644
|
|
--- a/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_cfg80211.c
|
|
+++ b/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_cfg80211.c
|
|
@@ -3260,7 +3260,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
|
|
return ret;
|
|
}
|
|
|
|
-static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
|
+static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy,
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
|
+ int radio_idx,
|
|
+#endif
|
|
+ u32 changed)
|
|
{
|
|
#if 0
|
|
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
|
|
@@ -4165,6 +4169,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
|
struct wireless_dev *wdev,
|
|
#endif
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
|
+ int radio_idx,
|
|
+#endif
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
|
|
enum nl80211_tx_power_setting type, int mbm)
|
|
#else
|
|
@@ -4205,6 +4212,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
|
struct wireless_dev *wdev,
|
|
#endif
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
|
+ int radio_idx,
|
|
+#endif
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
|
|
unsigned int link_id,
|
|
#endif
|