From 121c2c5653ce8a51a02cff7d2ce348a9546f9e2c Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 1 Mar 2024 11:40:55 -0800 Subject: [PATCH] monitor: properly mask HE capabilities bitfield Caught by static analysis, the bitfield was incorrect and was masking 8 entries (0xff), not 5 (0x1f). --- monitor/nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index bb8cd496..6fe63b8d 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -1689,7 +1689,7 @@ static void print_ie_he_capabilities(unsigned int level, { const uint8_t *ptr = data; uint8_t width_set = bit_field((ptr + 6)[0], 1, 7); - uint8_t mask = 0xff; + uint8_t mask = 0x1f; const char *he_channel_width_bitfield[] = { [0] = "40MHz supported (2.4GHz)",