mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
xbee: fixed broadcast header
Destination address is at tx_buf[5] and tx_buf[6] rather than tx_buf[4] and tx_buf[5]. Broadcast header is overridden by following code mistakenly.
This commit is contained in:
parent
4f864b0ec8
commit
bea5eacea2
@ -538,10 +538,11 @@ static int _send(gnrc_netdev_t *netdev, gnrc_pktsnip_t *pkt)
|
||||
dev->tx_buf[1] = (uint8_t)((size + 5) >> 8);
|
||||
dev->tx_buf[2] = (uint8_t)(size + 5);
|
||||
dev->tx_buf[3] = API_ID_TX_SHORT_ADDR;
|
||||
dev->tx_buf[4] = 0xff;
|
||||
dev->tx_buf[5] = 0xff;
|
||||
dev->tx_buf[6] = 0xff;
|
||||
pos = 7;
|
||||
}
|
||||
if (hdr->dst_l2addr_len == IEEE802154_SHORT_ADDRESS_LEN) {
|
||||
else if (hdr->dst_l2addr_len == IEEE802154_SHORT_ADDRESS_LEN) {
|
||||
dev->tx_buf[1] = (uint8_t)((size + 5) >> 8);
|
||||
dev->tx_buf[2] = (uint8_t)(size + 5);
|
||||
dev->tx_buf[3] = API_ID_TX_SHORT_ADDR;
|
||||
|
Loading…
Reference in New Issue
Block a user