From: John Crispin Date: Mon, 21 Mar 2016 20:42:56 +0000 (+0000) Subject: mt76: fix compile error X-Git-Tag: reboot~161 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=1898144b5f0f5cfe45f09222e6ccd1544defb619;hp=5d2f529c9b83d5f769258928b5ddd82f4dc9979e mt76: fix compile error gcc complained about uninitialized variables Signed-off-by: John Crispin SVN-Revision: 49065 --- diff --git a/package/kernel/mt76/patches/000-uninitialized.patch b/package/kernel/mt76/patches/000-uninitialized.patch new file mode 100644 index 0000000000..f27c9a2994 --- /dev/null +++ b/package/kernel/mt76/patches/000-uninitialized.patch @@ -0,0 +1,11 @@ +--- 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;