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:
Robert Quattlebaum
2016-10-13 17:28:15 -07:00
committed by Jonathan Hui
parent 35ddd1a200
commit 9c252dbac7
4 changed files with 12 additions and 35 deletions
-1
View File
@@ -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;
/**