From b778fb9424112f2cf4e31d4ad55b907981ab1ad6 Mon Sep 17 00:00:00 2001 From: Rin Cat Date: Wed, 29 Jul 2020 15:57:26 -0400 Subject: [PATCH] Initialize EDMG for Linux kernel >= 5.4 --- os_dep/linux/ioctl_cfg80211.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 969ca8b..a1741c0 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -234,6 +234,11 @@ static u8 rtw_chbw_to_cfg80211_chan_def(struct wiphy *wiphy, struct cfg80211_cha chdef->center_freq1 = cfreq; chdef->center_freq2 = 0; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) + chdef->edmg.bw_config = 0; + chdef->edmg.channels = 0; +#endif + ret = _SUCCESS; exit: