]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use hostapd_get_oper_chwidth() when build Transmit Power Envelope element
authorShay Bar <shay.bar@celeno.com>
Wed, 10 Feb 2021 11:07:18 +0000 (13:07 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Feb 2021 22:24:53 +0000 (00:24 +0200)
hostapd_get_oper_chwidth(iconf) instead of direct access to
iface->conf->vht_oper_chwidth is needed here to be able to use this with
HE in cases where VHT is not enabled.

Signed-off-by: Shay Bar <shay.bar@celeno.com>
src/ap/ieee802_11.c

index 13fa450df913b1ec5d7bb016d51415ef922982fd..233da7bfc22e999d4cf8a856c7ef85b18722bd69 100644 (file)
@@ -6790,7 +6790,7 @@ u8 * hostapd_eid_txpower_envelope(struct hostapd_data *hapd, u8 *eid)
        if (i == mode->num_channels)
                return eid;
 
-       switch (iface->conf->vht_oper_chwidth) {
+       switch (hostapd_get_oper_chwidth(iconf)) {
        case CHANWIDTH_USE_HT:
                if (iconf->secondary_channel == 0) {
                        /* Max Transmit Power count = 0 (20 MHz) */