From 32b4cc1944d2be2e69a728faf4b08f03126d8209 Mon Sep 17 00:00:00 2001 From: Thanathip Limna Date: Mon, 7 Sep 2026 16:53:22 +0100 Subject: [PATCH] fix for show wlan1 --- 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 f174c51..9e0218b 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -2887,7 +2887,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy } -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, 18, 0)) + int radio_idx, +#endif + u32 changed) { #if 0 struct iwm_priv *iwm = wiphy_to_iwm(wiphy); @@ -3701,6 +3705,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, 18, 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 @@ -3740,6 +3747,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, 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, 18, 0)) + int radio_idx, unsigned int link_id, #endif int *dbm) {