mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 06:37:46 +00:00
ncp: Add support for PROP_STREAM_RAW (#644)
* ncp: Add support for `PROP_STREAM_RAW` This change allows the NCP to be a packet sniffer when used with host software that supports this feature. See the section of the Spinel protocol document titled ["Sniffing Raw Packets"][1] for an example of how this property is intended to be used. [1]: https://cdn.rawgit.com/openthread/openthread/654f953fdaf34e457bee61eb674908141d0a5f8e/doc/draft-spinel-protocol.html#rfc.appendix.F.10 * Allow sniffer to see raw outbound packets on the Pcap interface. * Remove some of the metadata from the raw frames until the format can be better thought out * Add optional support for 802.15.4 FCS reporting.
This commit is contained in:
committed by
Jonathan Hui
parent
d848ed12e8
commit
2522d2e2d7
@@ -102,6 +102,7 @@ typedef struct RadioPacket
|
||||
int8_t mPower; ///< Transmit/receive power in dBm.
|
||||
uint8_t mLqi; ///< Link Quality Indicator for received frames.
|
||||
bool mSecurityValid; ///< Security Enabled flag is set and frame passes security checks.
|
||||
uint16_t mFcs; ///< Final checksum (optional)
|
||||
} RadioPacket;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user