Skip to content

Commit d53a23d

Browse files
authored
Merge pull request #354 from etzngr/realtek-4.4.x
Fix build with Kernel 6.16 and 6.17
2 parents 27aa922 + 026fb26 commit d53a23d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

include/osdep_service_linux.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ static inline void timer_hdl(struct timer_list *in_timer)
359359
static inline void timer_hdl(unsigned long cntx)
360360
#endif
361361
{
362-
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
362+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
363+
_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
364+
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
363365
_timer *ptimer = from_timer(ptimer, in_timer, timer);
364366
#else
365367
_timer *ptimer = (_timer *)cntx;

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)