diff --git a/sys/net/include/ieee802154_frame.h b/sys/net/include/ieee802154_frame.h index 5e38b73715..09465567bd 100644 --- a/sys/net/include/ieee802154_frame.h +++ b/sys/net/include/ieee802154_frame.h @@ -47,6 +47,12 @@ typedef enum __attribute__((packed)) { #define IEEE_802154_SHORT_MCAST_ADDR (0xffff) #define IEEE_802154_LONG_MCAST_ADDR {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, \ 0xff, 0xff}} + +/** + * @brief The default PAN id to use if not specified otherwise by upper layers + */ +#define IEEE_802154_DEFAULT_PAN_ID (1) + /** * @brief Transform 16-bit number from network order (big-endian) to * little-endian byte order (as used by IEEE 802.15.4). diff --git a/sys/shell/commands/sc_transceiver.c b/sys/shell/commands/sc_transceiver.c index 5fa95f534f..ec356f3187 100644 --- a/sys/shell/commands/sc_transceiver.c +++ b/sys/shell/commands/sc_transceiver.c @@ -252,7 +252,7 @@ void _transceiver_send_handler(int argc, char **argv) p.frame.dest_pan_id = atoi(argv[3]); } else { - p.frame.dest_pan_id = 1; + p.frame.dest_pan_id = IEEE_802154_DEFAULT_PAN_ID; } #else p.data = (uint8_t *) text_msg;