3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

monitor: duration should be printed in host-order

This commit is contained in:
Denis Kenzior 2015-01-22 12:28:47 -06:00
parent 9e3cc8bf42
commit f94f3d561c

View File

@ -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) 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 1 (RA):", mpdu->mgmt_hdr.address_1);
print_address(level, "Address 2 (TA):", mpdu->mgmt_hdr.address_2); print_address(level, "Address 2 (TA):", mpdu->mgmt_hdr.address_2);