PKGBUILDs/core/linux-odroid-n2/0001-rtl8812au-fix-maybe-uninitialized-error.patch

26 lines
1 KiB
Diff
Raw Normal View History

2020-01-18 01:28:35 +00:00
From 70dbd03df76b412fb11414bddc95b11ded5ab706 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Fri, 17 Jan 2020 18:14:30 -0700
Subject: [PATCH] rtl8812au: fix maybe-uninitialized error
---
drivers/net/wireless/rtl8812au/core/rtw_ap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rtl8812au/core/rtw_ap.c b/drivers/net/wireless/rtl8812au/core/rtw_ap.c
index 1a12c3dee345..c223828a32b4 100644
--- a/drivers/net/wireless/rtl8812au/core/rtw_ap.c
+++ b/drivers/net/wireless/rtl8812au/core/rtw_ap.c
@@ -194,7 +194,7 @@ void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *d
u8 bmatch = _FALSE;
u8 *pie = pnetwork->IEs;
u8 *p=NULL, *dst_ie=NULL, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
- u32 i, offset, ielen, ie_offset, remainder_ielen = 0;
+ u32 i, offset, ielen = 0, ie_offset, remainder_ielen = 0;
for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;) {
pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
--
2.24.1