[PATCH 2/3] hostap: use hostapd_get_oper_chwidth

Shay Bar shay.bar at celeno.com
Wed Feb 10 06:07:18 EST 2021


use hostapd_get_oper_chwidth(iconf) instead of iface->conf->vht_oper_chwidth.

Signed-off-by: Shay Bar <shay.bar at celeno.com>
---
 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




More information about the Hostap mailing list