From 755605fddff723456e8cfb6d5bc7d8a22d8e5647 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 6 Sep 2016 23:43:28 +0200 Subject: [PATCH] iwmon: Fix RSN capability bit positions The numbers displayed for other bits are 0-based. --- monitor/nlmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index cf99c0d3..4f8d47cb 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -764,11 +764,11 @@ static void print_ie_rsn(unsigned int level, const char *label, sizeof(bytemask), rsn_capabilities_bitfield); count = (*((uint8_t *)data) & 0x0c) >> 2; - print_attr(level + 1, "RSN capabilities: bits 3 - 4: %s per PTKSA", + print_attr(level + 1, "RSN capabilities: bits 2 - 3: %s per PTKSA", rsn_capabilities_replay_counter[count]); count = (*((uint8_t *)data) & 0x30) >> 4; - print_attr(level + 1, "RSN capabilities: bits 5 - 6: %s per GTKSA", + print_attr(level + 1, "RSN capabilities: bits 4 - 5: %s per GTKSA", rsn_capabilities_replay_counter[count]); bytemask[0] = 0xc0;