eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 62748e567d117d38cdd67b0fb556e422aacf979e
parent 3ca8a18b4e1d49a0527cf5cfa68ae17cfcae5c13
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Fri, 22 Mar 2019 15:44:06 -0700

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.

Diffstat:
Msrc/ie.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/ie.c b/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,