mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 12:11:17 +00:00
ncp: Fix handling of FCS for PROP_STREAM_RAW (#809)
The way the FCS was handled previously was based on assumptions (Like the `mLength` field of `RadioPacket` didn't include a CRC) that were incorrect. This change fixes that issue and also simplifies how the protocol handles the FCS bytes for `PROP_STREAM_RAW`. This commit addresses #808.
This commit is contained in:
committed by
Jonathan Hui
parent
35ddd1a200
commit
9c252dbac7
@@ -104,7 +104,6 @@ typedef struct RadioPacket
|
||||
uint8_t mLqi; ///< Link Quality Indicator for received frames.
|
||||
bool mSecurityValid: 1; ///< Security Enabled flag is set and frame passes security checks.
|
||||
bool mDidTX: 1; ///< Set to true if this packet sent from the radio. Ignored by radio driver.
|
||||
uint16_t mFcs; ///< Final checksum (optional)
|
||||
} RadioPacket;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user