3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

monitor: Fix Capabilities Field dump

The capabilities field was not decoded from the appropriate place in the
data file.  This resulted in bogus values being printed.
This commit is contained in:
Denis Kenzior 2015-03-20 13:47:47 -05:00
parent d78883a068
commit 9318414f22

View File

@ -752,8 +752,6 @@ static void print_ie_rsn(unsigned int level, const char *label,
if (end - data < 2)
goto end;
data += 2;
bytemask[0] = 0x03;
bytemask[1] = 0x00;
print_ie_bitfield(level + 1, "RSN capabilities", data, bytemask,
@ -772,6 +770,8 @@ static void print_ie_rsn(unsigned int level, const char *label,
print_ie_bitfield(level + 1, "RSN capabilities", data, bytemask,
sizeof(bytemask), rsn_capabilities_bitfield);
data += 2;
if (end - data < 2)
goto end;