framer-802154: bugfix on source address setting

This commit is contained in:
Yasuyuki Tanaka 2016-12-14 14:00:14 +01:00
parent 9ef28c7eae
commit 586fb9a7fe

View File

@ -173,7 +173,8 @@ create_frame(int type, int do_create)
* Set up the source address using only the long address mode for * Set up the source address using only the long address mode for
* phase 1. * phase 1.
*/ */
linkaddr_copy((linkaddr_t *)&params.src_addr, &linkaddr_node_addr); linkaddr_copy((linkaddr_t *)&params.src_addr,
packetbuf_addr(PACKETBUF_ADDR_SENDER));
params.payload = packetbuf_dataptr(); params.payload = packetbuf_dataptr();
params.payload_len = packetbuf_datalen(); params.payload_len = packetbuf_datalen();