commit 121c2c5653ce8a51a02cff7d2ce348a9546f9e2c
parent eb3345b51b812b77e96f922835eb796c10f6a9c7
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 1 Mar 2024 11:40:55 -0800
monitor: properly mask HE capabilities bitfield
Caught by static analysis, the bitfield was incorrect and was masking
8 entries (0xff), not 5 (0x1f).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)",