diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index b61b9e4..a53c477 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -340,6 +340,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: