From a41bd617bce27a872f0a36888bf296373e4780d0 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Mon, 14 Oct 2024 19:53:37 +0800 Subject: [PATCH] mt_wifi: backport 7.6.7.2 vht_bw patch for 7.6.6.1 --- .../mt_wifi/patches-7661/019-fix-vht-bw.patch | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/package/mtk/drivers/mt_wifi/patches-7661/019-fix-vht-bw.patch b/package/mtk/drivers/mt_wifi/patches-7661/019-fix-vht-bw.patch index b70fcca304..028c1f950d 100644 --- a/package/mtk/drivers/mt_wifi/patches-7661/019-fix-vht-bw.patch +++ b/package/mtk/drivers/mt_wifi/patches-7661/019-fix-vht-bw.patch @@ -1,16 +1,11 @@ --- a/mt_wifi/embedded/mgmt/mgmt_vht.c +++ b/mt_wifi/embedded/mgmt/mgmt_vht.c -@@ -636,13 +636,9 @@ +@@ -636,7 +636,7 @@ INT vht_mode_adjust(RTMP_ADAPTER *pAd, M } else { /* can not know peer capability, use the bw from support opclass as maximum capability. */ - if ((bw_from_opclass != NULL) && ((*bw_from_opclass) < BW_80)) -- pEntry->MaxHTPhyMode.field.BW = BW_40; -- else { ++ if ((bw_from_opclass != NULL) && ((*bw_from_opclass) == BW_40)) + pEntry->MaxHTPhyMode.field.BW = BW_40; + else { pEntry->MaxHTPhyMode.field.BW = BW_80; - pEntry->MaxHTPhyMode.field.ShortGI = (vht_sgi & (cap->vht_cap.sgi_80M)); - } -- } - pEntry->MaxHTPhyMode.field.STBC = ((wlan_config_get_vht_stbc(pEntry->wdev) & cap->vht_cap.rx_stbc) ? 1 : 0); - } else if ((ht_phyinfo->vht_bw == VHT_BW_80) && (cap->vht_cap.ch_width != 0)) { - /* bw80 */