26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
From f8e116deb69b22fd056a121ee1d79fb8d7c490b8 Mon Sep 17 00:00:00 2001
|
|
From: Kirill Zhumarin <kirill.zhumarin@gmail.com>
|
|
Date: Thu, 19 Jan 2023 21:46:16 +0000
|
|
Subject: [PATCH] Fix uninitialized cfg80211_chan_def
|
|
|
|
Signed-off-by: Kirill Zhumarin <kirill.zhumarin@gmail.com>
|
|
---
|
|
drivers/net/wireless/rtl8822bs/os_dep/linux/ioctl_cfg80211.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/rtl8822bs/os_dep/linux/ioctl_cfg80211.c b/drivers/net/wireless/rtl8822bs/os_dep/linux/ioctl_cfg80211.c
|
|
index 23f9409e5..13c4cf0fe 100644
|
|
--- a/drivers/net/wireless/rtl8822bs/os_dep/linux/ioctl_cfg80211.c
|
|
+++ b/drivers/net/wireless/rtl8822bs/os_dep/linux/ioctl_cfg80211.c
|
|
@@ -387,7 +387,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)
|
|
--
|
|
Created with Armbian build tools https://github.com/armbian/build
|