From b9d97c9d87c766dc79015302aedc7eab5471723e Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 5 Jun 2019 14:51:29 -0700 Subject: [PATCH] monitor: change naming of Microsoft OUI Inside print_ie_vendor, the Microsoft OUI is checked for a WPA IE. The variable name for the OUI was wfa_oui, but this OUI is not actually the WiFi-Alliance (sometimes refered to as 'wfa') but rather the Microsoft OUI. --- monitor/nlmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index fc5664d0..6ab1900a 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -884,7 +884,7 @@ end: static void print_ie_vendor(unsigned int level, const char *label, const void *data, uint16_t size) { - static const unsigned char wfa_oui[3] = { 0x00, 0x50, 0xf2 }; + static const unsigned char msoft_oui[3] = { 0x00, 0x50, 0xf2 }; const uint8_t *oui = data; const char *str = NULL; unsigned int i; @@ -915,9 +915,9 @@ static void print_ie_vendor(unsigned int level, const char *label, data += 4; size -= 4; - if (!memcmp(oui, wfa_oui, 3)) { + if (!memcmp(oui, msoft_oui, 3)) { switch (oui[3]) { - case 1: /* WFA WPA IE */ + case 1: /* MSoft WPA IE */ print_ie_wpa(level + 2, label, data, size); return; default: