From 35d21b3912c49e7b5e90f3cf04581c52ca35a86d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Jul 2015 17:44:09 +0200 Subject: [PATCH] phy: zero the per-rate power table in mt76_phy_set_txpower Signed-off-by: Felix Fietkau --- phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phy.c b/phy.c index 5bd997a8..516fc5f1 100644 --- a/phy.c +++ b/phy.c @@ -153,7 +153,7 @@ void mt76_phy_set_txpower(struct mt76_dev *dev) enum nl80211_chan_width width = dev->chandef.width; struct mt76_tx_power_info txp; int txp_0, txp_1, delta = 0; - struct mt76_rate_power t; + struct mt76_rate_power t = {}; mt76_get_power_info(dev, &txp);