mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_lwmac: adjust use of error CSMA flag for packet transmit.
This commit is contained in:
parent
ea27fe34d1
commit
6c57999b2b
@ -24,7 +24,6 @@
|
|||||||
#include "periph/rtt.h"
|
#include "periph/rtt.h"
|
||||||
#include "net/gnrc.h"
|
#include "net/gnrc.h"
|
||||||
#include "net/gnrc/mac/mac.h"
|
#include "net/gnrc/mac/mac.h"
|
||||||
#include "net/gnrc/netdev.h"
|
|
||||||
#include "net/gnrc/lwmac/lwmac.h"
|
#include "net/gnrc/lwmac/lwmac.h"
|
||||||
#include "include/lwmac_internal.h"
|
#include "include/lwmac_internal.h"
|
||||||
#include "net/gnrc/netif2/ieee802154.h"
|
#include "net/gnrc/netif2/ieee802154.h"
|
||||||
@ -100,7 +99,7 @@ int _gnrc_lwmac_transmit(gnrc_netif2_t *netif, gnrc_pktsnip_t *pkt)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODULE_GNRC_MAC
|
#ifdef MODULE_GNRC_MAC
|
||||||
if (netif->mac.mac_info & GNRC_NETDEV_MAC_INFO_CSMA_ENABLED) {
|
if (netif->mac.mac_info & GNRC_NETIF2_MAC_INFO_CSMA_ENABLED) {
|
||||||
res = csma_sender_csma_ca_send(dev, vector, n, &netif->mac.csma_conf);
|
res = csma_sender_csma_ca_send(dev, vector, n, &netif->mac.csma_conf);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user