]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove duplicated vht_capab parser entry
authorJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 08:35:31 +0000 (11:35 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 14:06:34 +0000 (17:06 +0300)
[VHT160-80PLUS80] was parsed twice with the second copy not really doing
anything useful.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/config_file.c

index 8ce62aa3c1ee873921663a1ca9d80987597c27e8..dc82aba4cf65b3e2c7b2d51a50f62443de39defd 100644 (file)
@@ -1093,8 +1093,6 @@ static int hostapd_config_vht_capab(struct hostapd_config *conf,
                conf->vht_capab |= VHT_CAP_SUPP_CHAN_WIDTH_160MHZ;
        if (os_strstr(capab, "[VHT160-80PLUS80]"))
                conf->vht_capab |= VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ;
-       if (os_strstr(capab, "[VHT160-80PLUS80]"))
-               conf->vht_capab |= VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ;
        if (os_strstr(capab, "[RXLDPC]"))
                conf->vht_capab |= VHT_CAP_RXLDPC;
        if (os_strstr(capab, "[SHORT-GI-80]"))