aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mt76
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-03-21 20:42:56 +0000
committerJohn Crispin <blogic@openwrt.org>2016-03-21 20:42:56 +0000
commit79a34f9a653177bae5d94526ea1fb0f6ecbda5fe (patch)
tree0c45bed0f88a9bb8c32f42dba9a753610e062102 /package/kernel/mt76
parentdd4078c18b90befb896280c558ddcdb6f1f0c4d3 (diff)
downloadmaster-187ad058-79a34f9a653177bae5d94526ea1fb0f6ecbda5fe.tar.gz
master-187ad058-79a34f9a653177bae5d94526ea1fb0f6ecbda5fe.tar.bz2
master-187ad058-79a34f9a653177bae5d94526ea1fb0f6ecbda5fe.zip
mt76: fix compile error
gcc complained about uninitialized variables Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49065 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mt76')
-rw-r--r--package/kernel/mt76/patches/000-uninitialized.patch11
1 files changed, 11 insertions, 0 deletions
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;