Skip to content
Snippets Groups Projects
Commit 4bf9d590 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #5942 from zhuoshuguo/add_gnrc_mac_definition

gnrc: add l2_address into gnrc_netdev2_t
parents dc45598e 70369d65
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "net/netdev2.h" #include "net/netdev2.h"
#include "net/gnrc.h" #include "net/gnrc.h"
#include "net/gnrc/mac/types.h" #include "net/gnrc/mac/types.h"
#include "net/ieee802154.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -102,6 +103,16 @@ typedef struct gnrc_netdev2 { ...@@ -102,6 +103,16 @@ typedef struct gnrc_netdev2 {
* @brief general information for the MAC protocol * @brief general information for the MAC protocol
*/ */
uint16_t mac_info; uint16_t mac_info;
/**
* @brief device's l2 address
*/
uint8_t l2_addr[IEEE802154_LONG_ADDRESS_LEN];
/**
* @brief device's l2 address length
*/
uint8_t l2_addr_len;
#endif #endif
} gnrc_netdev2_t; } gnrc_netdev2_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment