Skip to content

Commit 73f5c43

Browse files
authored
Merge pull request #345 from etzngr/realtek-4.4.x
Fix build for Kernel 6.13 and 6.14
2 parents 4db2187 + d3aecb6 commit 73f5c43

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

os_dep/linux/ioctl_cfg80211.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,6 +4204,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy,
42044204
static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
42054205
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
42064206
struct wireless_dev *wdev,
4207+
#endif
4208+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
4209+
unsigned int link_id,
42074210
#endif
42084211
int *dbm)
42094212
{
@@ -6000,7 +6003,10 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
60006003
}
60016004

60026005
static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
6003-
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
6006+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
6007+
, struct net_device *dev
6008+
, struct cfg80211_chan_def *chandef
6009+
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
60046010
, struct cfg80211_chan_def *chandef
60056011
#else
60066012
, struct ieee80211_channel *chan

0 commit comments

Comments
 (0)