Archived
1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
archive/package/kernel/mt76/patches/000-uninitialized.patch
John Crispin f6c7b07ec6 mt76: fix compile error
gcc complained about uninitialized variables

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 49065
2016-03-21 20:42:56 +00:00

12 lines
236 B
Diff

--- a/mt7603_mac.c
+++ b/mt7603_mac.c
@@ -474,7 +474,7 @@
bool stbc = false;
int n_rates = sta->n_rates;
u8 bw, bw_prev, bw_idx = 0;
- u16 val[8];
+ u16 val[8] = { 0 };
u32 w9 = mt76_rr(dev, addr + 9 * 4);
int count;
int i;