Billy Kozak feec05cdf2 CC26xx - fix misuse of len variable in read_frame
read_frame was misuing the packet length in the following ways:
- returning non-zero even if buf_len is too short for the packet
- truncating the length to buf_len if len is too long then using the
  truncated (i.e. wrong) length to index into the buffer
- memcpying too many bytes (used buf_len instead of real length)

This commit fixes all of this and adds some code to report
on packet length errors (to match with cc2538 driver).
2015-08-14 12:44:55 -06:00
..
2015-05-17 15:01:01 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-05-17 15:01:01 +01:00
2015-05-15 09:21:02 +01:00
2015-02-25 13:09:56 +01:00
2015-05-15 09:21:04 +01:00
2015-02-25 13:09:56 +01:00
2015-02-25 13:09:56 +01:00
2015-05-15 09:21:02 +01:00
2015-05-17 15:01:01 +01:00