use hostapd_get_oper_chwidth(iconf) instead of iface->conf->vht_oper_chwidth. Signed-off-by: Shay Bar <shay.bar@xxxxxxxxxx> --- src/ap/ieee802_11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 13fa450df..233da7bfc 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -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) */ -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap