From f8e116deb69b22fd056a121ee1d79fb8d7c490b8 Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Thu, 19 Jan 2023 21:46:16 +0000 Subject: [PATCH] Fix uninitialized cfg80211_chan_def Signed-off-by: Kirill Zhumarin --- drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c b/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c index 64541a364..ba32bb013 100644 --- a/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c +++ b/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c @@ -165,7 +165,7 @@ u8 rtw_cfg80211_ch_switch_notify(struct adapter *adapter, u8 ch, u8 bw, u8 offse 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) -- Created with Armbian build tools https://github.com/armbian/build