1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

gnrc_mac: add l2 address into netdev2.

This commit is contained in:
zhuoshuguo 2016-10-13 18:44:28 +02:00
parent e6ad438a0b
commit 1a44c0f71b
2 changed files with 11 additions and 1 deletions

View File

@ -29,9 +29,9 @@
#include <xtimer.h>
#include <net/netdev2.h>
#include <net/gnrc/netdev2.h>
#include <net/gnrc/netif/hdr.h>
#include <net/gnrc.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -102,6 +102,16 @@ typedef struct gnrc_netdev2 {
* @brief general information for the MAC protocol
*/
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
} gnrc_netdev2_t;