1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 13:24:36 +00:00

bugfix: initialize cfg80211_chan_def structure to zero to fix nl80211_send_chandef kernel trap

This commit is contained in:
5kft 2020-08-09 06:57:22 -07:00
parent 0df6a65815
commit 29d1cdde8b
No known key found for this signature in database
GPG Key ID: 1FA43AEDB0493C92

View File

@ -447,7 +447,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
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)