Commit 36fc296e authored by Adam Wujek's avatar Adam Wujek

[BUG: #34] proto-ext-whiterabbit: Do not fail handshake if wrong frame received

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 7d616547
......@@ -41,7 +41,6 @@ int wr_calibrated(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp->next_state = WRS_WR_LINK_ON;
} else {
pp_diag(ppi, ext, 1, "WR: Invalid msgId(x%04x) received. %s was expected\n", wrMsgId, "CALIBRATE/WR_MODE_ON");
wr_handshake_fail(ppi);
}
return 0;
......
......@@ -35,7 +35,6 @@ int wr_locked(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp->next_state= WRS_RESP_CALIB_REQ;
} else {
pp_diag(ppi, ext, 1, "WR: Invalid msgId(x%04x) received. %s was expected\n",wrMsgId, "CALIBRATE");
wr_handshake_fail(ppi);
}
return 0;
}
......
......@@ -35,7 +35,6 @@ int wr_m_lock(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp->next_state = WRS_CALIBRATION;
} else {
pp_diag(ppi, ext, 1, "WR: Invalid msgId(x%04x) received. %s was expected\n",wrMsgId, "LOCKED");
wr_handshake_fail(ppi);
}
return 0;
}
......
......@@ -37,7 +37,6 @@ int wr_present(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp->next_state = WRS_S_LOCK;
} else {
pp_diag(ppi, ext, 1, "WR: Invalid msgId(x%04x) received. %s was expected\n",wrMsgId, "LOCK");
wr_handshake_fail(ppi);
}
return 0;
}
......
......@@ -37,7 +37,6 @@ int wr_resp_calib_req(struct pp_instance *ppi, void *buf, int len, int new_state
WRS_CALIBRATION;
} else {
pp_diag(ppi, ext, 1, "WR: Invalid msgId(x%04x) received. %s was expected\n",wrMsgId, "CALIBRATED");
wr_handshake_fail(ppi);
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment