bugfix: should handle init scan frame as bm frame.

This commit is contained in:
Gatsby Van
2023-12-25 17:20:14 +08:00
parent 383de5a3c9
commit 222e262194
+3 -3
View File
@@ -584,11 +584,11 @@ int32_t ScanNet_PktHandler(L2_INST* instPtr) {
switch (L2_GetLastFrameType(instPtr)) { switch (L2_GetLastFrameType(instPtr)) {
case L2_INTER_SCAN_FRAME: case L2_INTER_SCAN_FRAME:
case L2_INTRA_SCAN_FRAME: case L2_INTRA_SCAN_FRAME:
// refer to "linklayer814.c/L2_FrameStateUpdate" // INTRA_BM_FRAME could be received if current frame type is L2_INTRA_SCAN_FRAME
// INTRA_BM_FRAME could be received if current frame type is INTRA_BM_FRAME
// in net setup stage (for member node). // in net setup stage (for member node).
// When SCAN frame was considered as received, handle the frame as BM frame. // 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_INTER_BM_FRAME:
case L2_INTRA_BM_FRAME: { case L2_INTRA_BM_FRAME: {
for (int i = 0; i < ARRAY_SIZE(intraBmFrameMsgs); i++) { for (int i = 0; i < ARRAY_SIZE(intraBmFrameMsgs); i++) {