From cb6322627237a7ce9953a88ffeab3d60b210d88b Mon Sep 17 00:00:00 2001 From: brektrou <48123110+brektrou@users.noreply.github.com> Date: Fri, 18 Dec 2020 17:11:13 +0000 Subject: [PATCH] bugfix: initialize cfg80211_chan_def https://github.com/aircrack-ng/rtl8812au/pull/699 --- os_dep/linux/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 901cf85..d9c81c9 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -411,7 +411,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8 u8 ret = _SUCCESS; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) - struct cfg80211_chan_def chdef; + struct cfg80211_chan_def chdef = {}; ret = rtw_chbw_to_cfg80211_chan_def(wiphy, &chdef, ch, bw, offset, ht); if (ret != _SUCCESS)