mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 12:42:51 +01:00
iwmon: fix incorrect mask printing HE capabilities
This was changed from too large of a mask (0xff) in an earlier
commit but was masking 5 bits instead of 6.
Fixes: 121c2c5653
("monitor: properly mask HE capabilities bitfield")
This commit is contained in:
parent
6bedcb4622
commit
6b94ab3889
@ -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 = 0x1f;
|
||||
uint8_t mask = 0x3f;
|
||||
|
||||
const char *he_channel_width_bitfield[] = {
|
||||
[0] = "40MHz supported (2.4GHz)",
|
||||
|
Loading…
Reference in New Issue
Block a user