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.
This commit is contained in:
James Prestwood 2019-06-05 14:51:29 -07:00 committed by Denis Kenzior
parent edd4f2b2a2
commit b9d97c9d87
1 changed files with 3 additions and 3 deletions

View File

@ -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: