Commit 665b2c78 authored by Felix Fietkau's avatar Felix Fietkau

mt76: mt7915: limit firmware log message printk to buffer length

Avoid including garbage from previous rx data
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent d76d6c3b
...@@ -521,7 +521,8 @@ mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb) ...@@ -521,7 +521,8 @@ mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb)
break; break;
} }
wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data); wiphy_info(mt76_hw(dev)->wiphy, "%s: %*s", type,
(int)(skb->len - sizeof(*rxd)), data);
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment