From 8562ae61559f1114c94cf15623a8dfef564bb65a Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Mon, 2 Sep 2024 15:09:12 +0800 Subject: [PATCH] hostap: fix SAP UDP RX low throughput in 5GHz The default Max A-MPDU length is 8191 shown in the VHT Cap Info from SAP's beacon/Assoc response, and this length is read from hapd->iface->conf->vht_capab. It will lead to the AMPDU only contains 5 packets and the throughput is only 60Mbps for 1x1 HE case in 5GHz. Change the default vht_capab to VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX (1048575), and the throughput can be increased to 83Mbps. Signed-off-by: Maochen Wang --- modules/hostap/src/supp_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hostap/src/supp_main.c b/modules/hostap/src/supp_main.c index 322eefb5ce8..5d5bcbeec09 100644 --- a/modules/hostap/src/supp_main.c +++ b/modules/hostap/src/supp_main.c @@ -874,6 +874,7 @@ struct hostapd_config *hostapd_config_read2(const char *fname) conf->ht_op_mode_fixed = 1; conf->ieee80211ac = 1; conf->vht_oper_chwidth = CHANWIDTH_USE_HT; + conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX; conf->ieee80211ax = 1; conf->he_oper_chwidth = CHANWIDTH_USE_HT; conf->he_phy_capab.he_su_beamformer = 0;