mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
ie: remove 80+80 column in vht_width_map
For simplicity 160Mhz and 80+80Mhz were grouped together when parsing the VHT capabilities, but the 80+80 bits were left in vht_widht_map. This could cause an overflow when getting the width map.
This commit is contained in:
parent
3ca8a18b4e
commit
62748e567d
8
src/ie.c
8
src/ie.c
@ -1676,10 +1676,10 @@ static int ie_parse_ht_capability_from_data(const uint8_t *data, uint8_t len,
|
||||
* This also allows us to group the 160/80+80 widths together, since they are
|
||||
* the same when Extended NSS BW is zero.
|
||||
*/
|
||||
static const uint8_t vht_width_map[3][5] = {
|
||||
[0] = { 1, 1, 1, 0, 0 },
|
||||
[1] = { 1, 1, 1, 1, 0 },
|
||||
[2] = { 1, 1, 1, 1, 1 },
|
||||
static const uint8_t vht_width_map[3][4] = {
|
||||
[0] = { 1, 1, 1, 0 },
|
||||
[1] = { 1, 1, 1, 1 },
|
||||
[2] = { 1, 1, 1, 1 },
|
||||
};
|
||||
|
||||
static int ie_parse_vht_capability(struct ie_tlv_iter *vht_iter,
|
||||
|
Loading…
Reference in New Issue
Block a user