From f94f3d561c09dffbc52993d1dce0e01eade64886 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 22 Jan 2015 12:28:47 -0600 Subject: [PATCH] monitor: duration should be printed in host-order --- monitor/nlmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 52c25698..101997af 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -615,7 +615,8 @@ static void print_mpdu_frame_control(unsigned int level, static void print_mpdu_mgmt_header(unsigned int level, const struct mpdu *mpdu) { - print_attr(level, "Duration: %u", mpdu->mgmt_hdr.duration); + print_attr(level, "Duration: %u", + L_LE16_TO_CPU(mpdu->mgmt_hdr.duration)); print_address(level, "Address 1 (RA):", mpdu->mgmt_hdr.address_1); print_address(level, "Address 2 (TA):", mpdu->mgmt_hdr.address_2);