From a1f1046dcb97229e96009b52297a19cfef23dc23 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 6 Sep 2016 23:43:29 +0200 Subject: [PATCH] iwmon: Fix PMKID display Use unsigned to prevent the PMKID bytes being sign-extended. --- monitor/nlmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 4f8d47cb..339b2889 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -788,9 +788,9 @@ static void print_ie_rsn(unsigned int level, const char *label, goto end; for (i = 0; i < count; i += 16) { - const char *bytes = data; + const uint8_t *bytes = data; - print_attr(level + 1, "PKMKID: %02x:%02x:%02x:%02x:" + print_attr(level + 1, "PMKID: %02x:%02x:%02x:%02x:" "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:" "%02x:%02x:%02x:%02x", bytes[i], bytes[i + 1],