Diff between e27e058c6ef0d8e4d058abc145ea88829e994234 and 5e3da6645b215ecd147f0a71b0fc54a0c68920fe

Changed Files

File Additions Deletions Status
monitor/packet.c +4 -5 modified

Full Patch

diff --git a/monitor/packet.c b/monitor/packet.c
index aedbff0..255cc57 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -2293,16 +2293,15 @@ void packet_monitor(struct timeval *tv, uint16_t index, uint16_t opcode,
 void packet_simulator(struct timeval *tv, uint16_t frequency,
 					const void *data, uint16_t size)
 {
-	char label[20];
-	char extra[20];
+	char str[10];
 
 	if (tv && time_offset == ((time_t) -1))
 		time_offset = tv->tv_sec;
 
-	sprintf(label, "Physical packet: %u MHz", frequency);
-	sprintf(extra, "(Channel %u)", (frequency - 2402) / 2);
+	sprintf(str, "%u MHz", frequency);
 
-	print_packet(tv, 0, '*', COLOR_PHY_PACKET, label, NULL, extra);
+	print_packet(tv, 0, '*', COLOR_PHY_PACKET,
+					"Physical packet:", NULL, str);
 
 	ll_packet(frequency, data, size);
 }