add scanCnt to L2_SCAN_FSM
This commit is contained in:
@@ -244,6 +244,7 @@ typedef struct {
|
||||
bool isLocked; // init acq done.
|
||||
bool isBmRcved;// bm received.
|
||||
bool isAcked; // 2way acq done.
|
||||
uint32_t scanCnt;
|
||||
uint32_t bmTimeout;
|
||||
uint32_t w2acqTimeout;
|
||||
SCAN_STAGE scanStage; // only for member node
|
||||
|
||||
@@ -440,7 +440,7 @@ static int32_t Scan_InitScanHandler(L2_INST* instPtr) {
|
||||
else {
|
||||
/* Antenna setting (reserved.) */
|
||||
L2_SetupNextSlot(instPtr, L2_TOR_RX, L2_INTRA_SCAN_FRAME);
|
||||
scanCnt++;
|
||||
scanFsmPtr->scanCnt++;
|
||||
}
|
||||
}
|
||||
else if(scanFsmPtr->scanMode == INTER_CLUSTER_MODE){
|
||||
@@ -448,12 +448,11 @@ static int32_t Scan_InitScanHandler(L2_INST* instPtr) {
|
||||
StageUpdate(scanFsmPtr, BM_ADVT_STAGE);
|
||||
/* Antenna setting (reserved.) */
|
||||
L2_SetupNextSlot(instPtr, L2_TOR_RX, L2_INTER_BM_FRAME);
|
||||
scanCnt = 0;
|
||||
} /* Otherwise remain INIT_SCAN_STAGE */
|
||||
else {
|
||||
/* Antenna setting (reserved.) */
|
||||
L2_SetupNextSlot(instPtr, L2_TOR_RX, L2_INTER_SCAN_FRAME);
|
||||
scanCnt++;
|
||||
scanFsmPtr->scanCnt++;
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user