Skip to content

Commit

Permalink
Merge pull request RIOT-OS#2494 from gebart/pr/transceiver-frame-size
Browse files Browse the repository at this point in the history
sys/net/transceiver: Copy the entire frame for AT86RF231 and CC2420
  • Loading branch information
Joakim Gebart committed Feb 27, 2015
2 parents bafafe7 + 716f48d commit 911bf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/transceiver/transceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void receive_cc2420_packet(ieee802154_packet_t *trans_p)
dINT();
cc2420_packet_t *p = &cc2420_rx_buffer[rx_buffer_pos];
trans_p->length = p->length;
memcpy(&trans_p->frame, &p->frame, p->length);
memcpy(&trans_p->frame, &p->frame, sizeof(trans_p->frame));
trans_p->rssi = p->rssi;
trans_p->crc = p->crc;
trans_p->lqi = p->lqi;
Expand Down Expand Up @@ -678,7 +678,7 @@ void receive_at86rf231_packet(ieee802154_packet_t *trans_p)
trans_p->rssi = p->rssi;
trans_p->crc = p->crc;
trans_p->lqi = p->lqi;
memcpy(&trans_p->frame, &p->frame, p->length);
memcpy(&trans_p->frame, &p->frame, sizeof(trans_p->frame));
memcpy(&data_buffer[transceiver_buffer_pos * AT86RF231_MAX_DATA_LENGTH], p->frame.payload,
p->frame.payload_len);
trans_p->frame.payload = (uint8_t *) & (data_buffer[transceiver_buffer_pos * AT86RF231_MAX_DATA_LENGTH]);
Expand Down

0 comments on commit 911bf20

Please sign in to comment.