Skip to content

Commit 026fb26

Browse files
committed
Fix build with Kernel 6.17: Add support to get radio index
1 parent c2f491f commit 026fb26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

os_dep/linux/ioctl_cfg80211.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3260,7 +3260,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
32603260
return ret;
32613261
}
32623262

3263-
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
3263+
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy,
3264+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
3265+
int radio_idx,
3266+
#endif
3267+
u32 changed)
32643268
{
32653269
#if 0
32663270
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
@@ -4165,6 +4169,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
41654169
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
41664170
struct wireless_dev *wdev,
41674171
#endif
4172+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
4173+
int radio_idx,
4174+
#endif
41684175
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
41694176
enum nl80211_tx_power_setting type, int mbm)
41704177
#else
@@ -4205,6 +4212,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
42054212
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
42064213
struct wireless_dev *wdev,
42074214
#endif
4215+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
4216+
int radio_idx,
4217+
#endif
42084218
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
42094219
unsigned int link_id,
42104220
#endif

0 commit comments

Comments
 (0)