nullmac: now a MAC that does nothing

This commit is contained in:
Simon Duquennoy 2017-05-17 14:27:12 +02:00
parent c3559a6df3
commit 682e8f42b9

View File

@ -48,26 +48,23 @@
static void
send_packet(mac_callback_t sent, void *ptr)
{
packetbuf_set_attr(PACKETBUF_ATTR_FRAME_TYPE, FRAME802154_DATAFRAME);
NETSTACK_RDC.send(sent, ptr);
}
/*---------------------------------------------------------------------------*/
static void
packet_input(void)
{
NETSTACK_NETWORK.input();
}
/*---------------------------------------------------------------------------*/
static int
on(void)
{
return NETSTACK_RDC.on();
return 0;
}
/*---------------------------------------------------------------------------*/
static int
off(int keep_radio_on)
{
return NETSTACK_RDC.off(keep_radio_on);
return 0;
}
/*---------------------------------------------------------------------------*/
static unsigned short