mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
monitor: properly mask HE capabilities bitfield
Caught by static analysis, the bitfield was incorrect and was masking 8 entries (0xff), not 5 (0x1f).
This commit is contained in:
parent
eb3345b51b
commit
121c2c5653
@ -1689,7 +1689,7 @@ static void print_ie_he_capabilities(unsigned int level,
|
|||||||
{
|
{
|
||||||
const uint8_t *ptr = data;
|
const uint8_t *ptr = data;
|
||||||
uint8_t width_set = bit_field((ptr + 6)[0], 1, 7);
|
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[] = {
|
const char *he_channel_width_bitfield[] = {
|
||||||
[0] = "40MHz supported (2.4GHz)",
|
[0] = "40MHz supported (2.4GHz)",
|
||||||
|
Loading…
Reference in New Issue
Block a user