mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt76: mt7915: fix uninitialized variable in mt7915_tm_set_tx_cont()
Set MT_PHY_TYPE_OFDM as default value for mode variable in mt7915_tm_set_tx_cont routine in order to proper initialize it even for default case. Fixes: 3f0caa3cbf94: "mt76: mt7915: add support for continuous tx in testmode" Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
8da10d6f92
commit
80a87412e9
+2
-3
@@ -569,9 +569,6 @@ mt7915_tm_set_tx_cont(struct mt7915_phy *phy, bool en)
|
||||
case MT76_TM_TX_MODE_CCK:
|
||||
mode = MT_PHY_TYPE_CCK;
|
||||
break;
|
||||
case MT76_TM_TX_MODE_OFDM:
|
||||
mode = MT_PHY_TYPE_OFDM;
|
||||
break;
|
||||
case MT76_TM_TX_MODE_HT:
|
||||
mode = MT_PHY_TYPE_HT;
|
||||
break;
|
||||
@@ -590,7 +587,9 @@ mt7915_tm_set_tx_cont(struct mt7915_phy *phy, bool en)
|
||||
case MT76_TM_TX_MODE_HE_MU:
|
||||
mode = MT_PHY_TYPE_HE_MU;
|
||||
break;
|
||||
case MT76_TM_TX_MODE_OFDM:
|
||||
default:
|
||||
mode = MT_PHY_TYPE_OFDM;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user