mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mt_wifi: backport 7.6.7.2 vht_bw patch for 7.6.6.1
This commit is contained in:
parent
2ca8358720
commit
a41bd617bc
@ -1,16 +1,11 @@
|
|||||||
--- a/mt_wifi/embedded/mgmt/mgmt_vht.c
|
--- a/mt_wifi/embedded/mgmt/mgmt_vht.c
|
||||||
+++ b/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 {
|
} else {
|
||||||
/* can not know peer capability,
|
/* can not know peer capability,
|
||||||
use the bw from support opclass as maximum capability. */
|
use the bw from support opclass as maximum capability. */
|
||||||
- if ((bw_from_opclass != NULL) && ((*bw_from_opclass) < BW_80))
|
- if ((bw_from_opclass != NULL) && ((*bw_from_opclass) < BW_80))
|
||||||
- pEntry->MaxHTPhyMode.field.BW = BW_40;
|
+ if ((bw_from_opclass != NULL) && ((*bw_from_opclass) == BW_40))
|
||||||
- else {
|
pEntry->MaxHTPhyMode.field.BW = BW_40;
|
||||||
|
else {
|
||||||
pEntry->MaxHTPhyMode.field.BW = BW_80;
|
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 */
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user