From 60170971bdb3936d009b8a612dee92cfe07c339e Mon Sep 17 00:00:00 2001 From: Akshai M Date: Fri, 17 Jul 2020 20:16:33 +0530 Subject: [PATCH] net/l2filter : Update documentation --- drivers/include/net/netdev.h | 8 ++++---- sys/include/net/l2filter.h | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/include/net/netdev.h b/drivers/include/net/netdev.h index cc57356aeb..4690d0eeca 100644 --- a/drivers/include/net/netdev.h +++ b/drivers/include/net/netdev.h @@ -281,11 +281,11 @@ typedef void (*netdev_event_cb_t)(netdev_t *dev, netdev_event_t event); * be used by upper layers to store reference information. */ struct netdev { - const struct netdev_driver *driver; /**< ptr to that driver's interface. */ - netdev_event_cb_t event_callback; /**< callback for device events */ - void *context; /**< ptr to network stack context */ + const struct netdev_driver *driver; /**< ptr to that driver's interface. */ + netdev_event_cb_t event_callback; /**< callback for device events */ + void *context; /**< ptr to network stack context */ #ifdef MODULE_NETDEV_LAYER - netdev_t *lower; /**< ptr to the lower netdev layer */ + netdev_t *lower; /**< ptr to the lower netdev layer */ #endif #ifdef MODULE_L2FILTER l2filter_t filter[CONFIG_L2FILTER_LISTSIZE]; /**< link layer address filters */ diff --git a/sys/include/net/l2filter.h b/sys/include/net/l2filter.h index 56a90496c5..e1b7885e39 100644 --- a/sys/include/net/l2filter.h +++ b/sys/include/net/l2filter.h @@ -40,6 +40,11 @@ extern "C" { #endif +/** + * @defgroup net_l2filter_conf Link layer address filter compile configurations + * @ingroup config + * @{ + */ /** * @brief Maximal length of addresses that can be stored in the filter list */ @@ -53,6 +58,7 @@ extern "C" { #ifndef CONFIG_L2FILTER_LISTSIZE #define CONFIG_L2FILTER_LISTSIZE (8U) #endif +/** @} */ /** * @brief Filter list entries @@ -63,7 +69,7 @@ extern "C" { */ typedef struct { uint8_t addr[CONFIG_L2FILTER_ADDR_MAXLEN]; /**< link layer address */ - size_t addr_len; /**< address length in byte */ + size_t addr_len; /**< address length in byte */ } l2filter_t; /**