mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mt_wifi: fix 7.6.7.2 rxrate stainfo patch
This commit is contained in:
parent
9a80f9bd59
commit
b869f11410
@ -1,5 +1,7 @@
|
|||||||
--- a/mt_wifi/embedded/common/cmm_info.c
|
Index: mt_wifi/mt_wifi/embedded/common/cmm_info.c
|
||||||
+++ b/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
|
@@ -7164,6 +7164,35 @@ USHORT RTMPGetLastTxRate(PRTMP_ADAPTER p
|
||||||
return lastTxRate.word;
|
return lastTxRate.word;
|
||||||
}
|
}
|
||||||
@ -44,10 +46,14 @@
|
|||||||
|
|
||||||
if (pMacTab == NULL) {
|
if (pMacTab == NULL) {
|
||||||
MTWF_DBG(pAd, DBG_CAT_CFG, DBG_SUBCAT_ALL, DBG_LVL_ERROR, "Allocate memory fail!!!\n");
|
MTWF_DBG(pAd, DBG_CAT_CFG, DBG_SUBCAT_ALL, DBG_LVL_ERROR, "Allocate memory fail!!!\n");
|
||||||
@@ -7207,10 +7237,15 @@ VOID RTMPIoctlGetMacTableStaInfo(
|
@@ -7203,14 +7233,15 @@ VOID RTMPIoctlGetMacTableStaInfo(
|
||||||
pDst->AvgRssi1 = pEntry->RssiSample.AvgRssi[1];
|
pDst->MimoPs = pEntry->MmpsMode;
|
||||||
pDst->AvgRssi2 = pEntry->RssiSample.AvgRssi[2];
|
#endif /* DOT11_N_SUPPORT */
|
||||||
pDst->AvgRssi3 = pEntry->RssiSample.AvgRssi[3];
|
/* 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);
|
+ rtmp_get_rssi(pAd, pEntry->wcid, rssi, 4);
|
||||||
+ pDst->AvgRssi0 = rssi[0];
|
+ pDst->AvgRssi0 = rssi[0];
|
||||||
+ pDst->AvgRssi1 = rssi[1];
|
+ pDst->AvgRssi1 = rssi[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user