[WCNCR00155320] misc: Fix sometimes inaccurate Rx MCS output issue
[Description]
Fix a issue that Rx MCS periodic collection timer
unexpected stopped after AP reconnection,
thus inaccurate distribution will be displayed.
Change-Id: Icb5ba9f0401d69c16ab92258c9be8f7d9cc1f1f4
Signed-off-by: Glenn Tung <glenn.tung@mediatek.com>
CR-Id: WCNCR00155320
Feature: misc
Reviewed-on: http://gerrit.mediatek.inc:8080/1321430
CheckPatch: Check Patch <srv_checkpatch@mediatek.com>
Reviewed-by: George Kuo <george.kuo@mediatek.com>
Reviewed-by: ZD Hu <zd.hu@mediatek.com>
Build: srv_neptune_adm <srv_neptune_adm@mediatek.com>
Test: srv_neptune_adm <srv_neptune_adm@mediatek.com>
diff --git a/mgmt/ais_fsm.c b/mgmt/ais_fsm.c
index 64825d4..81b71b1 100644
--- a/mgmt/ais_fsm.c
+++ b/mgmt/ais_fsm.c
@@ -3147,7 +3147,7 @@
UINT_8 ucStaIdx = 0;
if (prAdapter->prAisBssInfo->prStaRecOfAP == NULL)
- return;
+ goto out;
ucStaIdx = prAdapter->prAisBssInfo->prStaRecOfAP->ucIndex;
@@ -3157,6 +3157,7 @@
ucSmapleCnt = (ucSmapleCnt + 1) % MCS_INFO_SAMPLE_CNT;
}
+out:
cnmTimerStartTimer(prAdapter, &prAdapter->rRxMcsInfoTimer, 100);
}
#endif