Skip to content

Commit e231694

Browse files
committed
Fix build for linux >= 6.17
1 parent 5df613d commit e231694

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

os_dep/linux/ioctl_cfg80211.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3205,8 +3205,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
32053205
return ret;
32063206

32073207
}
3208-
3209-
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
3208+
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy,
3209+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
3210+
int radio_idx,
3211+
#endif
3212+
u32 changed)
32103213
{
32113214
#if 0
32123215
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
@@ -4053,6 +4056,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
40534056
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
40544057
struct wireless_dev *wdev,
40554058
#endif
4059+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
4060+
int radio_idx,
4061+
#endif
40564062
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
40574063
enum nl80211_tx_power_setting type, int mbm)
40584064
#else
@@ -4093,6 +4099,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
40934099
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
40944100
struct wireless_dev *wdev,
40954101
#endif
4102+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
4103+
int radio_idx,
4104+
#endif
40964105
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
40974106
unsigned int link_id,
40984107
#endif

0 commit comments

Comments
 (0)