1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gnrc_nettype: deprecate GNRC_NETTYPE_LORAWAN

This commit is contained in:
Martine Lenders 2024-03-27 13:35:46 +01:00 committed by Martine S. Lenders
parent 5c75f84d6e
commit 549f215701
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80
4 changed files with 11 additions and 6 deletions

View File

@ -4,6 +4,7 @@ DEPRECATED_MODULES += gnrc_gomach
DEPRECATED_MODULES += gnrc_lwmac
DEPRECATED_MODULES += gnrc_mac
DEPRECATED_MODULES += gnrc_nettype_gomach
DEPRECATED_MODULES += gnrc_nettype_lorawan
DEPRECATED_MODULES += gnrc_nettype_lwmac
DEPRECATED_MODULES += sema_deprecated
DEPRECATED_MODULES += ztimer_now64

View File

@ -156,6 +156,10 @@ PSEUDOMODULES += gnrc_nettype_ipv6_ext
## @defgroup net_gnrc_nettype_lorawan gnrc_nettype_lorawan
## Enables @ref GNRC_NETTYPE_LORAWAN
##
## @deprecated LoRaWAN payloads do not have a special type anymore and just use
## @ref GNRC_NETTYPE_UNDEF. There is no module needed for that.
## This module will be removed after 2024.10 release.
## @{
PSEUDOMODULES += gnrc_nettype_lorawan
## @}

View File

@ -91,7 +91,12 @@ typedef enum {
#endif
#if IS_USED(MODULE_GNRC_NETTYPE_LORAWAN) || defined(DOXYGEN)
GNRC_NETTYPE_LORAWAN, /**< Protocol is LoRaWAN */
/**
* @brief Protocol is LoRaWAN
* @deprecated LoRaWAN payloads do not have a special type anymore and just use
* @ref GNRC_NETTYPE_UNDEF. Will be removed after 2024.10 release.
*/
#define GNRC_NETTYPE_LORAWAN GNRC_NETTYPE_UNDEF
#endif
/**

View File

@ -70,11 +70,6 @@ static void _dump_snip(gnrc_pktsnip_t *pkt)
}
break;
#endif /* IS_USED(MODULE_GNRC_NETTYPE_SIXLOWPAN) */
#if IS_USED(MODULE_GNRC_NETTYPE_LORAWAN)
case GNRC_NETTYPE_LORAWAN:
printf("NETTYPE_LORAWAN (%i)\n", pkt->type);
break;
#endif /* IS_USED(MODULE_GNRC_NETTYPE_LORAWAN) */
#if IS_USED(MODULE_GNRC_NETTYPE_IPV6)
case GNRC_NETTYPE_IPV6:
printf("NETTYPE_IPV6 (%i)\n", pkt->type);