summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
672c808)
A cache entry should not be set to LIN_CACHE_RESPONSE if there is nothing
to reply from this node. A dlc set > 0 configures the expected length.
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
sl->lin_state = SLSTATE_ID_RECEIVED;
/* Is the length of data set in frame cache? */
sl->lin_state = SLSTATE_ID_RECEIVED;
/* Is the length of data set in frame cache? */
- if (sce->frame_fl & LIN_CACHE_RESPONSE) {
sl->rx_expect += sce->dlc + 1; /* + checksum */
sl->rx_len_unknown = false;
set_bit(SLF_MSGEVENT, &sl->flags);
sl->rx_expect += sce->dlc + 1; /* + checksum */
sl->rx_len_unknown = false;
set_bit(SLF_MSGEVENT, &sl->flags);