Skip to content

Commit

Permalink
gnrc_nettype: deprecate GNRC_NETTYPE_LORAWAN
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Mar 27, 2024
1 parent 473e4b0 commit b650a1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions makefiles/deprecated_modules.inc.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add deprecated modules here
# Keep this list ALPHABETICALLY SORTED!!!!111elven
DEPRECATED_MODULES += gnrc_nettype_lorawan
DEPRECATED_MODULES += sema_deprecated
DEPRECATED_MODULES += ztimer_now64
4 changes: 4 additions & 0 deletions makefiles/pseudomodules.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
## @}
Expand Down
7 changes: 6 additions & 1 deletion sys/include/net/gnrc/nettype.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,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

/**
Expand Down

0 comments on commit b650a1a

Please sign in to comment.