mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-26 01:51:34 +00:00
Initialize EDMG for Linux kernel >= 5.4
This commit is contained in:
parent
1bb0fe8f64
commit
b778fb9424
@ -234,6 +234,11 @@ static u8 rtw_chbw_to_cfg80211_chan_def(struct wiphy *wiphy, struct cfg80211_cha
|
|||||||
chdef->center_freq1 = cfreq;
|
chdef->center_freq1 = cfreq;
|
||||||
chdef->center_freq2 = 0;
|
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;
|
ret = _SUCCESS;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user