From b869f114102b62005c3868648e1dae5edd3e7694 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 15 Oct 2024 09:18:13 +0800 Subject: [PATCH] mt_wifi: fix 7.6.7.2 rxrate stainfo patch --- .../patches-7672/003-fix-rxrate-stainfo.patch | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/package/mtk/drivers/mt_wifi/patches-7672/003-fix-rxrate-stainfo.patch b/package/mtk/drivers/mt_wifi/patches-7672/003-fix-rxrate-stainfo.patch index 1a5f42ef82..feef4862f6 100644 --- a/package/mtk/drivers/mt_wifi/patches-7672/003-fix-rxrate-stainfo.patch +++ b/package/mtk/drivers/mt_wifi/patches-7672/003-fix-rxrate-stainfo.patch @@ -1,5 +1,7 @@ ---- a/mt_wifi/embedded/common/cmm_info.c -+++ b/mt_wifi/embedded/common/cmm_info.c +Index: mt_wifi/mt_wifi/embedded/common/cmm_info.c +=================================================================== +--- mt_wifi.orig/mt_wifi/embedded/common/cmm_info.c ++++ mt_wifi/mt_wifi/embedded/common/cmm_info.c @@ -7164,6 +7164,35 @@ USHORT RTMPGetLastTxRate(PRTMP_ADAPTER p return lastTxRate.word; } @@ -44,10 +46,14 @@ if (pMacTab == NULL) { MTWF_DBG(pAd, DBG_CAT_CFG, DBG_SUBCAT_ALL, DBG_LVL_ERROR, "Allocate memory fail!!!\n"); -@@ -7207,10 +7237,15 @@ VOID RTMPIoctlGetMacTableStaInfo( - pDst->AvgRssi1 = pEntry->RssiSample.AvgRssi[1]; - pDst->AvgRssi2 = pEntry->RssiSample.AvgRssi[2]; - pDst->AvgRssi3 = pEntry->RssiSample.AvgRssi[3]; +@@ -7203,14 +7233,15 @@ VOID RTMPIoctlGetMacTableStaInfo( + pDst->MimoPs = pEntry->MmpsMode; + #endif /* DOT11_N_SUPPORT */ + /* Fill in RSSI per entry*/ +- pDst->AvgRssi0 = pEntry->RssiSample.AvgRssi[0]; +- pDst->AvgRssi1 = pEntry->RssiSample.AvgRssi[1]; +- pDst->AvgRssi2 = pEntry->RssiSample.AvgRssi[2]; +- pDst->AvgRssi3 = pEntry->RssiSample.AvgRssi[3]; + rtmp_get_rssi(pAd, pEntry->wcid, rssi, 4); + pDst->AvgRssi0 = rssi[0]; + pDst->AvgRssi1 = rssi[1];