mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-17 10:33:06 +00:00
Fix build with Linux 6.13
Commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c4f830927750a2bf9fd9426a5257f0fdce3b662 adds struct net_device *dev as argument to set_monitor_channel(), so let's add it to cfg80211_rtw_set_monitor_channel() according to Linux version. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
This commit is contained in:
parent
f42fc9c45d
commit
408ac4abdd
1 changed files with 4 additions and 1 deletions
|
@ -4404,7 +4404,10 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
|
|||
}
|
||||
|
||||
static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
|
||||
, struct net_device *dev
|
||||
, struct cfg80211_chan_def *chandef
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
|
||||
, struct cfg80211_chan_def *chandef
|
||||
#else
|
||||
, struct ieee80211_channel *chan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue