packetbuf: Use packetbuf_holds_broadcast() all-over
This commit is contained in:
parent
3e44e8b258
commit
fb00a217f5
10 changed files with 15 additions and 33 deletions
|
@ -426,11 +426,7 @@ sicslowmac_dataRequest(void)
|
|||
params.fcf.srcAddrMode = LONGADDRMODE;
|
||||
params.dest_pid = ieee15_4ManagerAddress.get_dst_panid();
|
||||
|
||||
/*
|
||||
* If the output address is NULL in the Rime buf, then it is broadcast
|
||||
* on the 802.15.4 network.
|
||||
*/
|
||||
if(linkaddr_cmp(packetbuf_addr(PACKETBUF_ADDR_RECEIVER), &linkaddr_null) ) {
|
||||
if(packetbuf_holds_broadcast()) {
|
||||
/* Broadcast requires short address mode. */
|
||||
params.fcf.destAddrMode = SHORTADDRMODE;
|
||||
params.dest_pid = BROADCASTPANDID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue