bugfix: update frame type determination.
This commit is contained in:
@@ -332,7 +332,8 @@ void L2_FrameStateUpdate(L2_INST *instPtr)
|
||||
ASSERT(instPtr != NULL);
|
||||
PHY_INST *phyRef = instPtr->config.phyInstPtr;
|
||||
bool isValid;
|
||||
|
||||
L2_FRAME_TYPE recvType = L2_GetLastOptFrameType(instPtr);
|
||||
L2_FRAME_TYPE sendType = L2_GetNextFrameType(instPtr);
|
||||
// Update frame state.
|
||||
if (Phy_IsFrameValid(phyRef) == false)
|
||||
{
|
||||
@@ -347,7 +348,7 @@ void L2_FrameStateUpdate(L2_INST *instPtr)
|
||||
|
||||
// Update frame state.
|
||||
// FIXME: add log
|
||||
switch (L2_GetReceiveFrameType(instPtr))
|
||||
switch (recvType)
|
||||
{
|
||||
case L2_SCAN_FRAME:
|
||||
case L2_ADV_FRAME:
|
||||
|
||||
Reference in New Issue
Block a user