bugfix: should handle init scan frame as bm frame.
This commit is contained in:
@@ -584,11 +584,11 @@ int32_t ScanNet_PktHandler(L2_INST* instPtr) {
|
||||
switch (L2_GetLastFrameType(instPtr)) {
|
||||
case L2_INTER_SCAN_FRAME:
|
||||
case L2_INTRA_SCAN_FRAME:
|
||||
// refer to "linklayer814.c/L2_FrameStateUpdate"
|
||||
// INTRA_BM_FRAME could be received if current frame type is INTRA_BM_FRAME
|
||||
// in net setup stage(for member node).
|
||||
// INTRA_BM_FRAME could be received if current frame type is L2_INTRA_SCAN_FRAME
|
||||
// in net setup stage (for member node).
|
||||
// When SCAN frame was considered as received, handle the frame as BM frame.
|
||||
break;
|
||||
LockStateUpdate(scanFsmPtr, true);
|
||||
StageUpdate(scanFsmPtr, L2_SCAN_BMADVT_STAGE);
|
||||
case L2_INTER_BM_FRAME:
|
||||
case L2_INTRA_BM_FRAME: {
|
||||
for (int i = 0; i < ARRAY_SIZE(intraBmFrameMsgs); i++) {
|
||||
|
||||
Reference in New Issue
Block a user