Skip to content
Snippets Groups Projects
Commit 1a44c0f7 authored by zhuoshuguo's avatar zhuoshuguo
Browse files

gnrc_mac: add l2 address into netdev2.

parent e6ad438a
No related branches found
No related tags found
No related merge requests found
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#include <xtimer.h> #include <xtimer.h>
#include <net/netdev2.h> #include <net/netdev2.h>
#include <net/gnrc/netdev2.h> #include <net/gnrc/netdev2.h>
#include <net/gnrc/netif/hdr.h>
#include <net/gnrc.h> #include <net/gnrc.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
......
...@@ -102,6 +102,16 @@ typedef struct gnrc_netdev2 { ...@@ -102,6 +102,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[GNRC_NETIF_HDR_L2ADDR_MAX_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.
Please register or to comment