forked from gatsby/datalink_repo
bugfix: correct scan net restart mechanism.
This commit is contained in:
@@ -533,8 +533,7 @@ static int32_t Scan_BmAdvtHandler(L2_INST *instPtr)
|
|||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
DBG_WARNING("BM timeout, restart net scan from L2_SCAN_INIT_STAGE.\n");
|
DBG_WARNING("BM timeout, restart net scan from L2_SCAN_INIT_STAGE.\n");
|
||||||
scanFsmPtr->bmTimeout = 0; /* reset listen counter. */
|
ScanNet_Reset(scanFsmPtr);
|
||||||
StageUpdate(scanFsmPtr, L2_SCAN_INIT_STAGE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -592,8 +591,7 @@ static int32_t Scan_2WAcqHandler(L2_INST *instPtr)
|
|||||||
if (scanFsmPtr->w2acqTimeout >= WAY2_ACQ_SLOT_MAX)
|
if (scanFsmPtr->w2acqTimeout >= WAY2_ACQ_SLOT_MAX)
|
||||||
{
|
{
|
||||||
DBG_WARNING("2WAcq timeout, restart net scan from L2_SCAN_INIT_STAGE.\n");
|
DBG_WARNING("2WAcq timeout, restart net scan from L2_SCAN_INIT_STAGE.\n");
|
||||||
scanFsmPtr->w2acqTimeout = 0; // reset counter for next scan.
|
ScanNet_Reset(scanFsmPtr);
|
||||||
StageUpdate(scanFsmPtr, L2_SCAN_INIT_STAGE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user